@import url("https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&display=swap");

:root {
  --g-bg: #f7f8f9;
  --g-bg-2: #f0eae4;
  --g-bg-light: #f7f7f7;
  --g-text: #121212;
  --g-muted: #707070;
  --g-muted-light: #9b9b9b;
  --g-muted-dark: #777777;
  --g-line: #e7e7e7;
  --g-line-light: #f2f2f2;
  --g-green: #1ab24b;
  --g-red: #d92f20;
  --g-button: #121212;
  --g-button-text: #fff;
  --g-radius-media: 0.375rem;
  --g-radius-badge: 4rem;
  --g-radius-pill: 50px;
}

body {
  margin: 0;
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--g-text);
  background: linear-gradient(180deg, var(--g-bg), var(--g-bg-2) 100%);
}

.app {
  max-width: 2200px;
  margin: 0 auto;
  padding: 20px 3.125rem;
}

.top {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--g-line-light);
  margin-bottom: 8px;
}

.top h1 {
  margin: 0 0 6px;
}

.tagline {
  margin: 0 0 6px;
  max-width: 70ch;
}

.collection-hero__title {
  color: #000;
  font-family: "Inter Tight", sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.top .collection-hero__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.top .collection-hero__description {
  color: #000;
  font-family: "Inter Tight", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.top p {
  margin: 0;
  color: var(--g-muted);
}

.site-banner-image {
  display: block;
  width: min(400px, 100%);
  height: auto;
  margin: 0 0 8px;
}

.site-banner-link {
  display: inline-block;
  line-height: 0;
}

#meta {
  color: var(--g-muted-light);
  font-size: 12px;
  margin-top: 4px;
}

.meta-history-link {
  color: #121212;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.layout {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 207px minmax(760px, 2fr) minmax(280px, 0.8fr);
  gap: 12px;
  align-items: start;
}

.movements {
  margin-top: 6px;
}

.hero-pills {
  margin-top: 14px;
}

.mobile-action-bar {
  display: none;
}

.hero-pills.panel {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 8px 0 6px;
}

.scope-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 8px;
}

.scope-tab {
  background: transparent;
  border: none;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: var(--g-muted);
  padding: 4px 10px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.scope-tab.scope-tab--all {
  font-weight: 600;
  margin-right: 8px;
}

.scope-tab.is-active {
  background: #121212;
  color: #fff;
}

.scope-tab:not(.is-active):hover {
  background: rgb(0 0 0 / 4%);
}

#movementList {
  margin: 0;
  padding-left: 0;
  list-style: none;
  max-height: 156px;
  overflow: hidden;
  font-size: 13px;
}

#movementList li {
  padding: 6px 0;
  border-bottom: 1px solid var(--g-line-light);
}

#movementList li:last-child {
  border-bottom: none;
}

.movement-row {
  display: grid;
  grid-template-columns: 130px 110px minmax(260px, 1fr);
  column-gap: 10px;
  align-items: center;
}

.movement-row .status-badge {
  justify-self: center;
  min-width: 90px;
  text-align: center;
}

.movement-item-link {
  color: var(--g-text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.movement-item-link:hover {
  color: var(--g-muted);
}

.panel {
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.05);
  border-radius: 0;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(18, 18, 18, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 0;
}

#catalogTable {
  table-layout: fixed;
}

.table-scroll-wrap {
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: none;
  min-height: 0;
}

.table-scroll-wrap::-webkit-scrollbar {
  height: 0;
}

.table-scrollbar {
  position: fixed;
  left: 0;
  bottom: 12px;
  height: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 6px;
  background: #fff;
  z-index: 8;
}

.table-scrollbar.is-hidden {
  display: none;
}

.table-scrollbar-inner {
  height: 1px;
  width: 0;
}

th, td {
  text-align: left;
  padding: 3px 2px;
  border-bottom: 1px solid var(--g-line-light);
  white-space: normal;
  vertical-align: middle;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 3;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07rem;
  color: var(--g-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--g-text);
}

#catalogTable thead th.sortable {
  cursor: pointer;
  user-select: none;
}

tbody tr {
  cursor: pointer;
}

tbody tr:hover {
  background: var(--g-bg-light);
}

#catalogRows tr.is-selected {
  background: rgb(19 102 214 / 8%);
}

