:root {
  color-scheme: light;
  --ink: #182d25;
  --muted: #596b62;
  --paper: #f4f5ef;
  --surface: #fffef9;
  --line: #dce2d6;
  --green: #246447;
  --light: #e6efdf;
  --amber: #885313;
  --red: #a33731;
  --shadow: 0 12px 38px #14291f08;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(2rem, 4.5vw, 3.65rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.055em;
  margin: 9px 0 16px;
}
h2 {
  font-size: 1.35rem;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
h3 {
  font-size: 1.06rem;
  line-height: 1.35;
}
p + p {
  margin-top: 10px;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 0.82rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 750;
  color: var(--green);
  margin-bottom: 8px;
}
.site-header,
main,
footer {
  max-width: 1180px;
  margin: auto;
  padding-left: 32px;
  padding-right: 32px;
}
.site-header {
  height: 104px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
  color: #ddebaf;
  font-size: 33px;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-size: 0.51rem;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 46px 0 32px;
}
.pill {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 99px;
  padding: 5px 10px;
  font-size: 0.73rem;
  font-weight: 650;
  white-space: nowrap;
}
.pill.warning {
  background: #fff2d9;
  color: var(--amber);
  border-color: #f0d6a6;
}
.pill.good {
  background: var(--light);
  color: var(--green);
}
.pill.danger {
  color: var(--red);
  background: #ffefeb;
  border-color: #e9c8c2;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
}
.summary {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 22px;
}
.stat {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
}
.stat.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.stat.primary .muted,
.stat.primary .eyebrow {
  color: #c9dbc8;
}
.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.15;
}
.stat .muted {
  font-size: 0.8rem;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
}
.segmented {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}
.segmented button {
  background: none;
  border: none;
  border-radius: 8px;
  padding: 8px 13px;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}
