* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 360px;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #fbf7f1;
  color: #2a2420;
}

.st-popup {
  display: flex;
  flex-direction: column;
}

.st-popup__header {
  padding: 16px 16px 12px;
  background: #241f1c;
  color: #fbf7f1;
}

.st-popup__header h1 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.01em;
}

.st-popup__tagline {
  margin: 4px 0 0;
  font-size: 12px;
  color: #c9bfb3;
}

.st-popup__section {
  padding: 14px 16px;
  border-bottom: 1px solid #e8ddce;
}

.st-popup__section:last-child {
  border-bottom: none;
}

.st-popup__section h2 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7a6f60;
}

.st-popup__section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.st-popup__count {
  font-size: 11px;
  color: #9a8e7c;
}

.st-popup__loading,
.st-popup__empty {
  margin: 0;
  font-size: 13px;
  color: #847a6b;
}

.st-page-card {
  border: 1px solid #e8ddce;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}

.st-page-card__url {
  display: block;
  font-size: 11px;
  color: #9a8e7c;
  margin-bottom: 6px;
  word-break: break-all;
}

.st-flag {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #f0e8dc;
}

.st-flag:first-child {
  border-top: none;
  padding-top: 0;
}

.st-flag__icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #c6433f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.st-flag__body {
  font-size: 12.5px;
  line-height: 1.4;
}

.st-flag__category {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c6433f;
  margin-bottom: 2px;
}

.st-log {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
}

.st-log li {
  display: flex;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #f0e8dc;
  font-size: 12px;
}

.st-log li:first-child {
  border-top: none;
}

.st-log__site {
  flex: 0 0 auto;
  font-weight: 600;
  color: #4a4136;
}

.st-log__detail {
  color: #6c6153;
}

.st-popup__upgrade {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: #8a6a2f;
  background: #fbefd9;
  border: 1px solid #ecd9a8;
  border-radius: 6px;
  padding: 8px 10px;
}
