#crop-grid-hint { margin: -5px 0 12px; }
#crop-grid-scroll {
  max-width: 100%; max-height: min(78vh, 59rem); overflow: auto;
  border: 1px solid var(--rule); border-radius: 5px; background: var(--card);
  scrollbar-color: #a0ae96 #f0f2e8; scroll-padding: 52px 8px 8px 92px;
}
#crop-grid-table {
  width: 100%; min-width: 860px; table-layout: fixed;
  white-space: normal; border-spacing: 0; text-align: left;
}
#crop-grid-table th, #crop-grid-table td { padding: 0; border: 0; }
#crop-grid-table th { font: 650 13px/1.2 var(--sans); text-align: left; }
#crop-grid-table th:first-child { width: 90px; }
#crop-grid-table thead th {
  position: sticky; top: 0; z-index: 2; height: 48px; padding: 5px 12px;
  background: #e6ecdf; color: var(--green); border-bottom: 1px solid var(--rule);
}
#crop-grid-table thead th:first-child { left: 0; z-index: 3; }
#crop-grid-table tbody th {
  position: sticky; left: 0; z-index: 1; padding: 10px 8px 10px 12px;
  background: #f1f3e9; color: var(--green);
}
#crop-grid-table tr > :not(:last-child) { border-right: 1px solid var(--rule); }
#crop-grid-table tbody tr:not(:last-child) > * { border-bottom: 1px solid var(--rule); }
#crop-grid-table td { background: var(--card); }
.cg-pack, .cg-name { display: flex; align-items: center; gap: 7px; }
#crop-grid-table img, .cg-artworks img { image-rendering: pixelated; object-fit: contain; flex-shrink: 0; }
.cg-tile {
  position: relative; width: 100%; height: 100%; min-height: 92px; display: block;
  border: 0; border-radius: 0; background: transparent; padding: 9px 12px;
  text-align: left; color: var(--ink); line-height: 1.25;
}
.cg-tile:hover, .cg-tile:focus-visible { background: #edf2e5; }
.cg-tile:focus-visible { outline: 2px solid var(--green); outline-offset: -3px; }
.cg-name { min-height: 34px; margin-bottom: 5px; font: 650 15px/1.12 var(--serif); }
.cg-count { display: flex; justify-content: space-between; gap: 4px; font: 12px/1.45 var(--sans); font-variant-numeric: tabular-nums; }
.cg-count > span { color: var(--muted); }
.cg-count b { font-weight: 600; }
#crops #opening { margin-top: 12px; }
#crop-detail {
  width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px);
  padding: 22px; overflow: auto; overscroll-behavior: contain;
  background: var(--card); color: var(--ink); border: 1px solid var(--rule);
  border-radius: 8px; box-shadow: 0 24px 72px #14291d4d;
}
#crop-detail::backdrop { background: #14291db3; }
.cg-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.cg-context, #crop-detail-alias, .cg-artworks figcaption, .cg-record dt, .cg-evidence p { color: var(--muted); font-size: 13px; }
#crop-detail-title { margin: 4px 0 1px; font-size: 30px; line-height: 1.15; }
#crop-detail-close { min-height: 40px; border: 1px solid var(--rule); border-radius: 5px; background: var(--card); padding: 5px 12px; }
.cg-artworks { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 15px 0; }
.cg-artworks figure { margin: 0; padding: 8px; text-align: center; background: #edf1e4; border-radius: 4px; }
.cg-artworks img { display: block; margin: auto; }
.cg-record { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin: 0; }
.cg-record div { border-top: 1px solid var(--rule); padding: 8px 0; }
.cg-record dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
.cg-evidence { margin-top: 10px; border-top: 1px solid var(--rule); padding-top: 12px; }
.cg-evidence strong { font-size: 14px; }
.cg-evidence p { margin: 4px 0 8px; line-height: 1.55; }
.cg-links { display: flex; flex-wrap: wrap; gap: 5px 13px; font-size: 12px; color: var(--green); }
@media (max-width: 620px) {
  #crop-grid-table { min-width: 785px; }
  #crop-grid-table th:first-child { width: 77px; }
  #crop-grid-table th, .cg-count { font-size: 12px; }
  #crop-grid-table thead th, #crop-grid-table tbody th { padding-inline: 7px; }
  .cg-tile { padding-inline: 8px; }
  #crop-detail { padding: 16px; }
}
