* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #faf7f1;
  color: #2b2620;
}

.shrinkwatch-popup {
  width: 360px;
  padding: 16px;
}

.shrinkwatch-popup__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.shrinkwatch-popup__mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1f6f4a, #e2793a);
}

.shrinkwatch-popup__header h1 {
  margin: 0;
  font-size: 17px;
}

.shrinkwatch-popup__tagline {
  margin: 2px 0 0;
  font-size: 12px;
  color: #6b6459;
}

.shrinkwatch-popup__section {
  background: #ffffff;
  border: 1px solid #ece5d8;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.shrinkwatch-popup__section h2 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8275;
}

.shrinkwatch-popup__section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.shrinkwatch-popup__count {
  font-size: 11px;
  color: #8a8275;
}

.shrinkwatch-popup__loading {
  font-size: 13px;
  color: #8a8275;
}

.shrinkwatch-page-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shrinkwatch-page-card__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.shrinkwatch-page-card__unit {
  font-size: 20px;
  font-weight: 700;
  color: #1f6f4a;
}

.shrinkwatch-page-card__note {
  font-size: 12px;
  color: #6b6459;
}

.shrinkwatch-page-card--warn .shrinkwatch-page-card__unit {
  color: #b0431c;
}

.shrinkwatch-page-card--warn .shrinkwatch-page-card__note {
  color: #b0431c;
  font-weight: 600;
}

.shrinkwatch-popup__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.shrinkwatch-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid #f1ece1;
}

.shrinkwatch-item:last-child {
  border-bottom: none;
}

.shrinkwatch-item__name {
  font-size: 12px;
  line-height: 1.3;
  flex: 1;
}

.shrinkwatch-item__unit {
  font-size: 12px;
  font-weight: 600;
  color: #4a453c;
  white-space: nowrap;
}

.shrinkwatch-item__flag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: #fdeeee;
  color: #b0431c;
}

.shrinkwatch-popup__upgrade {
  margin: 10px 0 0;
  padding: 8px;
  border-radius: 6px;
  background: #fdf3e7;
  color: #8a4a12;
  font-size: 11px;
  line-height: 1.4;
}

.shrinkwatch-popup__empty {
  font-size: 12px;
  color: #8a8275;
}