#historyRows tr.is-selected {
  background: rgb(19 102 214 / 8%);
}

.filters input[type="search"],
.filters select {
  width: 100%;
  border: 1px solid var(--g-line);
  border-radius: 0.375rem;
  padding: 8px 10px;
  margin-bottom: 8px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
}

.filters input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--g-line);
  border-radius: 0.375rem;
  margin-bottom: 8px;
  background: #fff;
  color: var(--g-text);
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.filters input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.filters input[type="date"]::-webkit-datetime-edit,
.filters input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.filters input[type="date"]::-webkit-datetime-edit-text,
.filters input[type="date"]::-webkit-datetime-edit-month-field,
.filters input[type="date"]::-webkit-datetime-edit-day-field,
.filters input[type="date"]::-webkit-datetime-edit-year-field {
  font-family: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--g-text);
}

.filters input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.72;
  cursor: pointer;
}

.filters input[type="date"]:focus-visible {
  outline: 2px solid rgb(19 102 214 / 20%);
  outline-offset: 1px;
  border-color: #aebfcf;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--g-muted);
  margin: 8px 0 4px;
}

.filters > label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 8px;
  font-size: 13px;
}

.filters > label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.filters h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.filters-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.filters-toggle {
  display: none;
  border: none;
  border-radius: 999px;
  background: #121212;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  cursor: pointer;
}

.flag-block {
  margin-top: 12px;
  margin-bottom: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--g-line-light);
}

.flag-block h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--g-muted);
}

.collection-hero__collection-blocks {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  flex-direction: row;
  width: 100%;
  column-gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1.125rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-pills .collection-hero__collection-blocks {
  padding: 0;
  column-gap: 10px;
  scroll-snap-type: x proximity;
  padding-bottom: 2px;
}

.collection-hero__collection-blocks::-webkit-scrollbar {
  display: none;
}

.chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  row-gap: 6px;
  column-gap: 10px;
}

.history-events {
  margin-top: 18px;
}

#historyFilters .field-label:first-of-type {
  margin-top: 2px;
}

.chip {
  position: relative;
  display: flex;
}

.chip input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.collection-hero__collection-block-pill {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background-color: #fff;
  color: #121212;
  border-radius: 50px;
  white-space: nowrap;
  border: 1px solid #121212;
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  padding: 10px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.chip-text {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: transparent;
  color: var(--g-muted);
  border: 1px solid var(--g-line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  min-height: 26px;
  padding: 4px 12px;
  width: 100%;
  max-width: 100%;
  white-space: normal;
  text-align: left;
  line-height: 1.35;
}

.collection-hero__collection-block-pill {
  background-color: #121212;
  color: #fff;
  border-color: #121212;
  font-size: 13px;
  padding: 8px 16px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  scroll-snap-align: start;
  flex: 0 0 auto;
}

.hero-pills .collection-hero__collection-block-pill {
  opacity: 0.6;
}

.hero-pills .collection-hero__collection-block-pill.is-active {
  opacity: 1;
}

.hero-pills .collection-hero__collection-block-pill:hover {
  opacity: 0.9;
}

.collection-hero__collection-block-pill:focus-visible {
  outline: 2px solid #000;
  outline-offset: 1px;
}

.chip:hover .chip-text,
.chip input:checked + .chip-text,
.collection-hero__collection-block-pill:hover,
.collection-hero__collection-block-pill.is-active {
  background: #000;
  color: #fff;
}

.chip:hover .chip-text,
.chip input:checked + .chip-text {
  border-color: #121212;
  letter-spacing: 0.03em;
}

.movement-date {
  color: var(--g-muted);
  font-size: 12px;
}

.movement-msg {
  color: var(--g-text);
}

.catalog {
  overflow: hidden;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.catalog > h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g-muted);
}

.view-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 10px;
  flex: 0 0 auto;
}

.view-tab {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--g-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 12px;
  cursor: pointer;
}

.view-tab.is-active {
  background: #d2d2d2;
  color: var(--g-text);
  border-color: #c6c6c6;
}

.view-tab:not(.is-active):hover {
  background: rgb(0 0 0 / 4%);
}

#catalogView,
#historyView {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

#catalogView.hidden,
#historyView.hidden {
  display: none;
}

