.live-document {
  --live-accent: var(--reels);
  --live-accent-soft: var(--accent-soft);
  min-width: 0;
}

.live-snapshot-history {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 2px 0 16px;
  padding-block: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.live-snapshot-property {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.live-snapshot-property > span {
  flex: none;
  color: var(--ink);
  font-weight: 650;
}

.live-snapshot-property time {
  font-variant-numeric: tabular-nums;
}

.live-snapshot-property select {
  min-width: 0;
  text-overflow: ellipsis;
}

.live-snapshot-property select[aria-busy="true"] {
  cursor: progress;
}

.live-snapshot-context {
  margin: 0;
}

.live-snapshot-context strong {
  margin-inline-end: 5px;
  color: var(--ink);
  font-weight: 620;
}

.live-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 32px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel, 8px);
  overflow: hidden;
}

.live-overview-property {
  min-width: 0;
  padding: 13px 17px 14px;
}

.live-overview-property + .live-overview-property {
  border-inline-start: 1px solid var(--line);
}

.live-overview-property dt {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 17px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.live-overview-property dt .icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--live-accent);
}

.live-overview-property dd {
  max-width: 100%;
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(17px, 2.4vw, 29px);
  font-weight: 690;
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.live-overview-property .live-overview-hint {
  margin-top: 5px;
  color: var(--quiet);
  font-size: 10px;
  font-weight: 570;
  letter-spacing: 0;
}

.live-database {
  min-width: 0;
}

.live-database-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  margin-bottom: 11px;
}

.live-database-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.live-database-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font, Georgia, serif);
  font-size: clamp(19px, 2.2vw, 24px);
  font-weight: 630;
  line-height: 1.18;
}

.live-database-count {
  flex: none;
  color: var(--live-accent);
  font-size: 11px;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}

.live-database-header p {
  margin-block: 3px 0;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.4;
}

.live-database-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  flex: none;
  max-width: 100%;
}

.live-database-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: clamp(115px, 13vw, 172px);
  min-width: 0;
  min-height: 32px;
  padding-inline: 8px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}

.live-database-search:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.live-database-search .icon {
  flex: none;
  width: 14px;
  height: 14px;
}

.live-database-search input {
  width: 100%;
  min-width: 0;
  padding-block: 3px;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  background: transparent;
  border: none;
  outline: none;
}

.live-database-search input:focus-visible {
  outline: none;
}

.live-database-search input::placeholder {
  color: var(--quiet);
}

.live-database-sort select {
  min-height: 32px;
}

.live-database-table {
  border-block: 1px solid var(--line);
  scrollbar-color: var(--strong-line) transparent;
}

.live-database-table table {
  border-collapse: separate;
  border-spacing: 0;
}

.live-database-table :is(th, td) {
  padding-inline: 12px;
}

.live-database-table th {
  min-height: 32px;
  color: var(--muted);
  background: var(--soft);
  white-space: nowrap;
}

.live-database-table td {
  padding-block: 6px;
}

.live-database-table tr:last-child td {
  border-bottom: 0;
}

.live-database-table tr[hidden] {
  display: none;
}

.live-database-table th:first-child,
.live-database-table .live-database-title-cell {
  position: sticky;
  inset-inline-start: 0;
  z-index: 1;
  width: var(--live-title-width, 44%);
  min-width: 193px;
  max-width: 440px;
  border-inline-end: 1px solid var(--line);
  background: var(--surface);
}

.live-database-table th:first-child {
  background: var(--soft);
}

.live-database-table tr:is(:hover, :focus-within) td.live-database-title-cell {
  background: var(--row-hover);
}

.live-database-table .table-item {
  padding: 1px 0;
}

.live-database-table .platform-icon {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--live-accent);
  background: var(--live-accent-soft);
}

.live-database-title-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.live-database-title-copy .item-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.live-database-arrow {
  flex: none;
  display: flex;
  align-items: center;
  color: var(--live-accent);
}

.live-database-arrow .icon {
  width: 13px;
  height: 13px;
}

.live-counter {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-counter-missing {
  color: var(--quiet);
  font-weight: 420;
}

.live-reels-delta {
  display: block;
  margin-top: 2px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.live-reels-delta.up {
  color: var(--positive);
}

.live-reels-delta.down {
  color: var(--accent-dark);
}

.live-database-empty {
  margin: 0;
  padding-inline: 0;
  font-size: 13px;
}

.live-database-empty[hidden] {
  display: none;
}

.live-database-footnote {
  margin-block: 9px 0;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1.45;
}

.live-detail-properties {
  margin: 0;
  border-block-start: 1px solid var(--line);
}

.live-detail-properties > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: baseline;
  gap: 16px;
  min-height: 34px;
  padding-block: 8px;
  border-block-end: 1px solid var(--line);
}

.live-detail-properties dt {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.live-detail-properties dd {
  margin: 0;
  text-align: end;
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 860px) {
  .live-database-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-database-search {
    width: clamp(145px, 25vw, 205px);
  }
}

@media (max-width: 720px) {
  .live-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 24px;
  }

  .live-overview-property {
    padding: 10px 12px 12px;
  }

  .live-overview-property:nth-child(odd) {
    border-inline-start: 0;
  }

  .live-overview-property:nth-child(n + 3) {
    border-block-start: 1px solid var(--line);
  }

  .live-overview-property dd {
    font-size: 22px;
  }

  .live-database-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .live-database-search,
  .live-database-sort select {
    width: 100%;
    min-height: 44px;
  }

  .live-database-search input {
    padding-block: 6px;
    font-size: 16px;
  }

  .live-database-table :is(th, td) {
    padding-inline: 8px;
  }

  .live-database-table th:first-child,
  .live-database-table .live-database-title-cell {
    width: min(145px, 42vw);
    min-width: min(145px, 42vw);
    max-width: min(184px, 46vw);
  }

  .live-database-table .platform-icon {
    width: 20px;
    height: 20px;
  }

  .live-database-arrow {
    display: none;
  }
}
