:root {
  --paper: #f6f5f0;
  --sidebar: #eeede6;
  --ink: #252d29;
  --muted: #73786e;
  --line: #dcded4;
  --green: #435b46;
  --light-green: #e5ebdf;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
button {
  border: 0;
  background: transparent;
}
input,
select,
textarea {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 5px;
  padding: 10px;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
[hidden] {
  display: none !important;
}
.sidebar {
  width: 242px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 38px 23px 22px;
  display: flex;
  flex-direction: column;
  overflow: auto;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 2px;
  line-height: 1.6;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -2px;
  display: grid;
  place-items: center;
  border: 1px solid #a9b19e;
  width: 58px;
  height: 58px;
  white-space: nowrap;
  display: block;
  line-height: 56px;
  text-align: center;
}
.brand-mark span {
  color: #8e9b82;
}
.workspace-label {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1.4px;
  margin: 49px 8px 16px;
  display: flex;
  justify-content: space-between;
}
.workspace-label span {
  color: #9ca290;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 5px;
  font-size: 12px;
  text-align: left;
  margin-bottom: 5px;
}
.nav > span {
  font-size: 20px;
  width: 20px;
  line-height: 20px;
}
.nav b {
  font-size: 10px;
  font-weight: 500;
  margin-left: auto;
  color: var(--muted);
}
.nav.active {
  background: #dee5d6;
  color: #314a35;
}
.nav:hover,
.interest:hover {
  background: #e3e6dc;
}
.side-section {
  border-top: 1px solid var(--line);
  margin: 26px 7px 0;
  padding-top: 24px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--muted);
}
.interest {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 9px 2px;
  font-size: 12px;
  color: #535c50;
}
.interest:first-of-type {
  margin-top: 12px;
}
.interest span {
  color: #a1a894;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 4px;
  font-size: 20px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: #e6e9df;
}
.side-hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: #8a9081;
  line-height: 1.7;
}
.saved-view {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 5px;
}
.saved-view > button:first-child {
  padding: 7px 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
  flex: 1;
  font-size: 12px;
}
.saved-view > button:last-child {
  font-size: 16px;
  color: var(--muted);
  padding: 5px;
}
.sidebar-bottom {
  margin: 35px 8px 0;
  padding-top: 24px;
  flex: 1;
  align-content: end;
  min-height: 115px;
  font-size: 8px;
  letter-spacing: 1.3px;
  color: var(--muted);
}
.local-dot,
.snapshot > span {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #738166;
  border-radius: 50%;
  margin-right: 6px;
}
.sidebar-bottom .text-button {
  display: block;
  font-size: 10px;
  letter-spacing: 0;
  padding: 14px 0 0;
}
.import-label {
  cursor: pointer;
}
.app-shell {
  margin-left: 242px;
}
.topbar {
  height: 68px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 43px;
  font-size: 11px;
  color: var(--muted);
}
.breadcrumb b {
  font-weight: 500;
  color: var(--ink);
  margin-left: 8px;
}
.snapshot {
  font-size: 10px;
}
.snapshot time {
  color: var(--ink);
  margin-left: 8px;
}
main {
  padding: 42px 43px 0;
  max-width: 1740px;
  margin: auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 5px 0 38px;
  gap: 30px;
}
.page-heading .eyebrow {
  margin-top: 0;
}
.page-heading h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 3.2vw, 52px);
  line-height: 1.11;
  letter-spacing: -1.8px;
  margin: 20px 0 15px;
}
.page-heading h1 em {
  font-weight: 400;
  color: #718069;
}
.page-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.heading-stat {
  min-width: 170px;
  text-align: right;
  padding-top: 32px;
}
.heading-stat strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 48px;
  letter-spacing: -2px;
  display: block;
}
.heading-stat > span {
  font-size: 11px;
  color: var(--muted);
}
.heading-stat > div {
  font-size: 10px;
  border-top: 1px solid var(--line);
  margin-top: 21px;
  padding-top: 12px;
  color: var(--muted);
}
.heading-stat b {
  font-weight: 500;
  color: var(--ink);
  margin-right: 6px;
}
.searchbar {
  background: #fffefb;
  border: 1px solid #d3d8ca;
  display: flex;
  align-items: center;
  padding: 8px 10px 8px 19px;
  gap: 12px;
  border-radius: 6px;
  box-shadow: 0 4px 12px #222a2003;
}
.search-symbol {
  font-size: 29px;
  color: #6d7967;
  line-height: 1;
}
.searchbar > input {
  flex: 1;
  border: 0;
  background: transparent;
  min-width: 80px;
  padding: 10px 0;
  font-size: 12px;
  outline: none;
}
.searchbar:focus-within {
  border-color: #7e8b72;
  box-shadow: 0 0 0 2px #dfe6d7;
}
.searchbar kbd {
  border: 1px solid var(--line);
  border-radius: 3px;
  font: 11px var(--sans);
  color: #a0a696;
  padding: 2px 7px;
  margin-right: 9px;
}
.secondary {
  background: #eef0e8;
  border: 1px solid #dce0d3;
  border-radius: 4px;
  padding: 9px 13px;
  font-size: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.secondary:hover {
  background: #e1e6d9;
}
.secondary b:empty {
  display: none;
}
.secondary b {
  font-size: 9px;
  background: var(--green);
  color: white;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 50%;
}
.filter-panel {
  border: 1px solid var(--line);
  border-top: 0;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  background: #f0f0e9;
}
.filter-panel label:not(.checkbox) {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.filter-panel select,
.filter-panel input {
  width: 100%;
  font-size: 11px;
  background: #fafaf5;
}
.range {
  display: flex;
  align-items: center;
  gap: 6px;
}
.range input {
  min-width: 0;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.checkbox input {
  width: 14px !important;
  height: 14px;
}
.filter-note {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  grid-column: 1/-1;
}
.active-filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 13px;
}
.active-filters:empty {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--light-green);
  font-size: 10px;
  border-radius: 3px;
  padding: 6px 8px;
}
.chip button {
  padding: 0;
  color: #6f7d68;
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0 15px;
  gap: 15px;
}
.results-toolbar strong {
  font-size: 12px;
  font-weight: 600;
}
.results-toolbar #result-context {
  font-size: 10px;
  color: var(--muted);
  margin-left: 8px;
}
.results-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.text-button {
  font-size: 11px;
  color: var(--muted);
  padding: 0;
  text-align: left;
}
.text-button:hover {
  color: var(--green);
  text-decoration: underline;
}
.results-actions > select {
  border: 0;
  background: transparent;
  font-size: 10px;
  color: #59614f;
  max-width: 155px;
  padding: 5px;
}
.view-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px;
}
.view-switch .icon-button {
  height: 26px;
  width: 30px;
  font-size: 18px;
  color: #8c9383;
}
.view-switch .selected {
  background: #e4e8dc;
  color: var(--ink);
}
.context-note {
  font-size: 10px;
  color: #7d8375;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 23px;
}
.context-note > span {
  border: 1px solid #a4ac99;
  border-radius: 50%;
  width: 13px;
  height: 13px;
  font: 10px var(--serif);
  text-align: center;
  flex-shrink: 0;
}
.context-note p {
  margin: 0;
  line-height: 1.6;
}
.context-note button {
  font-size: 10px;
  white-space: nowrap;
  margin-left: auto;
}
.records {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px 20px;
}
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: #fcfcf8;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  position: relative;
}
.card:hover {
  border-color: #a6b09a;
  box-shadow: 0 6px 20px #303c2910;
}
.card-open {
  display: block;
  text-align: left;
  width: 100%;
  padding: 0;
}
.card-image {
  position: relative;
  height: 185px;
  background: #eaece4;
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.card-image img {
  position: absolute;
  inset: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.25s;
}
.card:hover img {
  transform: none;
}
.image-fallback {
  color: #9aa48e;
  font-family: var(--serif);
  font-size: 34px;
  font-style: italic;
  letter-spacing: -1px;
  text-align: center;
}
.image-fallback small {
  display: block;
  font: 9px var(--sans);
  letter-spacing: 1.5px;
  margin-top: 9px;
  text-transform: uppercase;
}
.card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 8px;
  letter-spacing: 0.5px;
  background: #fcfcf0e8;
  color: #5b674f;
  padding: 5px 7px;
  border-radius: 3px;
  max-width: calc(100% - 55px);
  z-index: 1;
}
.save-button {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #fffffff0;
  font-size: 18px;
  display: grid;
  place-items: center;
  z-index: 2;
  border: 1px solid #dedfd6;
}
.save-button.is-saved {
  color: #52634a;
  background: #e6eddf;
}
.card-body {
  padding: 16px 16px 14px;
  min-height: 146px;
  display: flex;
  flex-direction: column;
}
.card-source {
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 9px;
}
.card-source span {
  font-size: 8px;
  letter-spacing: 0;
  color: #9aa18e;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.2px;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 46px;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.price {
  font-size: 12px;
  font-weight: 550;
}
.price.unknown {
  color: #8b9281;
  font-weight: 400;
  font-size: 11px;
}
.status {
  font-size: 8px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #858b7e;
}
.status:before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a3a998;
}
.status.available {
  color: #5a7250;
}
.status.available:before {
  background: #718b62;
}
.status.sold {
  color: #8e8171;
}
.status.sold:before {
  background: #9b8c77;
}
.status.reserved {
  color: #9b8649;
}
.status.reserved:before {
  background: #b49b50;
}
.records.list {
  display: block;
}
.records.list .card {
  margin-bottom: 9px;
}
.records.list .card-open {
  display: flex;
  align-items: stretch;
}
.records.list .card-image {
  width: 180px;
  height: 125px;
  flex-shrink: 0;
  border-bottom: 0;
  border-right: 1px solid var(--line);
}
.records.list .card-body {
  padding: 18px 55px 18px 22px;
  min-height: 125px;
  flex: 1;
}
.records.list .card h3 {
  min-height: 0;
  font-size: 19px;
  margin-bottom: 11px;
  -webkit-line-clamp: 1;
}
.records.list .card-source {
  max-width: 400px;
}
.records.list .card-bottom {
  justify-content: flex-start;
  gap: 30px;
}
.records.list .card-badge {
  font-size: 7px;
  left: 7px;
  top: 7px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 35px 0 45px;
  font-size: 11px;
  color: var(--muted);
}
.pagination button {
  border: 1px solid var(--line);
  padding: 9px 15px;
  border-radius: 4px;
}
.pagination button:not(:disabled):hover {
  background: var(--light-green);
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 70px 20px;
  border: 1px dashed #cfd4c6;
  border-radius: 5px;
  color: var(--muted);
}
.empty h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
}
.empty p {
  font-size: 12px;
  line-height: 1.8;
}
.empty button {
  margin-top: 14px;
}
footer {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 25px 0;
  color: #939a88;
  font-size: 8px;
  letter-spacing: 1.2px;
  gap: 25px;
}
footer p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0;
}
footer button {
  margin-left: auto;
  font-size: 10px !important;
}
.detail-dialog {
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  max-width: none;
  max-height: 100dvh;
  width: min(1060px, 94vw);
  height: 100dvh;
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  box-shadow: -20px 0 80px #17201530;
  overflow: auto;
}
.detail-dialog::backdrop,
.utility-dialog::backdrop {
  background: #1d2b2355;
  backdrop-filter: blur(3px);
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #f6f5f0f5;
  z-index: 5;
  font-size: 10px;
  color: var(--muted);
}
.detail-top > div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.detail-content {
  padding: 29px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 30px;
}
.detail-gallery {
  position: sticky;
  top: 90px;
  align-self: start;
}
.main-photo {
  height: 340px;
  background: #e9ece2;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.main-photo img {
  position: absolute;
  inset: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.main-photo .expand {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #fffefa;
  font-size: 16px;
}
.thumbs {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin-top: 10px;
  padding-bottom: 8px;
}
.thumbs button {
  padding: 0;
  flex: 0 0 60px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #e9ece2;
  overflow: hidden;
}
.thumbs button.active {
  border: 2px solid #667b56;
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}
.gallery-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  color: var(--muted);
  line-height: 1.7;
}
.gallery-caption > span {
  max-width: 280px;
}
.detail-info h2 {
  font: 400 30px/1.2 var(--serif);
  letter-spacing: -0.7px;
  margin: 15px 0 22px;
}
.detail-info .eyebrow {
  font-size: 8px;
}
.detail-price {
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1.6;
}
.detail-price small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 23px 0;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green);
  color: #fff;
  padding: 11px 16px;
  font-size: 11px;
  border-radius: 3px;
  text-decoration: none;
}
.primary:hover {
  background: #324b35;
}
.detail-info .status {
  font-size: 10px;
}
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 23px;
}
.detail-section h3 {
  font-size: 10px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.detail-section p {
  font-size: 12px;
  line-height: 1.9;
  color: #68705e;
  white-space: pre-line;
}
.detail-section textarea {
  width: 100%;
  min-height: 105px;
  font-size: 12px;
  line-height: 1.7;
  resize: vertical;
  background: #fffef9;
}
.note-status {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 7px;
}
.detail-meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  font-size: 10px;
  gap: 12px;
  line-height: 1.7;
}
.detail-meta dt {
  color: var(--muted);
}
.detail-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.evidence-box {
  background: #eaece3;
  padding: 15px;
  font-size: 10px;
  line-height: 1.8;
  color: #717a65;
  border-radius: 4px;
  margin-top: 20px;
}
.evidence-box b {
  font-weight: 600;
  display: block;
  color: #56634c;
  font-size: 9px;
  letter-spacing: 0.6px;
}
.detail-section details {
  font-size: 11px;
  color: #68705e;
}
.detail-section summary {
  cursor: pointer;
  padding: 6px 0;
}
.attributes {
  font-size: 10px;
  line-height: 1.7;
}
.attributes div {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.attributes b {
  display: block;
  color: var(--ink);
}
.utility-dialog {
  border: 1px solid var(--line);
  border-radius: 7px;
  width: min(580px, 92vw);
  padding: 29px;
  background: var(--paper);
  color: var(--ink);
  max-height: 85dvh;
}
.utility-dialog h2 {
  font: 400 29px var(--serif);
  margin: 0 0 20px;
}
.utility-dialog .close-utility {
  float: right;
  margin: -12px -12px 0 0;
}
.utility-dialog p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
.utility-dialog label {
  font-size: 12px;
  display: block;
}
.utility-dialog input:not([type="checkbox"]) {
  width: 100%;
  margin: 10px 0 20px;
}
.utility-dialog pre {
  white-space: pre-wrap;
  font-size: 11px;
  max-height: 50vh;
  overflow: auto;
  background: #eaede3;
  padding: 12px;
}
.utility-dialog.fullscreen {
  width: 96vw;
  max-width: 1500px;
  height: 94dvh;
  padding: 15px;
  max-height: 94dvh;
}
.fullscreen-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.fullscreen-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 11px;
}
.fullscreen-photo {
  position: relative;
  min-height: 0;
  flex: 1;
  display: grid;
  place-items: center;
  margin: 12px 0;
  background: #e9ece2;
}
.fullscreen-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.fullscreen-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.source-intro {
  border-top: 1px solid var(--line);
  padding: 25px 0;
}
.source-intro h2 {
  font: 400 25px var(--serif);
  margin: 0 0 10px;
}
.source-intro p {
  font-size: 12px;
  color: var(--muted);
}
.source-controls {
  display: flex;
  gap: 25px;
  align-items: center;
  margin-bottom: 25px;
}
.source-controls > input {
  width: 360px;
  background: #fffef9;
  font-size: 12px;
}
.source-row {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fcfcf7;
  margin-bottom: 10px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 110px 120px 130px;
  gap: 20px;
  align-items: center;
}
.source-row h3 {
  font: 400 21px var(--serif);
  margin: 0 0 6px;
}
.source-row .source-type {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.source-row .source-number strong {
  font: 400 24px var(--serif);
  display: block;
}
.source-row .source-number span {
  font-size: 9px;
  color: var(--muted);
}
.source-row details {
  grid-column: 1/-1;
  font-size: 10px;
  color: var(--muted);
}
.source-row summary {
  cursor: pointer;
}
.source-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}
.source-evidence span {
  border: 1px solid var(--line);
  padding: 6px 9px;
  border-radius: 3px;
}
.source-row details p {
  font-size: 11px;
  line-height: 1.8;
}
.source-link {
  font-size: 10px;
  text-decoration: none;
  color: var(--green);
  display: block;
  margin-bottom: 12px;
}
.source-browse {
  font-size: 11px;
  padding: 8px 10px;
  background: var(--light-green);
  border-radius: 3px;
}
.mobile-only {
  display: none;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 110px);
  transform: translate(-50%, 20px);
  background: #2f4433;
  color: #f6f9f2;
  border: 1px solid #65795a;
  border-radius: 5px;
  padding: 13px 22px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
  max-width: 90vw;
  box-shadow: 0 8px 30px #25332420;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.skeleton {
  background: linear-gradient(100deg, #e9ebe2 40%, #f4f4ee 50%, #e9ebe2 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  height: 330px;
  border-radius: 5px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.board-select {
  width: 100%;
  font-size: 12px;
  margin: 7px 0 12px;
}
.boards-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 20px;
}
.boards-toolbar select {
  font-size: 11px;
}
.boards-toolbar .text-button {
  margin-left: auto;
}
.saved-indicator {
  font-size: 9px;
  color: var(--green);
}
.source-warnings {
  font-size: 9px;
  color: #957e57;
  margin-top: 6px;
}
.shortcuts-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  font-size: 12px;
  line-height: 1.7;
}
.shortcuts-list kbd {
  background: var(--light-green);
  padding: 2px 7px;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 10px;
}
.error-box {
  padding: 40px;
  background: #f0e9df;
  border: 1px solid #d9c8b2;
  border-radius: 5px;
  grid-column: 1/-1;
  font-size: 12px;
  line-height: 1.8;
}
.error-box h2 {
  font: 26px var(--serif);
}
.error-box button {
  margin-top: 10px;
}
@media (min-width: 1550px) {
  .records {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .card-image {
    height: 195px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 208px;
    padding: 28px 15px;
  }
  .app-shell {
    margin-left: 208px;
  }
  main {
    padding: 33px 27px 0;
  }
  .topbar {
    padding: 0 27px;
  }
  .records {
    gap: 15px;
  }
  .card-image {
    height: 160px;
  }
  .card-body {
    padding: 13px;
  }
  .card h3 {
    font-size: 16px;
  }
  .card-bottom {
    align-items: start;
    flex-direction: column;
    gap: 7px;
  }
  .heading-stat {
    min-width: 130px;
  }
  .results-actions {
    gap: 10px;
  }
  .context-note button {
    display: none;
  }
  .detail-content {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 24px;
  }
  .main-photo {
    height: 300px;
  }
}
@media (max-width: 900px) {
  .records {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-image {
    height: 185px;
  }
  .page-heading h1 {
    font-size: 37px;
  }
  .heading-stat strong {
    font-size: 39px;
  }
  .heading-stat {
    min-width: 110px;
  }
  .results-actions #export {
    display: none;
  }
  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results-toolbar {
    align-items: start;
  }
  .results-toolbar #result-context {
    display: block;
    margin: 5px 0 0;
  }
  .card-bottom {
    flex-direction: row;
    align-items: center;
  }
  .detail-content {
    grid-template-columns: 1fr;
  }
  .detail-gallery {
    position: relative;
    top: 0;
  }
  .main-photo {
    height: 340px;
  }
  .detail-info h2 {
    font-size: 33px;
  }
  .source-row {
    grid-template-columns: 1fr 65px 85px;
  }
  .source-row .source-buttons {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 15px;
  }
  .source-link {
    margin: 0;
  }
  .source-number {
    align-self: start;
  }
  #toast {
    left: calc(50% + 100px);
  }
}
@media (max-width: 650px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 242px;
    box-shadow: 15px 0 60px #27372430;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .app-shell {
    margin-left: 0;
  }
  .mobile-only {
    display: inline-grid;
  }
  .topbar {
    height: 57px;
    padding: 0 17px;
    justify-content: start;
    gap: 12px;
  }
  .snapshot {
    margin-left: auto;
    font-size: 8px;
  }
  .snapshot time {
    margin-left: 4px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  main {
    padding: 28px 18px 0;
  }
  .page-heading {
    gap: 15px;
    align-items: start;
    margin-bottom: 28px;
  }
  .page-heading h1 {
    font-size: 35px;
    letter-spacing: -1.5px;
    margin: 17px 0 12px;
  }
  .page-heading p:not(.eyebrow) {
    font-size: 11px;
    max-width: 230px;
    margin-bottom: 0;
  }
  .page-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1.2px;
  }
  .heading-stat {
    min-width: 80px;
    padding-top: 27px;
  }
  .heading-stat strong {
    font-size: 31px;
    letter-spacing: -1px;
  }
  .heading-stat > span {
    font-size: 9px;
  }
  .heading-stat > div {
    font-size: 8px;
    margin-top: 12px;
    padding-top: 9px;
    max-width: 90px;
  }
  .searchbar {
    gap: 8px;
    padding: 7px 6px 7px 12px;
  }
  .searchbar > input {
    font-size: 11px;
  }
  .searchbar kbd {
    display: none;
  }
  .searchbar .secondary {
    padding: 8px;
    font-size: 12px;
  }
  .searchbar #save-search {
    display: none;
  }
  .results-actions > select {
    max-width: 112px;
    font-size: 9px;
  }
  .results-toolbar {
    margin-top: 20px;
  }
  .results-toolbar strong {
    font-size: 11px;
  }
  .results-actions {
    gap: 5px;
  }
  .view-switch .icon-button {
    width: 24px;
    height: 23px;
    font-size: 16px;
  }
  .context-note {
    font-size: 8px;
    margin-bottom: 18px;
    align-items: start;
  }
  .records {
    gap: 12px 10px;
  }
  .card-image {
    height: 135px;
  }
  .card-body {
    padding: 12px 10px;
    min-height: 143px;
  }
  .card-source {
    font-size: 7px;
    letter-spacing: 0.4px;
    margin-bottom: 9px;
  }
  .card-source span {
    display: none;
  }
  .card h3 {
    font-size: 15px;
    line-height: 1.35;
    min-height: 41px;
    -webkit-line-clamp: 2;
  }
  .card-bottom {
    flex-direction: column;
    align-items: start;
    gap: 7px;
  }
  .price {
    font-size: 11px;
  }
  .status {
    font-size: 7px;
  }
  .card-badge {
    font-size: 6px;
    left: 7px;
    top: 8px;
    padding: 4px;
    max-width: calc(100% - 43px);
  }
  .save-button {
    width: 25px;
    height: 25px;
    font-size: 16px;
    right: 6px;
    top: 6px;
  }
  .filter-panel {
    padding: 17px;
    gap: 16px 10px;
  }
  .filter-panel select,
  .filter-panel input {
    font-size: 10px;
    padding: 9px 6px;
  }
  .filter-panel > div:nth-last-of-type(1) {
    grid-column: 1/-1;
  }
  .filter-note {
    font-size: 9px;
  }
  .filter-panel .checkbox {
    grid-column: 1/-1;
  }
  .filter-panel label {
    font-size: 9px;
  }
  .records.list .card-image {
    width: 105px;
    height: 139px;
  }
  .records.list .card-body {
    padding: 15px 35px 12px 13px;
    min-height: 139px;
  }
  .records.list .card h3 {
    font-size: 16px;
    -webkit-line-clamp: 2;
    margin-bottom: 9px;
  }
  .records.list .card-bottom {
    gap: 8px;
  }
  .records.list .card-badge {
    display: none;
  }
  .detail-dialog {
    width: 100vw;
  }
  .detail-content {
    padding: 20px;
  }
  .detail-top {
    padding: 12px 16px;
  }
  .main-photo {
    height: 300px;
  }
  .detail-info h2 {
    font-size: 29px;
  }
  .gallery-caption > span {
    max-width: 260px;
  }
  .source-row {
    padding: 16px;
    gap: 15px;
    grid-template-columns: 1fr 50px 55px;
  }
  .source-row h3 {
    font-size: 18px;
  }
  .source-row .source-number strong {
    font-size: 21px;
  }
  .source-row .source-number span {
    font-size: 8px;
  }
  .source-controls {
    align-items: start;
    flex-direction: column;
    gap: 15px;
  }
  .source-controls > input {
    width: 100%;
  }
  .source-intro h2 {
    font-size: 23px;
  }
  footer {
    gap: 14px;
    flex-wrap: wrap;
  }
  footer p {
    font-size: 10px;
  }
  footer button {
    margin-left: 0;
  }
  #toast {
    left: 50%;
    font-size: 11px;
    min-width: 220px;
    text-align: center;
  }
  .boards-toolbar {
    flex-wrap: wrap;
  }
  .utility-dialog {
    padding: 23px;
  }
  .utility-dialog.fullscreen {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.search-help {
  border: 1px solid #d3d8c9;
  color: #8b9680;
  border-radius: 50%;
  font: 10px Georgia;
  width: 17px;
  height: 17px;
  padding: 0;
  flex-shrink: 0;
}
.search-help:hover {
  background: var(--light-green);
}
.card-note {
  font-size: 10px;
  line-height: 1.6;
  background: #eef1e7;
  color: #6d7b62;
  margin: 0 0 15px;
  padding: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  border-radius: 3px;
}
.searchbar {
  position: sticky;
  top: 8px;
  z-index: 10;
}
.records.list .card-note {
  max-width: 600px;
}
.boards-toolbar .board-manage {
  margin-left: 0;
}
.board-management-row {
  padding: 15px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.board-management-row > div {
  min-width: 0;
}
.board-management-row b {
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.board-management-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.board-management-row > span {
  display: flex;
  gap: 12px;
}
.utility-dialog .board-management-row button {
  font-size: 10px;
  white-space: nowrap;
}
.activity-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 10px;
}
.activity-toolbar button {
  font-size: 10px;
}
@media (max-width: 650px) {
  .search-help {
    display: none;
  }
  .card-note {
    font-size: 9px;
    padding: 6px;
  }
  .page-total {
    display: none;
  }
}
.type-tabs {
  display: flex;
  align-items: center;
  gap: 21px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
  white-space: nowrap;
  margin: 15px 0 0;
  scrollbar-width: thin;
}
.type-tabs button {
  padding: 12px 0;
  font-size: 10px;
  color: #8a927e;
  border-bottom: 2px solid transparent;
}
.type-tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.type-tabs button:hover {
  color: var(--ink);
}
.type-tabs button:last-child {
  margin-left: auto;
}
.type-label {
  font-size: 8px;
  color: #849078;
  margin: 0 0 7px;
}
.card-body .type-label {
  letter-spacing: 0.3px;
}
.records.photo .card-image {
  height: 250px;
}
.records.photo .card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, #fcfcf8fa 70%, #fcfcf8e0);
  padding: 11px 13px;
  min-height: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.2s;
}
.records.photo .card:hover .card-body,
.records.photo .card:focus-within .card-body {
  opacity: 1;
  transform: none;
}
.records.photo h3 {
  font-size: 15px;
  min-height: 0;
  margin-bottom: 7px;
  -webkit-line-clamp: 1;
}
.records.photo .card-source,
.records.photo .type-label,
.records.photo .card-note {
  display: none;
}
.records.photo .card-bottom {
  flex-direction: row;
}
.records.photo .card-image {
  border: 0;
}
.records.photo .card-badge {
  background: #fffef7e6;
}
.records.list .type-label {
  display: none;
}
.card .image-fallback {
  max-width: 95%;
  font-size: clamp(20px, 2.6vw, 34px);
}
@media (max-width: 650px) {
  .type-tabs {
    gap: 18px;
    margin-top: 9px;
  }
  .type-tabs button {
    font-size: 9px;
    padding: 10px 0;
  }
  .type-tabs button:last-child {
    margin-left: 0;
  }
  .type-label {
    font-size: 7px;
  }
  .records.photo .card-image {
    height: 175px;
  }
  .records.photo .card-body {
    opacity: 1;
    transform: none;
    padding: 8px;
  }
  .records.photo h3 {
    font-size: 12px;
  }
  .records.photo .card-bottom {
    display: none;
  }
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}
.topbar-actions #focus-mode {
  font-size: 10px;
}
.browsing .page-heading {
  margin-bottom: 25px;
}
.browsing .page-heading h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 15px 0 10px;
}
.browsing .page-heading h1 br {
  display: none;
}
.browsing .page-heading h1 em {
  margin-left: 8px;
}
.browsing .heading-stat {
  padding-top: 0;
}
.browsing .heading-stat strong {
  font-size: 34px;
}
.browsing .heading-stat > div {
  margin-top: 10px;
  padding-top: 9px;
}
.focus-mode .page-heading {
  display: none;
}
.focus-mode main {
  padding-top: 25px;
}
.focus-mode .searchbar {
  top: 8px;
}
.card .price {
  overflow-wrap: anywhere;
}
.card h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 1150px) {
  .browsing .page-heading h1 {
    font-size: 28px;
  }
  .browsing .page-heading h1 br {
    display: block;
  }
  .browsing .page-heading h1 em {
    margin-left: 0;
  }
}
@media (max-width: 650px) {
  .topbar-actions {
    gap: 9px;
    margin-left: auto;
  }
  .topbar-actions #focus-mode {
    font-size: 9px;
  }
  .topbar-actions .snapshot > span,
  .topbar-actions .snapshot {
    font-size: 0;
  }
  .topbar-actions .snapshot time {
    font-size: 8px;
  }
  .browsing .page-heading h1 {
    font-size: 27px;
  }
  .browsing .page-heading p:not(.eyebrow) {
    font-size: 10px;
  }
  .browsing .heading-stat strong {
    font-size: 27px;
  }
  .focus-mode main {
    padding-top: 16px;
  }
}
.fullscreen-photo.zoom-2,
.fullscreen-photo.zoom-3 {
  display: block;
  overflow: auto;
  cursor: grab;
  touch-action: none;
  scrollbar-width: thin;
}
.fullscreen-photo.zoom-2 img {
  width: 200%;
  height: 200%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.fullscreen-photo.zoom-3 img {
  width: 300%;
  height: 300%;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
.fullscreen-photo.panning {
  cursor: grabbing;
}
.fullscreen-controls {
  gap: 12px;
}
.fullscreen-controls .secondary {
  padding: 9px 13px;
}
.fullscreen-controls #zoom-reset {
  min-width: 23px;
  text-align: center;
}
@media (max-width: 650px) {
  .fullscreen-controls {
    gap: 7px;
  }
  .fullscreen-controls .secondary {
    font-size: 10px;
    padding: 8px;
  }
  .fullscreen-bar > span {
    font-size: 10px;
    max-width: 85%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.page-jump {
  width: 43px;
  padding: 4px;
  text-align: center;
  border: 1px solid var(--line);
  font-size: 10px;
  background: #fbfcf6;
  appearance: textfield;
}
.page-jump::-webkit-inner-spin-button {
  appearance: none;
}
.page-total {
  white-space: nowrap;
}
#toast {
  display: flex;
  align-items: center;
  gap: 19px;
}
.toast-undo {
  color: #f1f5e9;
  border-bottom: 1px solid #9dad8d;
  padding: 0 0 2px;
  font-size: 11px;
}
.toast-undo:hover {
  color: #c6d8b7;
}
@media print {
  body {
    background: white !important;
    color: #111 !important;
    font-size: 11pt;
  }
  .sidebar,
  .app-shell,
  #utility,
  #toast {
    display: none !important;
  }
  .detail-dialog[open] {
    display: block !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    max-height: none !important;
    max-width: none !important;
    overflow: visible !important;
    margin: 0 !important;
    background: white !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  .detail-dialog::backdrop {
    display: none !important;
  }
  .detail-top {
    position: static;
    background: white;
    padding: 0 0 12pt;
    font-size: 9pt;
  }
  .detail-top > div,
  .detail-actions,
  .thumbs,
  .expand,
  #board-area,
  .detail-section:has(textarea),
  #raw-record {
    display: none !important;
  }
  .detail-content {
    display: block;
    padding: 0;
  }
  .detail-gallery {
    position: static;
    break-inside: avoid;
  }
  .main-photo {
    height: 220pt;
    margin: 12pt 0;
    background: white !important;
  }
  .main-photo img {
    mix-blend-mode: normal;
  }
  .gallery-caption {
    font-size: 8pt;
  }
  .detail-info {
    margin-top: 20pt;
  }
  .detail-info h2 {
    font-size: 25pt;
  }
  .detail-price {
    font-size: 18pt;
  }
  .detail-section {
    break-inside: auto;
    margin-top: 17pt;
  }
  .detail-section p {
    font-size: 10pt;
    line-height: 1.6;
    color: #333;
  }
  .detail-meta {
    font-size: 8pt;
    grid-template-columns: 90pt 1fr;
  }
  .evidence-box {
    font-size: 8pt;
  }
  .detail-section:has(textarea) {
    display: block !important;
  }
  .detail-section textarea {
    display: none !important;
  }
  .print-note {
    display: block !important;
    white-space: pre-wrap;
    font-size: 10pt;
    line-height: 1.6;
  }
  .note-status {
    display: none;
  }
}
.print-note {
  display: none;
}
.compare-card {
  position: absolute;
  right: 12px;
  top: 45px;
  z-index: 2;
  background: #fffef8ec;
  color: #8b9680;
  border: 1px solid #d8dfcf;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  font-size: 15px;
  opacity: 0;
  transition: 0.15s;
}
.card:hover .compare-card,
.card:focus-within .compare-card,
.compare-card.selected {
  opacity: 1;
}
.compare-card.selected {
  background: #dfe8d5;
  color: #435d3d;
}
.compare-card:hover {
  background: #dfe8d5;
}
#compare-tray {
  position: fixed;
  bottom: 20px;
  left: calc(50% + 120px);
  transform: translateX(-50%);
  border: 1px solid #c9d3bd;
  background: #f6f8f0fa;
  box-shadow: 0 6px 35px #223a2325;
  border-radius: 7px;
  padding: 12px 15px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: calc(100vw - 280px);
  backdrop-filter: blur(9px);
}
.compare-tray-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 420px;
}
.compare-tray-items > span {
  font-size: 9px;
  background: #e5ebdc;
  padding: 6px 7px;
  border-radius: 3px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.compare-tray-items button {
  padding: 0;
  font-size: 13px;
}
.compare-tray-actions {
  display: flex;
  gap: 13px;
  align-items: center;
  white-space: nowrap;
}
.compare-tray-actions .primary {
  font-size: 10px;
}
.has-compare-tray footer {
  margin-bottom: 95px;
}
.has-compare-tray #toast {
  bottom: 110px;
}
.utility-dialog.compare-dialog {
  width: 96vw;
  max-width: 1330px;
  max-height: 92dvh;
  padding: 25px;
}
.compare-scroll {
  overflow: auto;
}
.compare-table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  font-size: 11px;
}
.compare-table th,
.compare-table td {
  padding: 16px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
  overflow-wrap: anywhere;
  min-width: 210px;
}
.compare-table thead th {
  font-weight: 400;
}
.compare-table thead h3 {
  font: 400 18px/1.4 var(--serif);
  min-height: 48px;
  margin: 15px 0 10px;
}
.compare-table th:first-child {
  width: 105px;
  min-width: 105px;
  padding-left: 0;
  font-size: 9px;
  color: var(--muted);
  font-weight: 500;
}
.compare-table thead th:first-child {
  font-size: 10px;
}
.compare-photo {
  position: relative;
  height: 170px;
  background: #e8ecdf;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}
.compare-photo img {
  position: absolute;
  inset: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.compare-table .status {
  font-size: 9px;
}
.compare-table p {
  font-size: 10px;
  margin: 7px 0 0;
  line-height: 1.7;
}
.compare-description {
  max-height: 200px;
  overflow: auto;
  font-size: 11px;
  color: var(--muted);
  white-space: pre-line;
}
.comparison-note {
  white-space: pre-line;
}
.compare-dialog > p {
  font-size: 11px;
  margin-bottom: 20px;
}
.records.list .compare-card {
  right: 12px;
  top: 48px;
}
.records.photo .compare-card {
  opacity: 1;
}
@media (max-width: 1000px) {
  .compare-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
  }
  .compare-table th,
  .compare-table td {
    width: 230px;
    max-width: 260px;
    min-width: 230px;
  }
  .compare-table th:first-child {
    width: 90px;
    min-width: 90px;
    position: sticky;
    left: 0;
    background: var(--paper);
    z-index: 1;
  }
  #compare-tray {
    max-width: calc(100vw - 240px);
    left: calc(50% + 100px);
    gap: 12px;
  }
  .compare-tray-items {
    max-width: 250px;
  }
}
@media (max-width: 650px) {
  #compare-tray {
    left: 50%;
    width: calc(100vw - 28px);
    max-width: none;
    bottom: 12px;
    padding: 10px;
    gap: 10px;
  }
  .compare-tray-items {
    max-width: none;
    flex: 1;
  }
  .compare-tray-items > span {
    font-size: 8px;
    padding: 4px;
    max-width: 145px;
    overflow: hidden;
  }
  .compare-tray-actions {
    flex-direction: column-reverse;
    gap: 7px;
  }
  .compare-tray-actions .primary {
    font-size: 9px;
    padding: 10px;
  }
  .compare-tray-actions .text-button {
    font-size: 9px;
  }
  .compare-card {
    opacity: 1;
    right: 6px;
    top: 36px;
    width: 25px;
    height: 25px;
    font-size: 14px;
  }
  .utility-dialog.compare-dialog {
    padding: 18px;
    width: 100vw;
    max-height: 96dvh;
  }
  .compare-photo {
    height: 150px;
  }
  .compare-table th,
  .compare-table td {
    min-width: 205px;
    width: 205px;
    padding: 12px;
  }
  .compare-table th:first-child {
    min-width: 75px;
    width: 75px;
    font-size: 8px;
  }
  .compare-table thead h3 {
    font-size: 17px;
  }
  .compare-tray-items > span:nth-child(n + 3) {
    display: none;
  }
  .compare-tray-items:has(span:nth-child(3)):after {
    content: "Up to 4 selected";
    font-size: 8px;
    color: var(--muted);
    display: block;
    width: 100%;
  }
}
@media print {
  .sidebar,
  #utility,
  #toast,
  #compare-tray {
    display: none !important;
  }
  .app-shell {
    margin-left: 0;
  }
  body:has(#detail[open]) .app-shell {
    display: none !important;
  }
  body:not(:has(#detail[open])) .app-shell {
    display: block !important;
  }
  .topbar,
  .searchbar,
  .filter-panel,
  .results-actions,
  .type-tabs,
  .pagination,
  .active-filters {
    display: none !important;
  }
  .records {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15pt;
  }
  .card {
    break-inside: avoid;
  }
  .card .card-image {
    height: 130pt !important;
  }
  .card .card-body {
    opacity: 1 !important;
    position: static !important;
    transform: none !important;
  }
  .card button.save-button,
  .compare-card {
    display: none !important;
  }
  .card .card-source,
  .card .type-label {
    display: block !important;
  }
  .card h3 {
    font-size: 14pt !important;
  }
  .card .card-bottom {
    display: flex !important;
  }
  .page-heading h1 {
    font-size: 25pt;
  }
  .has-compare-tray footer {
    margin-bottom: 0;
  }
}
.type-tabs {
  gap: 17px;
}
.type-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.type-tabs button > span {
  font-size: 8px;
  color: #9aa38e;
  background: #e9ede1;
  padding: 2px 4px;
  border-radius: 3px;
  line-height: 1;
}
.type-tabs button.active > span {
  color: #57714c;
  background: #dfe8d5;
}
.type-tabs button:last-child {
  gap: 3px;
}
@media (max-width: 650px) {
  .type-tabs {
    gap: 15px;
  }
  .type-tabs button > span {
    font-size: 7px;
  }
}
@media (max-width: 650px) {
  .breadcrumb {
    max-width: 36vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-shrink: 1;
  }
  .topbar-actions {
    flex-shrink: 0;
  }
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: #20302145;
  backdrop-filter: blur(2px);
  z-index: 19;
  border-radius: 0;
}
@media (max-width: 650px) {
  .mobile-only.icon-button {
    width: 38px;
    height: 42px;
  }
  .topbar-actions #focus-mode {
    min-height: 40px;
  }
  .type-tabs button {
    min-height: 42px;
  }
  .searchbar .secondary {
    min-height: 40px;
  }
  .searchbar > input {
    font-size: 16px;
  }
  .searchbar .search-symbol {
    font-size: 24px;
  }
  .save-button,
  .compare-card {
    width: 44px;
    height: 44px;
    right: 0;
    border: 0;
    background: transparent !important;
    isolation: isolate;
  }
  .save-button {
    top: 0;
  }
  .compare-card {
    top: 44px;
  }
  .save-button::before,
  .compare-card::before {
    content: "";
    position: absolute;
    inset: 9px;
    background: #fffef9f0;
    border: 1px solid #dce1d3;
    border-radius: 50%;
    z-index: -1;
  }
  .save-button.is-saved::before,
  .compare-card.selected::before {
    background: #dfe8d5;
    border-color: #b8c8aa;
  }
  .records.list .compare-card {
    right: 0;
    top: 44px;
  }
  .detail-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 8px 17px;
  }
  .detail-top > span {
    font-size: 9px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .detail-top > div {
    justify-content: space-between;
    gap: 5px;
  }
  .detail-top .icon-button {
    width: 44px;
    height: 40px;
  }
  .detail-top .text-button {
    min-height: 40px;
    font-size: 10px;
  }
  .detail-section textarea {
    font-size: 16px;
  }
  .filter-panel select,
  .filter-panel input {
    font-size: 16px;
    min-height: 42px;
  }
  .filter-panel input[type="checkbox"] {
    min-height: 14px;
  }
  .fullscreen-controls .secondary {
    min-width: 44px;
    min-height: 44px;
  }
  .fullscreen-controls #zoom-reset {
    min-width: 44px;
    min-height: 44px;
  }
  .fullscreen-bar > .icon-button {
    width: 44px;
    height: 44px;
  }
}
.detail-gallery,
.detail-info {
  min-width: 0;
}
.main-photo {
  min-width: 0;
  width: 100%;
}
.main-photo img {
  min-width: 0;
  max-width: 100%;
}
.thumbs {
  min-width: 0;
  max-width: 100%;
}
.fullscreen-photo {
  min-width: 0;
  max-width: 100%;
}
.fullscreen-photo img {
  min-width: 0;
}
@media (max-width: 900px) {
  .detail-content {
    grid-template-columns: minmax(0, 1fr);
  }
}
.local-dot.pending {
  background: #ab955e;
}
#workspace-status {
  font-size: 8px;
  line-height: 1.6;
}
.detail-source-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.detail-source-heading > .text-button {
  font-size: 9px;
}
.source-image-link {
  display: block;
  font-size: 9px;
  margin-top: 9px;
  text-decoration: none;
}
.evidence-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.evidence-actions .text-button {
  font-size: 10px;
}
@media (max-width: 650px) {
  .source-image-link {
    min-height: 40px;
    display: flex;
    align-items: center;
    font-size: 10px;
    margin-top: 4px;
  }
  .detail-source-heading > .text-button {
    min-height: 40px;
  }
  .evidence-actions .text-button {
    min-height: 40px;
  }
}
@media print {
  .source-image-link,
  .detail-source-heading button,
  .evidence-actions {
    display: none !important;
  }
}
.reload-data {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  position: relative;
  white-space: nowrap;
  font-size: 10px !important;
}
.reload-data > span:first-child {
  font-size: 15px;
}
.reload-data.update-available:after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b49a56;
  right: -7px;
  top: 1px;
}
.reload-progress {
  height: 3px;
  background: linear-gradient(90deg, #dfe6d7 20%, #6e845e 50%, #dfe6d7 80%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  margin-top: 22px;
  border-radius: 3px;
}
@media (max-width: 650px) {
  .breadcrumb-prefix {
    display: none;
  }
  .breadcrumb {
    max-width: 24vw;
  }
  .breadcrumb b {
    margin-left: 0;
  }
  .reload-data {
    min-width: 34px;
    min-height: 40px;
    justify-content: center;
  }
  .reload-data > span:first-child {
    font-size: 20px;
  }
  .reload-data-label {
    display: none;
  }
  .topbar-actions {
    gap: 7px;
  }
  .reload-data.update-available:after {
    right: 2px;
    top: 7px;
  }
}
.source-export {
  margin: 0 0 22px;
  min-height: 40px;
}
.activity-toolbar .text-button {
  min-height: 34px;
}
@media (max-width: 900px) {
  .results-actions #export {
    display: inline-grid;
    place-items: center;
    font-size: 0;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
  }
  .results-actions #export:after {
    content: "↓";
    font-size: 16px;
  }
}
@media (max-width: 650px) {
  .results-actions #export {
    width: 40px;
    height: 40px;
  }
  .results-actions #display-mode {
    display: block;
    font-size: 16px;
    width: 90px;
    max-width: 90px;
    min-height: 40px;
    padding: 5px;
  }
  .results-actions .view-switch {
    display: none;
  }
  .results-actions #sort {
    max-width: 100px;
    min-height: 40px;
  }
  .pagination > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
  }
  .page-total {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
  }
  .page-jump {
    min-height: 36px;
    width: 48px;
    font-size: 16px;
  }
  .pagination > button {
    min-height: 40px;
  }
  .activity-toolbar {
    gap: 18px;
  }
  .activity-toolbar .text-button {
    min-height: 40px;
  }
  .source-export {
    font-size: 12px;
  }
}
.inspect-source {
  margin: 16px 0 0;
  font-size: 10px;
}
.utility-dialog.source-evidence-dialog {
  width: min(950px, 96vw);
  max-height: 92dvh;
}
.source-page-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  margin: 20px 0;
}
.source-page-controls select {
  font-size: 11px;
}
.source-page-controls > button {
  margin-left: auto;
  font-size: 10px;
}
.capture-row {
  border: 1px solid var(--line);
  background: #fcfcf8;
  border-radius: 4px;
  padding: 17px;
  margin: 12px 0;
}
.capture-row-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 9px;
  color: #929a85;
  margin-bottom: 11px;
}
.capture-state {
  display: inline-block;
  padding: 4px 6px;
  border: 1px solid #d9dccc;
  border-radius: 3px;
  color: #8f815f;
  font-size: 8px;
}
.capture-state.captured {
  color: #637a54;
  background: #e9efdf;
  border-color: #d6dfc9;
}
.capture-row > a {
  font-size: 11px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.capture-row > p {
  margin: 9px 0;
  font-size: 11px;
}
.capture-row > pre {
  font-size: 10px !important;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f0ece1;
  color: #8d7856;
  padding: 10px;
  border-radius: 3px;
  max-height: 140px;
  overflow: auto;
}
.capture-row > details {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}
.capture-row > details summary {
  cursor: pointer;
}
.capture-row .detail-meta {
  font-size: 9px;
}
.source-evidence-dialog .pagination {
  margin: 23px 0 0;
}
@media (max-width: 650px) {
  .utility-dialog.source-evidence-dialog {
    width: 100vw;
    max-height: 96dvh;
    padding: 19px;
  }
  .source-page-controls {
    flex-wrap: wrap;
    gap: 12px;
  }
  .source-page-controls select {
    width: 100%;
    font-size: 16px;
    min-height: 44px;
  }
  .source-page-controls > button {
    min-height: 40px;
    margin-left: auto;
  }
  .capture-row {
    padding: 13px;
  }
  .capture-row-heading {
    font-size: 8px;
  }
  .capture-row > a {
    font-size: 10px;
  }
  .capture-row > details summary {
    min-height: 40px;
    line-height: 40px;
  }
  .capture-row .detail-meta {
    grid-template-columns: 85px 1fr;
  }
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 200;
  background: var(--green);
  color: white;
  padding: 12px 18px;
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
}
.skip-link:focus {
  top: 16px;
}
.close-nav {
  position: absolute;
  right: 7px;
  top: 7px;
  font-size: 23px;
}
@media (max-width: 650px) {
  .sidebar .close-nav {
    width: 44px;
    height: 44px;
  }
  .saved-view > button:first-child {
    min-height: 44px;
  }
  .saved-view > button:last-child {
    min-width: 36px;
    min-height: 44px;
  }
  .sidebar-bottom .text-button {
    min-height: 40px;
  }
  .sidebar-bottom {
    letter-spacing: 1px;
  }
}
.recovery-entry {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.recovery-entry h3 {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 10px;
}
.recovery-entry > p {
  font-size: 10px !important;
}
.recovery-entry details {
  font-size: 11px;
  color: var(--muted);
  margin: 13px 0;
}
.recovery-entry summary {
  cursor: pointer;
}
.recovery-entry pre {
  font-size: 10px !important;
  max-height: 250px;
}
.recovery-entry .secondary {
  margin-top: 7px;
}
.filter-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.filter-panel .type-picker {
  width: 100%;
  justify-content: space-between;
  min-height: 36px;
  font-size: 11px;
  background: #fafaf5;
  border: 1px solid var(--line);
  padding: 10px;
}
.type-picker:after {
  content: "⌄";
  font-size: 12px;
  color: #87947a;
}
.type-options {
  border: 0;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
.type-choice {
  display: flex !important;
  align-items: center;
  gap: 9px;
  font-size: 11px !important;
  color: var(--ink);
  line-height: 1.6;
  cursor: pointer;
  min-height: 40px;
}
.type-choice input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin: 0 !important;
}
.type-choice span {
  flex: 1;
}
.type-choice b {
  font-size: 9px;
  font-weight: 400;
  color: #8b967e;
}
.type-picker-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.chip {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.chip button {
  flex-shrink: 0;
}
@media (max-width: 650px) {
  .filter-panel .type-picker {
    font-size: 16px;
    min-height: 42px;
  }
  .type-options {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 18px 0;
  }
  .type-choice {
    font-size: 13px !important;
    min-height: 44px;
  }
  .type-choice input {
    width: 19px;
    height: 19px;
  }
  .type-choice b {
    font-size: 10px;
  }
  .filter-label {
    font-size: 9px;
  }
}

.card-source {
  font-size: 9px;
}
.type-label {
  font-size: 9px;
  color: #6b785f;
}
.status {
  font-size: 9px;
  color: #6c7562;
}
.status.sold {
  color: #7c6c58;
}
.status.reserved {
  color: #8a6c2d;
}
.price.unknown {
  color: #6e775f;
}
.context-note {
  color: #6e7863;
}
@media (max-width: 650px) {
  .card-source {
    font-size: 8px;
  }
  .type-label {
    font-size: 8px;
  }
  .status {
    font-size: 9px;
  }
  .context-note {
    font-size: 9px;
  }
  .card .price.unknown {
    font-size: 10px;
  }
}

/* Personal labels are visually separate from source badges. */
.personal-tags,
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.personal-tags {
  margin-bottom: 12px;
  min-height: 26px;
}
.personal-tag,
.card-tags span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #e8eddf;
  border: 1px solid #d9e1ce;
  border-radius: 5px;
  color: #46533a;
  font-size: 11px;
  padding: 5px 8px;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.personal-tag button {
  border: 0;
  background: transparent;
  color: inherit;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.label-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.label-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 12px;
  background: #fffefb;
  color: var(--ink);
  font: inherit;
}
.label-form button {
  flex-shrink: 0;
}
.labels-help,
.no-labels {
  font-size: 11px;
  color: #6e7863;
}
.labels-help {
  margin: 9px 0 0 !important;
}
.card-tags {
  margin: 0 0 10px;
}
.card-tags span {
  font-size: 9px;
  padding: 3px 6px;
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.records.photo .card-tags {
  display: none;
}
.label-directory {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.label-directory button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
}
.label-directory button span {
  overflow-wrap: anywhere;
}
.label-directory small {
  white-space: nowrap;
  color: #6e7863;
}
@media (max-width: 650px) {
  .label-form input {
    font-size: 16px;
  }
  .personal-tag {
    font-size: 12px;
  }
  .personal-tag button {
    min-width: 32px;
    min-height: 32px;
  }
  .card-tags span {
    font-size: 8px;
  }
  .card-tags {
    gap: 3px;
    margin-bottom: 6px;
  }
}
@media print {
  .label-form,
  .labels-help,
  .personal-tag button {
    display: none !important;
  }
  .personal-tag {
    border: 1px solid #aaa;
    background: white;
    color: black;
  }
}

.organise-form > label:not(.checkbox) {
  display: block;
  margin: 18px 0 8px;
  font-size: 12px;
}
.organise-form > input,
.organise-form > select,
.organise-form fieldset > input {
  width: 100%;
  font: inherit;
  background: #fffefb;
  color: var(--ink);
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.organise-form .checkbox {
  margin-top: 20px;
  align-items: flex-start;
  line-height: 1.5;
}
.organise-form .checkbox input {
  flex-shrink: 0;
  margin-top: 2px;
}
.organise-form fieldset {
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 15px;
}
.organise-form fieldset:disabled {
  opacity: 0.5;
}
.organise-form fieldset > label:not(.checkbox) {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.organise-form fieldset p,
.organise-summary {
  font-size: 11px !important;
  line-height: 1.6;
}
.organise-form small {
  font-size: 10px;
  color: #6e7863;
}
.organise-form > button {
  margin-top: 8px;
  width: 100%;
}
.organise-form input[type="checkbox"] {
  accent-color: #52634a;
}
@media (max-width: 650px) {
  #organise-results {
    border: 1px solid var(--line);
    border-radius: 5px;
    min-width: 34px;
    min-height: 34px;
    font-size: 20px;
    padding: 0;
  }
  .organise-text {
    display: none;
  }
  .organise-form > input,
  .organise-form > select,
  .organise-form fieldset > input {
    font-size: 16px;
  }
}

.record-position {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #68765d;
  letter-spacing: 0;
  text-transform: none;
}
@media (max-width: 650px) {
  .record-position {
    font-size: 9px;
    margin-top: 4px;
  }
}

.price-evidence {
  margin: 12px 0 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 11px;
  color: #5a674f;
}
.price-evidence summary {
  cursor: pointer;
  font-size: 11px;
}
.price-evidence p {
  line-height: 1.65;
  margin: 10px 0 0;
}
.price-evidence blockquote {
  margin: 12px 0;
  padding: 9px 12px;
  background: #eef0e8;
  border-left: 2px solid #839277;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.price-evidence .evidence-path {
  font: 10px monospace;
  overflow-wrap: anywhere;
}

.price-coverage-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}
.price-coverage-stats button {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 15px 12px;
  background: transparent;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
.price-coverage-stats button:hover {
  background: #eef1e5;
  border-color: #8a967e;
}
.price-coverage-stats small {
  display: block;
  margin-top: 12px;
  font-size: 10px;
  color: #445b36;
}
.price-coverage-stats strong {
  display: block;
  font: 28px var(--serif);
  margin-bottom: 9px;
}
.price-coverage-stats span {
  display: block;
  font-size: 10px;
  line-height: 1.6;
  color: #65725a;
}
.coverage-table-wrap {
  overflow: auto;
  margin-top: 24px;
  max-height: 45vh;
}
.coverage-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
.coverage-table th,
.coverage-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.coverage-table thead th {
  position: sticky;
  top: 0;
  background: #f8f8f1;
  z-index: 1;
  font-size: 10px;
  color: #65725a;
}
.coverage-table tbody th {
  font-weight: 500;
}
.coverage-table .text-button {
  white-space: nowrap;
  font-size: 10px;
}
@media (max-width: 650px) {
  .price-coverage-stats {
    grid-template-columns: 1fr;
  }
  .price-coverage-stats button {
    display: grid;
    grid-template-columns: 60px 1fr;
    align-items: center;
    gap: 6px 16px;
  }
  .price-coverage-stats small {
    grid-column: 2;
    margin: 0;
  }
  .price-coverage-stats strong {
    margin: 0;
    min-width: 60px;
  }
  .context-note #price-coverage {
    display: none;
  }
  .coverage-table th,
  .coverage-table td {
    padding: 10px 5px;
  }
}

.source-page-notice {
  border: 1px solid var(--line);
  background: #eef1e5;
  padding: 14px;
  border-radius: 5px;
  margin: 16px 0;
}
.unassigned-photos {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #c9bc93;
  border-radius: 5px;
  background: #f8f5e9;
}
.unassigned-photos summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.unassigned-photos p {
  font-size: 11px;
  line-height: 1.65;
  color: #6c654e;
}
.unassigned-photos .unassigned-photo-ids {
  font-family: monospace;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.unassigned-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.unassigned-photo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px;
  text-decoration: none;
  background: #fffef9;
}
.unassigned-photo img {
  width: 100%;
  height: 125px;
  object-fit: contain;
  background: white;
}
.unassigned-photo > span {
  font-size: 10px;
  line-height: 1.5;
  padding: 6px 2px;
  color: #6c654e;
}
.unassigned-photo .image-fallback {
  height: 125px;
}
.detail-gallery:has(.unassigned-photos[open]) {
  position: static;
}
.utility-dialog.print-preview-dialog {
  width: min(1100px, 96vw);
  max-width: 1100px;
  max-height: 94vh;
}
.print-preview-options {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px 24px;
  margin: 22px 0;
}
.print-preview-options > label:first-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}
.print-preview-options select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
  background: #fffefb;
  color: var(--ink);
  min-height: 44px;
}
.print-preview-options .checkbox {
  font-size: 11px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.print-preview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.print-preview-actions button {
  min-height: 44px;
}
#print-photo-status {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.utility-dialog .print-preview-help {
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted);
  margin: 16px 0;
}
.print-paper-wrap {
  padding: 24px;
  background: #dedfd5;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-top: 20px;
}
@media (max-width: 650px) {
  .print-paper-wrap {
    padding: 8px;
    margin-left: -10px;
    margin-right: -10px;
  }
  .print-preview-options {
    gap: 6px 16px;
  }
  .print-preview-options > label:first-child {
    width: 100%;
    margin-bottom: 8px;
  }
}
.source-page-notice p {
  font-size: 12px;
  line-height: 1.65;
  margin: 0 0 10px;
}
.source-page-notice p:only-child {
  margin-bottom: 0;
}

.fullscreen-photo.zoom-1 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.description-basis {
  font-size: 10px !important;
  color: #65725a;
  line-height: 1.6;
}

.utility-dialog.evidence-reader-dialog {
  width: 94vw;
  max-width: 1050px;
}
.evidence-reader-title {
  font-family: var(--serif);
  font-size: 17px !important;
  margin-bottom: 8px !important;
}
.evidence-reader-meta,
.reader-note {
  font-size: 10px !important;
  color: #65725a;
  line-height: 1.7;
}
.evidence-reader-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 12px;
}
.evidence-reader-tools form {
  display: flex;
  gap: 7px;
  flex: 1 0 100%;
  align-items: stretch;
}
.evidence-reader-tools input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 11px 12px;
  background: #fffefb;
  color: var(--ink);
  font: inherit;
}
.evidence-reader-tools #evidence-match-count {
  font-size: 10px;
  color: #65725a;
  flex: 1;
}
.evidence-reader-tools .secondary {
  min-width: 38px;
  padding: 8px 10px;
}
.captured-text {
  max-height: 45dvh;
  min-height: 180px;
  overflow: auto;
  overscroll-behavior: contain;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f1f2e9;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 18px;
  font: 12px/1.85 var(--sans);
  color: #3c4833;
}
.captured-text mark {
  background: #e9d99a;
  color: inherit;
  border-radius: 2px;
}
.captured-text mark.current-match {
  background: #d4bb60;
  outline: 1px solid #947e2f;
}
.capture-reader-details {
  margin-top: 16px;
  font-size: 11px;
}
.capture-reader-details summary {
  cursor: pointer;
}
.price-evidence > button {
  margin-top: 12px;
}
.stock-browser {
  margin: 18px 0 4px;
}
.stock-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stock-tabs .stock-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
  min-height: 40px;
}
.stock-tabs .stock-tab:hover {
  background: var(--light-green);
}
.stock-tabs .stock-tab.active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  font-weight: 600;
}
.stock-tab > span {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  opacity: .8;
}
.stock-help {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  margin: 9px 0 0;
}
.stock-date {
  margin: 8px 0 0;
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 650px) {
  .stock-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 3px 2px 7px;
    scroll-padding-inline: 4px;
  }
  .stock-tabs .stock-tab {
    flex-shrink: 0;
    padding: 10px;
  }
  .stock-help {
    margin-top: 3px;
  }
}
@media print {
  .stock-browser { display: none; }
}
@media (max-width: 650px) {
  .evidence-reader-tools input {
    font-size: 16px;
  }
  .captured-text {
    font-size: 12px;
    padding: 14px;
    max-height: 44dvh;
  }
  .evidence-reader-tools .secondary {
    min-width: 42px;
  }
}