.history-table-wrap {
  overflow-y: auto;
  min-height: 0;
  flex: 1 1 auto;
}

#historyTable {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

#historyTable tbody tr {
  cursor: default;
}

#historyTable td:nth-child(3) {
  text-align: center;
  white-space: normal;
}

.history-event {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.history-event-arrow {
  font-size: 11px;
  font-weight: 700;
  color: var(--g-muted-light);
}

.history-event-text {
  font-size: 12px;
  color: var(--g-text);
}

#historyTable th:nth-child(2) {
  text-align: center;
}

.history-day-row td {
  padding: 8px 8px 6px;
  border-bottom: 1px solid var(--g-line);
  color: var(--g-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #fff;
}

.history-model-link {
  color: var(--g-text);
  text-decoration: none;
  font-weight: 600;
}

.history-model-link:hover {
  color: var(--g-muted);
}

.history-status {
  font-size: 12px;
  color: var(--g-muted);
  margin: 2px 0 10px;
}

.history-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  flex: 0 0 auto;
}

.history-pagination button {
  appearance: none;
  border: 1px solid var(--g-line);
  border-radius: 999px;
  background: #fff;
  color: var(--g-text);
  font-family: inherit;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}

.history-pagination button.is-active {
  background: #121212;
  border-color: #121212;
  color: #fff;
}

.history-pagination button:disabled {
  cursor: default;
  opacity: 0.45;
}

.history-context {
  font-size: 12px;
  color: var(--g-muted);
  margin: 0 0 8px;
}

.history-context button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--g-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
}

.filters h2,
.detail h2,
.movements h2 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g-muted);
}

@media (min-width: 981px) {
  .catalog {
    max-height: calc(100vh - 240px);
  }

  #catalogTableWrap,
  .history-table-wrap {
    max-height: calc(100vh - 360px);
  }
}

#catalogTable th:nth-child(1),
#catalogTable td:nth-child(1) {
  width: 160px;
  min-width: 160px;
  max-width: 160px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

#catalogTable th:nth-child(4),
#catalogTable td:nth-child(4) {
  width: 65px;
  min-width: 65px;
  max-width: 65px;
}

#catalogTable th:nth-child(2),
#catalogTable th:nth-child(3) {
  text-align: center;
}

#catalogTable th:nth-child(2),
#catalogTable td:nth-child(2) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

#catalogTable th:nth-child(3),
#catalogTable td:nth-child(3) {
  width: 80px;
  min-width: 80px;
  max-width: 80px;
}

#catalogTable th:nth-child(4) {
  white-space: normal;
}

#historyTable th:nth-child(3) {
  text-align: center;
}

.col-status,
.col-qty,
.col-price,
.col-days-out {
  white-space: nowrap;
}

.col-status {
  text-align: center;
}

.catalog-name-cell {
  display: grid;
  gap: 4px;
}

.catalog-name-title {
  font-weight: 600;
  color: var(--g-text);
}

.catalog-name-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--g-muted-light);
}

.catalog-name-chip {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  background: #fafafa;
  color: #555;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.catalog-name-chip.catalog-name-chip-exclusive {
  border-color: #d2b46a;
  background: #fff7df;
  color: #7a5a00;
}

.status-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.status-subtext {
  display: block;
  font-size: 11px;
  line-height: 1.2;
  color: var(--g-muted-light);
}

.catalog-subtext {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--g-muted-light);
}

.catalog-subtext.catalog-subtext-empty {
  color: #8e8e8e;
  font-style: italic;
}
.col-qty {
  text-align: center;
}
.col-price {
  text-align: center;
}
.col-last-in,
.col-days-out {
  text-align: center;
}

.stock-estimate {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background: #cfcfcf;
  border: 1px solid rgba(0, 0, 0, 0.12);
  vertical-align: middle;
}

.stock-tooltip {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translate(-50%, -6px);
  background: #121212;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
  padding: 6px 8px;
  border-radius: 3px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
  z-index: 10;
}

.stock-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: #121212 transparent transparent transparent;
}

.stock-estimate:hover .stock-tooltip,
.stock-estimate:focus-within .stock-tooltip {
  opacity: 1;
}

.stock-estimate--oos {
  background: #bdbdbd;
}

.stock-estimate--unknown {
  background: #d9d9d9;
}

