:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #303030;
  background: #f1f1f1;
  font-size: 16px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
#main {
  max-width: 1480px;
  margin-inline: auto;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}
.startup {
  padding: 40px 24px;
  text-align: center;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px;
  background: #303030;
  color: white;
  border-radius: 8px;
}
.skip-link:focus {
  top: 12px;
}
/* Actual block wrappers own the spacing: Polaris hosts can use display:contents. */
.page-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.layout-block {
  display: block;
  min-width: 0;
  max-width: 100%;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.heading-copy {
  min-width: 0;
}
.heading-copy h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 6px;
  font-weight: 650;
}
.page-actions,
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.page-actions {
  flex-shrink: 0;
}
.overview {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(260px, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.overview-status,
.schedule,
.stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.overview-counts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  border-inline: 1px solid #e5e5e5;
  padding-inline: 24px;
}
.overview-counts > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.overview-counts strong {
  font-size: 24px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.overview-counts span {
  font-size: 13px;
  color: #616161;
}
.schedule strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
#shop-name {
  overflow-wrap: anywhere;
}
.collection-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 16px;
  padding: 20px 20px 12px;
}
#search-input,
#collection-filter,
#page-size,
#run-filter {
  display: block;
  min-width: 0;
}
.list-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px 16px;
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 40px 24px;
}
.empty-state s-paragraph {
  max-width: 520px;
}
.inline-banner {
  margin: 16px 20px;
}
.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}
.pagination-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
#page-size {
  width: 155px;
}
.page-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}
.collection-name {
  min-width: 150px;
  max-width: 360px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.cell-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding-block: 5px;
  min-width: 0;
}
.cell-error {
  max-width: 280px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.row-action {
  max-width: 200px;
}
.history-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
#run-filter {
  width: 240px;
}
details {
  min-width: 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 4px 0;
}
summary:focus-visible {
  outline: 2px solid #005bd3;
  outline-offset: 5px;
  border-radius: 3px;
}
.summary-hint {
  font-size: 13px;
  font-weight: 400;
  color: #616161;
  margin-left: 16px;
}
.details-content {
  padding-top: 20px;
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
#connect-form {
  margin: 8px 0;
}
#collection-table,
#runs-table {
  display: block;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 1150px) {
  .overview {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  }
  .overview-counts {
    border-right: 0;
    padding-right: 0;
  }
  .schedule {
    grid-column: 1/-1;
    flex-direction: row;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 12px;
  }
  .collection-name {
    max-width: 260px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .page-flow {
    gap: 20px;
  }
  .overview {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .overview-counts {
    border-inline: 0;
    border-top: 1px solid #eee;
    padding: 16px 0 0;
    gap: 16px;
  }
  .schedule {
    grid-column: auto;
  }
  .collection-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }
  .list-context {
    padding: 0 16px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .collection-name {
    max-width: 100%;
    min-width: 0;
  }
  .cell-error {
    max-width: 100%;
  }
  .table-footer {
    padding: 16px;
  }
  .history-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .rules-grid {
    grid-template-columns: 1fr;
  }
  .page-actions {
    width: 100%;
  }
  .heading-copy h1 {
    font-size: 20px;
  }
  #run-filter {
    width: 100%;
  }
  .summary-hint {
    display: block;
    margin-left: 20px;
  }
  .pagination-meta {
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }
  .page-navigation {
    margin-left: auto;
  }
}
@media (max-width: 420px) {
  .overview-counts span {
    font-size: 12px;
  }
  .overview-counts {
    gap: 12px;
  }
  .schedule {
    align-items: flex-start;
  }
  .schedule .inline {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
  }
  .page-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .page-actions s-button {
    width: 100%;
  }
  .table-footer {
    gap: 12px;
  }
  .page-navigation {
    width: 100%;
    justify-content: space-between;
  }
  .footer {
    flex-wrap: wrap;
  }
}