.segmented button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.chart-label {
  font-size: 12px;
  fill: var(--muted);
}
.chart-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-line.partial {
  stroke: var(--amber);
  stroke-dasharray: 5 5;
}
.chart-dot {
  fill: var(--green);
  stroke: var(--surface);
  stroke-width: 2;
}
.chart-dot.partial {
  fill: var(--amber);
}
.chart-note {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 12px;
}
.chart-caption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}
.history-panel {
  margin-bottom: 24px;
}
.table-wrap {
  overflow: auto;
  max-height: 330px;
  margin-top: 14px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  text-align: left;
}
th,
td {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-weight: 650;
}
details > summary {
  cursor: pointer;
  padding: 12px 0;
  font-weight: 650;
  min-height: 44px;
}
details > p {
  margin: 8px 0 16px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.button,
button.button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 15px;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.button.danger {
  color: var(--red);
  border-color: #e5bbb5;
  background: #fff8f5;
}
.button:hover {
  filter: brightness(0.96);
}
.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  font-size: 25px;
  flex-shrink: 0;
}
.owner-panel {
  margin-bottom: 30px;
  background: #eaf0e4;
}
.owner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}
.collection-heading {
  margin-top: 34px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card-art {
  height: 206px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(140deg, #edf0e6, #e3e9d9);
  position: relative;
  padding: 18px;
}
.card-art img {
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 7px #182d2525);
}
.card-art .quantity {
  position: absolute;
  right: 12px;
  top: 12px;
}
.art-fallback {
  font-size: 72px;
  color: #69876e;
  opacity: 0.65;
}
.card-body {
  padding: 19px;
}
.card-title {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  justify-content: space-between;
}
.card-meta {
  font-size: 0.79rem;
  color: var(--muted);
  margin-top: 6px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 13px 0;
}
.card-tags .pill {
  font-size: 0.65rem;
  white-space: normal;
}
.card-price {
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 12px 0 2px;
}
.card-body > .button {
  width: 100%;
  margin-top: 16px;
}
.empty {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 13px;
  padding: 46px 25px;
}
.empty p {
  max-width: 470px;
  color: var(--muted);
}
.empty .brand-mark {
  width: 60px;
  height: 60px;
  font-size: 46px;
  margin-bottom: 7px;
}
.transparency {
  margin-top: 30px;
}
.transparency details + details {
  border-top: 1px solid var(--line);
}
.source-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
.source-row:last-child {
  border: 0;
}
.source-row .pill {
  margin-left: 7px;
}
.source-row p {
  margin-top: 6px;
  color: var(--muted);
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 0.73rem;
  color: var(--muted);
}
#notice {
  border: 1px solid #b9ceb6;
  background: #e8f1e1;
  padding: 15px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 0.86rem;
}
#notice.error,
.form-error {
  color: #882c28;
  background: #fff0ea;
  border-color: #e9bfb7;
}
#notice .button {
  margin-left: 12px;
}
.form-error {
  padding: 12px;
  border: 1px solid #e9bfb7;
  border-radius: 10px;
  margin: 12px 0;
  font-size: 0.85rem;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  padding: 26px;
  width: 700px;
  max-width: calc(100% - 28px);
  max-height: 90dvh;
  box-shadow: 0 30px 100px #14291f40;
}
dialog::backdrop {
  background: #12251f99;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 1.6rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 650;
  margin-bottom: 15px;
}
.field input,
.field select {
  width: 100%;
  border: 1px solid #bdcabb;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  min-height: 46px;
  font-size: 1rem;
}
.field small {
  font-weight: 400;
  color: var(--muted);
}
input:disabled,
select:disabled {
  background: #eef0e8;
  color: var(--muted);
}
.field.wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.form-help {
  font-size: 0.82rem;
  background: var(--light);
  border-radius: 10px;
  padding: 13px;
  margin-bottom: 20px;
  color: #34513d;
}
.catalog-results {
  max-height: 270px;
  overflow: auto;
  display: grid;
  gap: 7px;
  margin: 15px 0;
}
.catalog-result {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  min-height: 55px;
}
.catalog-result small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.quote {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin: 13px 0;
}
.quote-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.quote p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 8px;
}
.quote .quote-amount {
  font-size: 1.3rem;
  color: var(--ink);
  font-weight: 650;
}
.detail-section {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.event-row {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.event-row p {
  font-size: 0.83rem;
}
.danger-zone {
  margin-top: 30px;
  padding: 18px;
  border: 1px solid #dfbab0;
  border-radius: 12px;
  background: #fff7f1;
}
.danger-zone p {
  font-size: 0.82rem;
  margin: 10px 0 16px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: white;
  padding: 12px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #5b8524;
  outline-offset: 3px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
@media (max-width: 850px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-heading {
    display: block;
  }
  .page-heading > .pill {
    margin-top: 20px;
  }
  .summary {
    gap: 10px;
  }
  .stat {
    padding: 20px;
  }
  .site-header,
  main,
  footer {
    padding-left: 22px;
    padding-right: 22px;
  }
}
@media (max-width: 560px) {
  .site-header {
    height: 84px;
  }
  .site-header,
  main,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand {
    font-size: 0.76rem;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 27px;
  }
  .page-heading {
    padding-top: 30px;
  }
  .summary {
    grid-template-columns: 1fr 1fr;
  }
  .stat {
    min-height: 136px;
    padding: 19px;
    gap: 8px;
  }
  .stat.primary {
    grid-column: 1/-1;
    min-height: 160px;
  }
  .stat.primary .stat-value {
    font-size: 2.6rem;
  }
  .stat-value {
    font-size: 1.8rem;
  }
  .panel {
    padding: 19px;
    border-radius: 16px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .segmented {
    align-self: stretch;
    justify-content: space-between;
  }
  .segmented button {
    flex: 1;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .card-art {
    height: 100%;
    min-height: 236px;
    padding: 12px;
  }
  .card-art img {
    height: auto;
    width: 100%;
    max-height: 175px;
  }
  .card-art .quantity {
    top: 9px;
    right: 8px;
    font-size: 0.65rem;
  }
  .card-body {
    padding: 15px;
  }
  .card-body > .button {
    margin-top: 12px;
  }
  .card-tags {
    margin: 10px 0;
  }
  .card-price {
    font-size: 1.25rem;
  }
  .card-meta {
    font-size: 0.75rem;
  }
  .owner-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .owner-top .actions {
    width: 100%;
  }
  .owner-top .actions > .button {
    flex: 1;
  }
  .collection-heading {
    gap: 12px;
  }
  .collection-heading .actions {
    width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  dialog {
    padding: 20px;
    max-width: calc(100% - 16px);
    max-height: 94dvh;
  }
  .dialog-heading h2 {
    font-size: 1.3rem;
  }
  .form-actions > .button {
    flex: 1;
  }
  .quote-top {
    align-items: flex-start;
  }
  .event-row {
    align-items: flex-start;
  }
  footer {
    flex-direction: column;
    gap: 6px;
  }
  .chart-label {
    font-size: 14px;
  }
  .chart-svg {
    min-height: 170px;
  }
  .chart-note {
    font-size: 0.72rem;
  }
  .transparency {
    padding: 15px;
  }
  #account {
    gap: 5px;
  }
  #account .button {
    padding: 9px 11px;
    font-size: 0.75rem;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.15s,
      filter 0.15s;
  }
  .card:hover {
    box-shadow: 0 12px 32px #14291f10;
  }
}
/* Keep long names and unavailable values within narrow mobile grid tracks. */
.stat,
.card-body,
.owner-top > div,
.section-heading > div {
  min-width: 0;
}
.stat-value,
.card-body,
.source-row {
  overflow-wrap: anywhere;
}
.stat-value.unavailable,
.stat.primary .stat-value.unavailable {
  font-size: clamp(0.95rem, 3vw, 1.35rem);
  letter-spacing: 0;
}
.summary {
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Metadata artwork and transparent pricing progress. */
.thumbnail,
.detail-thumbnail,
.selection-thumbnail,
.collection-image {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.thumbnail {
  width: 42px;
  height: 59px;
}
.thumbnail img,
.detail-thumbnail img,
.selection-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}
.image-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 40px;
  border-radius: 7px;
  background: #e7eddf;
  color: #66826e;
  font-size: 32px;
}
.collection-image {
  height: 100%;
  width: 100%;
}
.collection-image .image-fallback {
  font-size: 64px;
  background: transparent;
}
.detail-thumbnail {
  width: 88px;
  height: 122px;
}
.selection-thumbnail {
  width: 74px;
  height: 104px;
  margin: 0 auto 16px;
}
.holding-overview {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.holding-overview > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalog-result {
  display: flex;
  align-items: center;
  gap: 13px;
}
.catalog-info {
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalog-info strong,
.catalog-info small {
  display: block;
}
.pricing-status {
  margin-top: 14px;
  padding: 12px;
  background: #f0f3e9;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.pricing-heading {
  display: block;
  font-size: 0.84rem;
}
.pricing-status p {
  margin-top: 5px;
}
.pricing-status .small {
  font-size: 0.74rem;
}
.pricing-source {
  border-top: 1px solid var(--line);
  padding-top: 7px;
  margin-top: 8px;
}
.pricing-reason {
  font-size: 0.74rem;
  color: #70511e;
  line-height: 1.45;
}
.pricing-status > .button {
  margin-top: 12px;
  width: 100%;
}
@media (max-width: 560px) {
  .card-art .collection-image {
    align-self: flex-start;
    margin-top: 25px;
    height: auto;
    min-height: 150px;
  }
  .card-art .collection-image img {
    max-height: 170px;
  }
  .card-art .collection-image .image-fallback {
    min-height: 140px;
  }
  .detail-thumbnail {
    width: 68px;
    height: 95px;
  }
  .holding-overview {
    gap: 13px;
  }
  .pricing-status {
    padding: 10px;
  }
}
.pill.estimate {
  color: #51467a;
  background: #f0edf8;
  border-color: #d8cee9;
}
.valuation-basis {
  font-size: 0.78rem;
  line-height: 1.45;
  color: #51467a;
  overflow-wrap: anywhere;
}
.chart-empty {
  min-height: 90px;
  max-height: 130px;
}

.history-summary {
  margin-bottom: 12px;
}
.history-summary p {
  margin: 6px 0;
}
.backfill-status > summary {
  font-size: 0.82rem;
}
.history-provenance {
  min-width: 240px;
  max-width: 380px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.history-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 5px 0;
}