.stock-estimate--ketchup {
  background: #ff0000;
}

.stock-estimate--low-red {
  background: #ff6b5e;
}

.stock-estimate--yellow {
  background: #ffc2a6;
}

.stock-estimate--green {
  background: #c8ffb3;
}

.stock-estimate--green-mid {
  background: #95ff66;
}

.stock-estimate--green-strong {
  background: #00ff00;
}

.col-vendor {
  font-size: 12px;
}

.col-last-in,
.col-last-checked {
  font-size: 12px;
}

.status-in_stock {
  color: var(--g-green);
  font-weight: 600;
}

.status-out_of_stock {
  color: var(--g-red);
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}

.status-badge.status-in_stock {
  color: var(--g-green);
  background: rgb(26 178 75 / 8%);
}

.status-badge.status-out_of_stock {
  color: var(--g-red);
  background: rgb(217 47 32 / 8%);
}

.hidden {
  display: none;
}

#inventoryChart {
  margin-top: 10px;
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius-media);
  width: 100%;
  padding: 8px 10px 10px 16px;
  display: block;
  box-sizing: border-box;
  cursor: pointer;
}

.chart-hover-tip {
  position: fixed;
  z-index: 3001;
  pointer-events: none;
  background: #121212;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgb(0 0 0 / 18%);
  white-space: nowrap;
}

.detail-image {
  display: block;
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border: none;
  border-radius: var(--g-radius-media);
  background: var(--g-bg-light);
  padding: 20px;
  box-sizing: border-box;
  margin: 8px 0;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

.detail-image-loading {
  filter: blur(8px) saturate(0.85);
  opacity: 0.62;
}

.detail h3 {
  margin: 0 0 8px;
  font-family: "Inter Tight", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

.detail-meta {
  margin: 2px 0 4px;
  font-size: 13px;
  color: var(--g-text);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-meta-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-freshness {
  font-size: 12px;
  font-weight: 500;
  color: var(--g-muted-light);
}

.detail-submeta {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--g-muted-light);
}

.detail-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.detail-summary.hidden {
  display: none;
}

.detail-summary-card {
  border: 1px solid var(--g-line-light);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgb(255 255 255 / 78%);
}

.detail-summary-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--g-muted-light);
}

.detail-summary-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border: 1px solid #9aabbb;
  border-radius: 999px;
  background: #f4f7fa;
  color: #58708a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-left: auto;
  cursor: default;
}

.detail-summary-hover-tip {
  position: fixed;
  min-width: 180px;
  max-width: 260px;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgb(18 18 18 / 96%);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: normal;
  text-align: left;
  box-shadow: 0 10px 22px rgb(0 0 0 / 18%);
  z-index: 2500;
  pointer-events: none;
}

.detail-summary-hover-tip.hidden {
  display: none;
}

.detail-summary-help:focus-visible {
  outline: 2px solid rgba(19, 102, 214, 0.25);
  outline-offset: 1px;
}

.detail-summary-value {
  display: block;
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--g-text);
}

.detail-guidance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
  font-size: 12px;
  color: var(--g-text);
}

.detail-guidance-text {
  line-height: 1.2;
}

.detail.panel {
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow: auto;
  overflow-x: hidden;
}

.detail-section {
  margin-bottom: 16px;
}

.detail-section:last-child {
  margin-bottom: 0;
}

.detail-section-overview {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--g-line-light);
}

.detail-section-head {
  margin: 0 0 8px;
}

.detail-section-head h4 {
  margin: 0 0 3px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-muted-dark);
}

.detail-section-copy {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--g-muted);
}

.detail-action-row {
  margin: 10px 0 0;
}

.detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail-close-btn {
  display: none;
  border: 1px solid var(--g-line);
  background: #fff;
  color: var(--g-text);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  min-height: 32px;
  padding: 0 10px;
  cursor: pointer;
}

.mobile-detail-backdrop {
  display: none;
}

.detail-link {
  display: inline-block;
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #121212;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  border-bottom: none;
  padding-bottom: 0;
  transition: color 0.2s ease;
  letter-spacing: 0;
  line-height: 1.1875rem;
}

.detail-link:hover {
  color: #000;
}

