.tsgdw,
.tsgdw * {
  box-sizing: border-box;
}

.tsgdw {
  --tsgdw-accent: #F7661C;
  --tsgdw-text: #202630;
  --tsgdw-muted: #747c87;
  --tsgdw-section-bg: #ffffff;
  --tsgdw-card-bg: #ffffff;
  --tsgdw-border: #e5e8ec;
  --tsgdw-icon-bg: #c7c9cd;
  --tsgdw-icon-color: #ffffff;
  --tsgdw-name-size: 13px;
  --tsgdw-amount-size: 11px;
  --tsgdw-icon-size: 34px;
  --tsgdw-card-radius: 10px;
  --tsgdw-gap: 10px;
  --tsgdw-current-cols: 2;

  width: 100%;
  max-width: 1160px;
  margin: 18px auto;
  padding: 0;
  color: var(--tsgdw-text);
  background: var(--tsgdw-section-bg);
  font-family: "Poppins", Arial, sans-serif;
}

.tsgdw__header {
  max-width: 680px;
  margin: 0 auto 18px;
  text-align: center;
}

.tsgdw__eyebrow {
  margin: 0 0 6px;
  color: var(--tsgdw-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.55px;
  text-transform: uppercase;
}

.tsgdw__title {
  margin: 0;
  color: var(--tsgdw-text);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.45px;
}

.tsgdw__description {
  margin: 9px auto 0;
  color: var(--tsgdw-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.58;
}

.tsgdw__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(310px, 100%);
  margin: 0 auto 18px;
  padding: 4px;
  border: 0 !important;
  border-radius: 9px;
  background: #f4f5f7;
}

.tsgdw__tab {
  appearance: none;
  -webkit-appearance: none;
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 0 !important;
  border-radius: 7px;
  outline: 0;
  background: transparent !important;
  color: #4f5762 !important;
  box-shadow: none !important;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.18s ease, color 0.18s ease;
}

.tsgdw__tab:hover,
.tsgdw__tab:focus,
.tsgdw__tab:focus-visible,
.tsgdw__tab:active {
  background: transparent !important;
  color: var(--tsgdw-accent) !important;
  box-shadow: none !important;
  transform: none !important;
}

.tsgdw__tab:focus-visible {
  outline: 2px solid var(--tsgdw-accent);
  outline-offset: 2px;
}

.tsgdw__tab.is-active,
.tsgdw__tab.is-active:hover,
.tsgdw__tab.is-active:focus,
.tsgdw__tab.is-active:focus-visible,
.tsgdw__tab.is-active:active {
  background: var(--tsgdw-accent) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

.tsgdw--no-tabs .tsgdw__tabs {
  display: none;
}

.tsgdw__panel[hidden] {
  display: none !important;
}

.tsgdw__grid {
  display: grid;
  grid-template-columns: repeat(var(--tsgdw-current-cols), minmax(0, 1fr));
  gap: var(--tsgdw-gap);
}

.tsgdw__card {
  min-width: 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--tsgdw-border);
  border-radius: var(--tsgdw-card-radius);
  background: var(--tsgdw-card-bg);
  box-shadow: none;
}

.tsgdw--no-card-border .tsgdw__card {
  border-color: transparent;
}

.tsgdw__avatar {
  flex: 0 0 var(--tsgdw-icon-size);
  width: var(--tsgdw-icon-size);
  height: var(--tsgdw-icon-size);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--tsgdw-icon-bg);
  color: var(--tsgdw-icon-color);
}

.tsgdw__avatar svg {
  width: 72%;
  height: 72%;
  display: block;
  fill: currentColor;
}

.tsgdw--no-avatar .tsgdw__avatar {
  display: none;
}

.tsgdw__card-content {
  min-width: 0;
  flex: 1 1 auto;
}

.tsgdw__card-name {
  margin: 0 0 4px;
  color: var(--tsgdw-text);
  font-size: var(--tsgdw-name-size);
  font-weight: 500;
  line-height: 1.22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsgdw__card-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  line-height: 1.18;
}

.tsgdw__card-label {
  color: var(--tsgdw-muted);
  font-size: calc(var(--tsgdw-amount-size) - 1px);
  font-weight: 500;
  white-space: nowrap;
}

.tsgdw__card-amount {
  min-width: 0;
  color: var(--tsgdw-accent);
  font-size: var(--tsgdw-amount-size);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsgdw__empty,
.tsgdw__message,
.tsgdw-message {
  margin: 10px 0 0;
  padding: 11px 12px;
  border: 1px solid var(--tsgdw-border, #e5e8ec);
  border-radius: 8px;
  background: #fafbfc;
  color: var(--tsgdw-muted, #747c87);
  font-size: 13px;
  line-height: 1.5;
}

.tsgdw__source {
  display: none !important;
}

@media (max-width: 767px) {
  .tsgdw {
    margin: 12px auto;
  }

  .tsgdw__header {
    margin-bottom: 15px;
    padding: 0 6px;
  }

  .tsgdw__eyebrow {
    font-size: 11px;
  }

  .tsgdw__title {
    font-size: 25px;
  }

  .tsgdw__description {
    margin-top: 7px;
    font-size: 13px;
    line-height: 1.52;
  }

  .tsgdw__tabs {
    width: min(290px, 100%);
    margin-bottom: 14px;
  }

  .tsgdw__tab {
    min-height: 36px;
    padding: 0 8px;
    font-size: 10px;
  }

  .tsgdw__card {
    min-height: 58px;
    gap: 8px;
    padding: 9px 10px;
  }

  .tsgdw__avatar {
    flex-basis: calc(var(--tsgdw-icon-size) - 4px);
    width: calc(var(--tsgdw-icon-size) - 4px);
    height: calc(var(--tsgdw-icon-size) - 4px);
  }

  .tsgdw__card-name {
    font-size: max(11px, calc(var(--tsgdw-name-size) - 1px));
    margin-bottom: 3px;
  }

  .tsgdw__card-label {
    font-size: max(9px, calc(var(--tsgdw-amount-size) - 2px));
  }

  .tsgdw__card-amount {
    font-size: max(10px, calc(var(--tsgdw-amount-size) - 1px));
  }
}

@media (max-width: 390px) {
  .tsgdw__grid {
    gap: max(6px, calc(var(--tsgdw-gap) - 3px));
  }

  .tsgdw__card {
    min-height: 56px;
    gap: 7px;
    padding: 8px;
  }

  .tsgdw__card-name {
    font-size: 11px;
  }

  .tsgdw__card-label {
    font-size: 9px;
  }

  .tsgdw__card-amount {
    font-size: 10px;
  }
}
