.seat-ratings { margin-block: 0 18px; }
.seat-ratings-heading, .seat-rating-dialog-heading, .seat-rating-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.seat-ratings-heading h3 { margin: 0 0 3px; }
.seat-performance-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-block: 12px 8px;
}
.seat-performance-period {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--sub);
  font-size: 12px;
  white-space: nowrap;
}
.seat-performance-period select { min-width: 112px; padding-block: 6px; }
.seat-ratings-status { min-height: 1.3em; margin: 4px 0 8px; }
.seat-performance-scroll { border-radius: 8px; }
.seat-ratings .seat-performance-table { min-width: 900px; }
.seat-performance-table :is(th, td) { font-variant-numeric: tabular-nums; }
.seat-performance-table th { white-space: nowrap; }
.seat-performance-table td { vertical-align: top; }
.seat-performance-table .main-cell { min-width: 126px; overflow-wrap: anywhere; }
.seat-performance-cell { min-width: 92px; }
.seat-performance-value { display: block; color: var(--text); font-weight: 650; white-space: nowrap; }
.seat-performance-context, .seat-performance-table th small { display: block; color: var(--sub); font-size: 11px; font-weight: 400; }
.seat-performance-context { margin-top: 2px; }
.seat-performance-volume .seat-performance-value { color: var(--brand-d); }
.seat-performance-missing .seat-performance-value { color: var(--sub); font-weight: 400; }
.seat-performance-manual { background: var(--panel-2); }
.seat-performance-coverage { margin: 10px 0 0; }
.seat-performance-method { margin-top: 8px; color: var(--sub); font-size: 12px; }
.seat-performance-method summary { cursor: pointer; width: fit-content; color: var(--text2); }
.seat-performance-method p { margin: 5px 0 0; line-height: 1.65; }
.seat-rating-average { font-weight: 650; }
.seat-rating-inactive { margin-inline-start: 6px; vertical-align: middle; }

.seat-ratings-dialog { width: min(560px, calc(100% - 26px)); }
.seat-rating-dialog-heading { align-items: flex-start; }
.seat-rating-dialog-heading h2 { margin-block: 2px 12px; overflow-wrap: anywhere; }
.seat-ratings-dialog [hidden] { display: none !important; }
.seat-ratings-dialog fieldset { margin: 0; border: 0; }
.seat-ratings-dialog fieldset > legend { margin-bottom: 8px; font-weight: 650; }
.seat-score-choices { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.seat-score-choices label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 37px;
  padding-inline: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.seat-score-choices label:has(input:checked) { background: var(--brand-tint); border-color: var(--brand); }
.seat-score-choices input { accent-color: var(--brand); margin: 0; }
.seat-rating-comment { margin-top: 12px; }
.seat-rating-comment textarea { resize: vertical; min-height: 70px; }
.seat-rating-result { min-height: 1.35em; margin-block: 8px 0; }
.seat-rating-error { color: #9e2940; }
.seat-rating-history { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.seat-rating-history h3 { font-size: 14px; margin-bottom: 8px; }
.seat-rating-history-list { padding: 0; margin: 0; list-style: none; }
.seat-rating-history-item { padding-block: 9px; border-bottom: 1px solid var(--line2); }
.seat-rating-history-header { justify-content: flex-start; flex-wrap: wrap; }
.seat-rating-pill { padding: 4px 8px; border-radius: 6px; color: var(--brand-d); background: var(--brand-soft); }
.seat-rating-history-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; color: var(--sub); font-size: 12px; }
.seat-rating-remark { padding-top: 6px; white-space: pre-wrap; overflow-wrap: anywhere; }
.seat-rating-more { margin-top: 8px; }