.detail-link.detail-link-in {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.detail-link.detail-link-out {
  font-size: 13px;
  font-weight: 600;
  text-decoration-thickness: 1px;
  display: inline-block;
  width: 100%;
  text-align: center;
}


#eventList {
  font-size: 13px;
  line-height: 1.4;
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

#eventList li {
  display: grid;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid var(--g-line-light);
}

#eventList li:last-child {
  border-bottom: none;
}

.event-list-time {
  font-size: 11px;
  color: var(--g-muted-light);
}

.event-list-label {
  font-weight: 600;
  color: var(--g-text);
}

@media (max-width: 980px) {
  .app {
    padding: 14px 0.75rem;
  }

  .panel {
    padding: 14px;
  }

  .collection-hero__title {
    font-size: 1.75rem;
  }

  .collection-hero__description {
    font-size: 1rem;
    line-height: 22px;
  }

  .layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail.panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 12;
    max-height: 86vh;
    margin: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    transform: translateY(102%);
    transition: transform 0.25s ease;
    box-shadow: 0 -8px 24px rgb(0 0 0 / 18%);
    overflow: auto;
  }

  .detail.panel.mobile-sheet-open {
    transform: translateY(0);
  }

  .detail-summary {
    grid-template-columns: 1fr;
  }

  .catalog-name-meta {
    gap: 4px;
  }

  .catalog-name-chip {
    min-height: 16px;
    padding: 0 6px;
    font-size: 9px;
  }

  .detail-section {
    margin-bottom: 12px;
  }

  .detail-section-overview {
    padding-bottom: 12px;
  }

  .detail-section-head {
    margin-bottom: 6px;
  }

  .detail-section-copy {
    font-size: 11px;
    line-height: 1.25;
  }

  .detail-action-row {
    margin-top: 8px;
  }

  #eventList {
    max-height: 200px;
  }

  #eventList li {
    padding: 6px 0;
    gap: 1px;
  }

  .event-list-time {
    font-size: 10px;
  }

  .detail-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-detail-backdrop {
    position: fixed;
    inset: 0;
    z-index: 11;
    display: block;
    background: rgb(0 0 0 / 34%);
  }

  .mobile-detail-backdrop.hidden {
    display: none;
  }

  body.mobile-sheet-open {
    overflow: hidden;
  }

  .filters input[type="search"],
  .filters select,
  .filters > label {
    min-height: 44px;
  }

  .filters-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .filters.is-collapsed > *:not(.filters-title-row) {
    display: none;
  }

  .view-tabs {
    position: sticky;
    top: 0;
    z-index: 4;
    background: #fff;
    padding: 6px 0 8px;
  }

  .mobile-action-bar {
    position: sticky;
    top: 0;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 0 10px;
    background: #fff;
    border-bottom: 1px solid var(--g-line-light);
    margin-bottom: 8px;
  }

  .mobile-action-btn {
    border: 1px solid var(--g-line);
    background: #fff;
    color: var(--g-text);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    min-height: 36px;
    padding: 0 8px;
    cursor: pointer;
  }

  .mobile-action-btn.is-active {
    background: #121212;
    border-color: #121212;
    color: #fff;
  }

  .mobile-action-btn:disabled {
    opacity: 0.45;
    cursor: default;
  }

  .movement-row {
    grid-template-columns: 1fr;
    row-gap: 6px;
    align-items: start;
  }

  .movement-row .status-badge {
    justify-self: start;
  }

  .table-scrollbar {
    display: none;
  }

  #catalogTable th:nth-child(4),
  #catalogTable td:nth-child(4) {
    display: none;
  }

  .collection-hero__collection-block-pill {
    font-size: 12px;
    padding: 6px 12px;
  }

}

.site-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--g-line-light);
}

.footer-copy {
  margin: 0 0 6px;
  font-size: 12px;
  color: var(--g-muted);
}

.footer-copy a {
  color: var(--g-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-policy-link-wrap {
  margin: 0 0 8px;
  font-size: 12px;
}

.footer-policy-link {
  color: var(--g-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-disclaimer {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--g-muted-light);
  max-width: 110ch;
}

.info-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px 32px;
}

.info-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.info-page-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--g-muted);
}

.info-page-header h1 {
  margin: 0;
}

.info-page-header p {
  margin: 10px 0 0;
  color: var(--g-muted);
  max-width: 70ch;
}

