a {
  text-decoration: none;
}

.embed-container {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 400px;
}

.embed-container.compact {
  position: relative;
  box-sizing: border-box;
  min-height: 112px;
  padding: 10px 12px;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgb(27 39 60 / 6%);
}

.compact.header-icon {
  min-height: 96px;
}

.compact.header-hidden {
  min-height: 80px;
}

.extension-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
}

.stats-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 20px;
}

.stats-list dt {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #333;
}

.stats-list dd {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 600;
}

.chart-container {
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  gap: 4px;
}

.chart-panel {
  min-width: 0;
}

.chart-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  padding-left: 5px;
}

.chart-canvas {
  height: 70px;
}

.single-chart .chart-canvas {
  height: 190px;
}

.name-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.name-container.icon-only {
  width: fit-content;
}

.compact .name-container {
  padding-right: 26px;
}

.compact h1 {
  font-size: 14px;
  line-height: 1.3;
  -webkit-line-clamp: 1;
}

h1 {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.last-update {
  color: #fff;
  background-color: #888;
}

.recently-updated {
  background-color: #ff6900;
}

.d-inline-flex {
  display: inline-flex;
}

.align-items-center {
  align-items: center;
}

.gap-1 {
  gap: 0.25rem;
}

.rounded-pill {
  border-radius: 50rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.ms-1 {
  margin-left: 0.25rem;
}

.fw-bold {
  font-weight: 700;
}

.caption {
  color: #444;
  font-size: 0.75rem;
}

.position-relative {
  position: relative;
}

.d-inline-block {
  display: inline-block;
}

.position-absolute {
  position: absolute;
}

.end-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.text-white {
  color: white !important;
}

.alert-danger {
  margin: 0.5rem 0;
  background-color: #f8d7da;
  color: #58151c;
  border-radius: 0.375rem;
  padding: 0.5rem;
  font-weight: 700;
}

.footer {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: end;
  position: relative;
  width: fit-content;
  margin-left: auto;
  padding: 4px;
  border-radius: 5px;
}

.footer img {
  display: block;
}

.footer span {
  position: absolute;
  right: 0;
  bottom: calc(100% + 4px);
  padding: 5px 7px;
  border-radius: 5px;
  background: #222b3b;
  color: #fff;
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: opacity 120ms ease;
}

.footer:hover span,
.footer:focus-visible span,
.footer.without-logo span {
  visibility: visible;
  opacity: 1;
}

.footer.without-logo span {
  position: static;
  background: transparent;
  color: inherit;
}

.compact .footer {
  position: absolute;
  bottom: 8px;
  right: 10px;
  margin: 0;
}

.rating-score {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.rating-score strong {
  font-size: 32px;
}

.rating-count {
  color: #555;
  font-size: 14px;
}

.compact .rating-score {
  margin: 11px 0 0;
}

.compact .rating-score strong {
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rating-detail {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.compact .rating-count {
  font-size: 12px;
}

.review-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.review-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 12px;
}

.review-card p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.empty-state {
  color: #555;
  margin: 20px 0;
}

.dark {
  background-color: #282828;
  color: white;
}

.dark h1,
.dark .stats-list dt {
  color: #bbb;
}

.dark a {
  color: #9fc2ff;
}

.dark .caption {
  color: #444;
}

.dark .rating-count,
.dark .empty-state {
  color: #bbb;
}

.dark .review-card {
  border-color: #555;
}

.dark .embed-container.compact {
  background: #282828;
  border-color: #4c5563;
  box-shadow: none;
}