/* Gunfinder: practical browsing, with the existing image and card geometry. */
:root { --paper: #f7f8fa; --sidebar: #eef1f5; --ink: #202c3b; --muted: #657283; --line: #dbe1e8; --green: #294b6b; --light-green: #e4edf5; --serif: var(--sans); }
.brand { gap: 12px; letter-spacing: 0; }
.brand-mark { background: var(--ink); color: #fff; border-color: var(--ink); font: 700 23px var(--sans); letter-spacing: -1px; }
.brand-mark span { color: #c5d8e8; }
.brand-name { font-size: 23px; font-weight: 750; letter-spacing: -.8px; }
.brand-name small { display: block; margin-top: 5px; font-size: 10px; font-weight: 500; letter-spacing: .3px; color: var(--muted); }
.workspace-label { font-size: 9px; letter-spacing: 1.2px; }
.page-heading, .browsing .page-heading { margin: 0 0 24px; gap: 20px; }
.page-heading h1, .browsing .page-heading h1 { font-family: var(--sans); font-size: clamp(25px, 2.4vw, 36px); font-weight: 700; letter-spacing: -1px; line-height: 1.2; margin: 10px 0; }
.page-heading p:not(.eyebrow) { max-width: 640px; line-height: 1.6; }
.heading-stat { padding-top: 0; }
.heading-stat strong { font-size: 32px; font-weight: 650; letter-spacing: -1px; }
.card h3 { font-weight: 600; }
.compare-card { display: none; }
.boards-toolbar { flex-wrap: wrap; }
.shortlist-tabs { display: flex; gap: 8px; overflow-x: auto; flex-basis: 100%; padding: 2px 0 8px; }
.shortlist-chip { white-space: nowrap; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 9px 12px; font-size: 12px; }
.shortlist-chip.selected { background: var(--green); border-color: var(--green); color: #fff; }
.shortlist-chip b { margin-left: 6px; opacity: .7; font-weight: 500; }
footer p { font-family: var(--sans); font-size: 12px; }
@media(max-width: 700px) { .heading-stat { display: none; } .brand-name { font-size: 21px; } }