.info-page-backlink {
  color: var(--g-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.embedded-policy .info-page-backlink {
  display: none;
}

.info-page .panel {
  margin-bottom: 18px;
}

.info-page .panel h2,
.info-page .panel h3 {
  margin-top: 0;
}

.info-page .panel p,
.info-page .panel li {
  max-width: 90ch;
}

.serial-page {
  max-width: 980px;
}

.serial-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.serial-topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid #d8bea0;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff6ea;
  color: #1a1a1a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.serial-topbar-link:hover {
  background: #f3e4cf;
}

.serial-topbar-link-main {
  margin-top: 6px;
  border-color: #ba6a14;
  background: #c87016;
  color: #fff;
}

.serial-topbar-link-main:hover {
  background: #b76414;
}

.serial-intro-panel {
  margin-bottom: 14px;
}

.serial-intro-panel h1 {
  margin: 0;
}

.serial-intro-panel p {
  margin: 8px 0 0;
  color: var(--g-muted);
}

.top-with-serial-cta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.serial-hero-cta {
  margin-top: 6px;
  border: 1px solid #e0c7a5;
  background: linear-gradient(160deg, #fff7ec 0%, #f8eddf 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.serial-hero-cta h2 {
  margin: 0;
}

.serial-hero-cta p {
  margin: 8px 0 0;
  color: #5f5951;
}

.serial-hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #a85c12;
  border-radius: 999px;
  background: #c87016;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 0 16px;
  white-space: nowrap;
}

.serial-hero-cta-btn:hover {
  background: #b76414;
}

.serial-input-panel {
  background: linear-gradient(160deg, #fff 0%, #f8f4ec 100%);
  border: 1px solid #e8dfd0;
}

.serial-form {
  display: grid;
  gap: 8px;
}

.serial-input-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.serial-input-row input[type="text"] {
  border: 1px solid #d9cec0;
  border-radius: 8px;
  padding: 11px 12px;
  font-family: inherit;
  font-size: 15px;
  color: var(--g-text);
  background: #fffefc;
}

.serial-input-row input[type="text"]:focus {
  outline: 2px solid #121212;
  outline-offset: 1px;
}

.serial-btn {
  border-radius: 8px;
  border: 1px solid #121212;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.serial-btn-primary {
  background: #121212;
  color: #fff;
}

.serial-btn-secondary {
  background: #fff;
  color: #121212;
}

.serial-help {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--g-muted);
}

.serial-error {
  margin: 8px 0 0;
  color: #8f1e1e;
  font-weight: 600;
}

.serial-result {
  background: linear-gradient(180deg, #f5f0e8 0%, #efe6da 100%);
  border: 1px solid #dbc8b0;
  color: #1a1a1a;
}

.serial-result-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #bc6d16;
}

.serial-result-headline {
  margin: 6px 0 8px;
  color: #111;
}

.serial-result-subline {
  margin: 0 0 14px;
  color: #5f5a52;
}

.serial-result-source {
  margin: -8px 0 14px;
  font-size: 12px;
  font-weight: 600;
  color: #7a5942;
}

.serial-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.serial-fact {
  border: 1px solid #e1ccb3;
  border-radius: 10px;
  padding: 10px 12px;
  background: #faf6f1;
}

.serial-fact h3 {
  margin: 0 0 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bc6d16;
}

.serial-fact p {
  margin: 0;
  font-size: 14px;
  color: #1a1a1a;
}

.serial-notes {
  border: 1px solid #e1ccb3;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fcf6ee;
}

.serial-notes h3 {
  margin: 0 0 6px;
  color: #ae6413;
}

.serial-notes-separated {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 2px solid #e4d2bc;
}

.serial-notes ul {
  margin: 0;
  padding-left: 18px;
}

.serial-notes li {
  margin: 0 0 6px;
  color: #2e2e2e;
}

.serial-activity-line {
  margin: 0;
  font-size: 13px;
  color: #3e372f;
  line-height: 1.5;
}

.serial-community-list {
  margin: 18px 0 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 0;
}

.serial-community-empty {
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed #d8bea0;
  border-radius: 10px;
  background: #fcfaf7;
  color: #6b6257;
}

.serial-community-card {
  padding: 14px 16px;
  border: 1px solid #d8bea0;
  border-radius: 0;
  background: #fffdfa;
  box-shadow: 0 1px 2px rgb(18 18 18 / 4%);
}

.serial-community-card + .serial-community-card {
  margin-top: 10px;
}

.serial-community-card-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.serial-community-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #1f1a16;
}

.serial-community-card-meta {
  font-size: 12px;
  color: #6b6257;
}

.serial-community-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px 14px;
}

.serial-community-card-field {
  min-width: 0;
}

.serial-community-card-field-label {
  display: block;
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7a6f62;
}

.serial-community-card-field-value {
  font-size: 13px;
  line-height: 1.45;
  color: #201a15;
}

.serial-community-card-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eee1d2;
}

.serial-community-panel {
  margin-top: 12px;
  background: linear-gradient(180deg, #f8f6f2 0%, #f3efea 100%);
  border: 1px solid #d8cbbd;
}

.serial-community-form {
  display: grid;
  gap: 10px;
}

.serial-community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
}

.serial-community-field {
  min-width: 0;
}

.serial-community-field-full {
  width: 100%;
}

.serial-community-form input[type="text"],
.serial-community-form input[type="number"],
.serial-community-form input[type="search"],
.serial-community-form select {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  border: 1px solid #d8bea0;
  border-radius: 8px;
  padding: 9px 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
}

.serial-community-form select[size] {
  min-height: 150px;
}

.serial-community-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
}

.serial-community-checks label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.serial-community-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.serial-inline-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: #f7ecdd;
  border: 1px solid #e2cfb5;
  border-radius: 6px;
  padding: 1px 6px;
}

.serial-weight-warning {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #8d2419;
}

.serial-disclaimer {
  margin: 12px 0 0;
  font-size: 12px;
  color: #666055;
}

.serial-action-row {
  margin: 16px 0 0;
}

.serial-cta {
  display: inline-block;
  font-weight: 700;
  color: #fff;
  background: #c87016;
  border: 1px solid #a85c12;
  border-radius: 999px;
  padding: 10px 14px;
  text-decoration: none;
}

.serial-cta:hover {
  background: #b76414;
}

@media (max-width: 720px) {
  .info-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .serial-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .serial-topbar-link {
    margin-top: 0;
  }

  .top-with-serial-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .serial-hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .serial-hero-cta-btn {
    width: 100%;
  }

  .serial-input-row {
    grid-template-columns: 1fr;
  }

  .serial-facts-grid {
    grid-template-columns: 1fr;
  }

  .serial-community-grid {
    grid-template-columns: 1fr;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(18 18 18 / 55%);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius-media);
  box-shadow: 0 8px 28px rgb(0 0 0 / 20%);
  padding: 48px 20px 16px;
}

.modal-close {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--g-line);
  border-radius: 999px;
  background: #fff;
  color: var(--g-text);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  padding: 6px 9px;
  cursor: pointer;
  margin: 0;
}

.modal-panel h2 {
  margin-top: 0;
}

.modal-panel h3 {
  margin-bottom: 6px;
}

.policy-modal-panel {
  width: min(1120px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.policy-modal-frame {
  width: 100%;
  min-height: 70vh;
  border: 1px solid var(--g-line-light);
  border-radius: 8px;
  background: #fff;
}

.modal-panel p,
.modal-panel li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--g-text);
}

.availability-modal-panel {
  width: min(1100px, calc(100vw - 24px));
}

.availability-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  margin: 6px 0 10px;
}

.availability-control-group {
  display: grid;
  gap: 6px;
}

.availability-control-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--g-muted);
}

.availability-pill-row {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.availability-pill {
  border: 1px solid var(--g-line);
  border-radius: 999px;
  background: #fff;
  color: var(--g-text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  line-height: 1.1;
  cursor: pointer;
}

.availability-pill.is-active {
  background: #121212;
  border-color: #121212;
  color: #fff;
}

.availability-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--g-text);
}

#availabilityExplorerChart {
  margin-top: 4px;
  border: 1px solid var(--g-line);
  border-radius: var(--g-radius-media);
  width: 100%;
  display: block;
  box-sizing: border-box;
  background: #fff;
}

.availability-summary {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--g-muted);
}

@media (max-width: 980px) {
  .availability-modal-panel {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
    border: none;
    padding: 14px 14px 12px;
  }
}
