.tsc-dti-box,
.tsc-dti-card {
  --tsc-dti-ink: #080a3d;
  --tsc-dti-muted: #68708f;
  --tsc-dti-border: #e7ddf3;
  --tsc-dti-soft: #fbf8ff;
  --tsc-dti-pink: #e33181;
  --tsc-dti-purple: #8b3ac7;
  --tsc-dti-green: #4d9a38;
  --tsc-dti-orange: #f08a24;
  color: var(--tsc-dti-ink);
  font-family: inherit;
}

.tsc-dti-box {
  width: 100%;
  text-align: center;
  padding: 26px 20px 24px;
  background: #fff;
}

.tsc-dti-download-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.tsc-dti-notice {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--tsc-dti-ink);
}

.tsc-dti-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: min(252px, 100%);
  min-height: 34px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #e33181 0%, #e33181 45%, #dc2b79 100%);
  color: #fff !important;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(227, 49, 129, 0.20);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.tsc-dti-download-button:hover,
.tsc-dti-download-button:focus {
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(227, 49, 129, 0.26);
  filter: brightness(1.02);
}

.tsc-dti-divider {
  width: min(820px, 100%);
  height: 1px;
  margin: 28px auto 18px;
  background: var(--tsc-dti-border);
}

.tsc-dti-feedback-heading h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--tsc-dti-ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.tsc-dti-feedback-heading h3 i {
  color: var(--tsc-dti-purple);
}

.tsc-dti-feedback-heading p {
  margin: 0 0 16px;
  color: var(--tsc-dti-muted);
  font-size: 15px;
  line-height: 1.45;
}

.tsc-dti-download-button.is-tsc-hosted-download {
  background: linear-gradient(90deg, #33b154 0%, #008bcd 100%);
  box-shadow: 0 10px 22px rgba(0, 139, 205, 0.18);
}

.tsc-dti-download-button.is-tsc-hosted-download:hover,
.tsc-dti-download-button.is-tsc-hosted-download:focus {
  box-shadow: 0 13px 26px rgba(0, 139, 205, 0.24);
}

.tsc-dti-feedback-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: min(700px, 100%);
  margin: 0 auto;
}

.tsc-dti-feedback-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 126px;
  min-height: 31px;
  padding: 8px 15px;
  border: 1px solid var(--tsc-dti-border);
  border-radius: 999px;
  background: #fbfbfb;
  color: var(--tsc-dti-ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.tsc-dti-feedback-didnt_work {
  min-width: 161px;
}

.tsc-dti-feedback-button:hover,
.tsc-dti-feedback-button:focus {
  transform: translateY(-1px);
  border-color: #d9c6ed;
  box-shadow: 0 10px 24px rgba(8, 10, 61, 0.08);
}

.tsc-dti-feedback-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.tsc-dti-feedback-broken_link i {
  color: #ff0000;
}

.tsc-dti-feedback-didnt_work i {
  color: var(--tsc-dti-orange);
}

.tsc-dti-feedback-works_for_me i {
  color: var(--tsc-dti-green);
}

.tsc-dti-feedback-button.is-active {
  background: var(--tsc-dti-soft);
  border-color: #cbb6e7;
  box-shadow: inset 0 0 0 1px rgba(139, 58, 199, 0.08);
}

.tsc-dti-feedback-works_for_me.is-active {
  background: #f4fff0;
  border-color: #b9dea9;
}

.tsc-dti-feedback-didnt_work.is-active {
  background: #fff7ed;
  border-color: #ffd2a1;
}

.tsc-dti-feedback-broken_link.is-active {
  background: #fbf5ff;
  border-color: #d8b4f0;
}

.tsc-dti-feedback-status {
  min-height: 20px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}

.tsc-dti-feedback-status.is-success {
  color: var(--tsc-dti-green);
}

.tsc-dti-feedback-status.is-error {
  color: #c83030;
}

.tsc-dti-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--tsc-dti-border);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(8, 10, 61, 0.06);
  padding: 24px;
}

.tsc-dti-section-header {
  margin-bottom: 22px;
}

.tsc-dti-section-header h2 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  color: var(--tsc-dti-ink);
  font-weight: 850;
}

.tsc-dti-section-header p,
.tsc-dti-empty-state {
  margin: 0;
  color: var(--tsc-dti-muted);
  font-size: 15px;
  line-height: 1.5;
}

.tsc-dti-download-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tsc-dti-download-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 122px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--tsc-dti-border);
  border-radius: 18px;
  background: #fff;
}

.tsc-dti-download-thumb {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--tsc-dti-soft);
  text-decoration: none;
}

.tsc-dti-download-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tsc-dti-download-thumb span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tsc-dti-purple);
  font-size: 22px;
}

.tsc-dti-download-main {
  min-width: 0;
}

.tsc-dti-download-title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tsc-dti-ink);
  font-size: 16px;
  font-weight: 850;
  text-decoration: none;
}

.tsc-dti-download-title:hover {
  color: var(--tsc-dti-pink);
}

.tsc-dti-download-meta {
  margin-top: 4px;
  color: var(--tsc-dti-muted);
  font-size: 13px;
}

.tsc-dti-small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--tsc-dti-pink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
}

.tsc-dti-feedback-compact {
  margin-top: 12px;
}

.tsc-dti-feedback-compact .tsc-dti-feedback-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.tsc-dti-feedback-compact .tsc-dti-feedback-button {
  min-height: 31px;
  padding: 7px 10px;
  font-size: 12px;
  gap: 6px;
}

.tsc-dti-feedback-compact .tsc-dti-feedback-status {
  margin-top: 8px;
  font-size: 13px;
}

.tsc-dti-report-table-wrap {
  overflow-x: auto;
}

.tsc-dti-report-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.tsc-dti-report-table th,
.tsc-dti-report-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--tsc-dti-border);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

.tsc-dti-report-table thead {
  display: table-header-group !important;
}

.tsc-dti-report-table th {
  display: table-cell !important;
  color: var(--tsc-dti-ink);
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tsc-dti-report-title a {
  display: block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tsc-dti-ink);
  font-weight: 850;
  text-decoration: none;
}

.tsc-dti-report-title span {
  display: block;
  margin-top: 3px;
  color: var(--tsc-dti-muted);
  font-size: 12px;
}

.tsc-dti-count-bad {
  color: #c83030;
  font-weight: 850;
}

.tsc-dti-count-warning {
  color: #bf6d10;
  font-weight: 850;
}

.tsc-dti-count-good {
  color: var(--tsc-dti-green);
  font-weight: 850;
}

.tsc-dti-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.tsc-dti-status-pill.is-bad {
  color: #9f2424;
  background: #fff0f0;
}

.tsc-dti-status-pill.is-warning {
  color: #8f4f0c;
  background: #fff7e8;
}

.tsc-dti-status-pill.is-good {
  color: #2f7c20;
  background: #f0ffe9;
}

.tsc-dti-status-pill.is-neutral {
  color: var(--tsc-dti-muted);
  background: var(--tsc-dti-soft);
}

.tsc-dti-report-actions {
  text-align: right;
  white-space: nowrap;
}

.tsc-dti-check-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 7px 13px;
  border: 1px solid var(--tsc-dti-border);
  border-radius: 999px;
  background: #fbfbfb;
  color: var(--tsc-dti-purple) !important;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none !important;
}

.tsc-dti-check-link-button:hover,
.tsc-dti-check-link-button:focus {
  border-color: #d9c6ed;
  color: var(--tsc-dti-ink) !important;
  box-shadow: 0 8px 18px rgba(8, 10, 61, 0.07);
}

.tsc-dti-no-link {
  color: var(--tsc-dti-muted);
  font-size: 12px;
  font-weight: 700;
}

.tsc-dti-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 800;
}

.tsc-dti-pagination a,
.tsc-dti-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 13px;
  border: 1px solid var(--tsc-dti-border);
  border-radius: 999px;
  background: #fbfbfb;
  color: var(--tsc-dti-ink);
  text-decoration: none !important;
}

.tsc-dti-pagination a:hover,
.tsc-dti-pagination a:focus {
  border-color: #d9c6ed;
  color: var(--tsc-dti-purple);
}

.tsc-dti-pagination .tsc-dti-pagination-current {
  background: #fff;
  color: var(--tsc-dti-muted);
  font-weight: 750;
}

.tsc-dti-pagination .is-disabled {
  opacity: 0.45;
}

@media (max-width: 820px) {
  .tsc-dti-box {
    padding: 26px 16px 24px;
  }

  .tsc-dti-feedback-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .tsc-dti-feedback-button,
  .tsc-dti-feedback-didnt_work {
    width: 100%;
    min-width: 0;
  }

  .tsc-dti-download-button {
    min-width: 100%;
    min-height: 38px;
    font-size: 14px;
  }

  .tsc-dti-download-row {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 86px;
    padding: 5px;
  }

  .tsc-dti-download-thumb {
    width: 76px;
    height: 76px;
  }

  .tsc-dti-download-actions {
    grid-column: 1 / -1;
  }

  .tsc-dti-small-button {
    width: 100%;
  }
}

/* v1.0.4 user reports + download history refinements */
.tsc-dti-download-row {
  grid-template-columns: minmax(150px, 170px) minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 170px;
  padding: 5px 14px 5px 5px;
}

.tsc-dti-download-thumb {
  width: 100%;
  height: 100%;
  min-height: 160px;
}

.tsc-dti-download-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 8px 0;
}

.tsc-dti-download-creator,
.tsc-dti-download-category-path {
  margin-top: 4px;
  color: var(--tsc-dti-muted);
  font-size: 13px;
  line-height: 1.35;
}

.tsc-dti-download-category-path {
  color: #7d7394;
}

.tsc-dti-download-feedback-block {
  margin-top: 11px;
}

.tsc-dti-download-feedback-divider {
  height: 1px;
  width: 100%;
  margin: 0 0 10px;
  background: #e5e5e5;
}

.tsc-dti-download-feedback-copy {
  margin: 0 0 8px;
  color: var(--tsc-dti-muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.tsc-dti-download-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.tsc-dti-remove-download-form,
.tsc-dti-report-action-form {
  margin: 0;
}

.tsc-dti-remove-button {
  border: 1px solid var(--tsc-dti-border);
  background: #fbfbfb;
  color: var(--tsc-dti-ink) !important;
  cursor: pointer;
}

.tsc-dti-remove-button:hover,
.tsc-dti-remove-button:focus {
  color: #c83030 !important;
  border-color: #f1c7c7;
}

.tsc-dti-report-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
  white-space: nowrap;
}

.tsc-dti-report-actions .tsc-dti-check-link-button {
  min-width: 92px;
}

.tsc-dti-delete-report-button {
  color: #c83030 !important;
  border-color: #f1c7c7;
  cursor: pointer;
}

.tsc-dti-delete-report-button:hover,
.tsc-dti-delete-report-button:focus {
  background: #fff0f0;
  color: #9f2424 !important;
}

.tsc-dti-reset-report-button {
  color: var(--tsc-dti-ink) !important;
  cursor: pointer;
}

.tsc-dti-reset-report-button:hover,
.tsc-dti-reset-report-button:focus {
  color: var(--tsc-dti-purple) !important;
}

@media (max-width: 820px) {
  .tsc-dti-download-row {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 122px;
    padding: 5px;
  }

  .tsc-dti-download-thumb {
    width: 112px;
    height: 112px;
    min-height: 112px;
  }

  .tsc-dti-download-actions {
    grid-column: 1 / -1;
    align-items: stretch;
  }

  .tsc-dti-remove-download-form,
  .tsc-dti-remove-button {
    width: 100%;
  }
}

/* v1.0.5 My Downloads visual refinements */
.tsc-dti-download-row {
  grid-template-columns: minmax(210px, 230px) minmax(0, 1fr) minmax(150px, auto);
  min-height: 150px;
  padding: 5px 14px 5px 5px;
}

.tsc-dti-download-thumb {
  width: 100%;
  height: 150px;
  min-height: 150px;
  border-radius: 14px;
}

.tsc-dti-download-thumb img,
.tsc-dti-download-thumb .tsc-dti-download-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tsc-dti-download-main {
  padding: 7px 0;
}

.tsc-dti-download-title {
  color: #404040;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.tsc-dti-download-title:hover,
.tsc-dti-download-title:focus {
  color: #404040;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.tsc-dti-download-creator {
  margin-top: 8px;
  color: #777;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.055em;
  line-height: 1.25;
  text-transform: uppercase;
}

.tsc-dti-download-category-path {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 13px;
  border-radius: 8px;
  background: #c8ebe3;
  color: #4a9d95;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
}

.tsc-dti-download-meta {
  margin-top: 8px;
}

.tsc-dti-download-actions {
  min-width: 150px;
  align-items: stretch;
}

.tsc-dti-download-actions .tsc-dti-small-button,
.tsc-dti-download-actions .tsc-dti-remove-download-form,
.tsc-dti-download-actions .tsc-dti-remove-button {
  width: 100%;
}

@media (max-width: 820px) {
  .tsc-dti-download-row {
    grid-template-columns: 130px minmax(0, 1fr);
    min-height: 118px;
  }

  .tsc-dti-download-thumb {
    width: 130px;
    height: 92px;
    min-height: 92px;
  }

  .tsc-dti-download-title {
    font-size: 16px;
  }

  .tsc-dti-download-creator,
  .tsc-dti-download-category-path {
    font-size: 12px;
  }
}

/* v1.0.6 My Downloads grid gallery */
.tsc-dti-my-downloads-gallery {
  --tsc-dti-download-columns: 3;
  display: grid;
  grid-template-columns: repeat(var(--tsc-dti-download-columns), minmax(0, 1fr));
  gap: 22px;
  width: 100%;
}

.tsc-dti-download-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  border: 1px solid #ece8f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(8, 10, 61, 0.07);
  color: var(--tsc-dti-ink);
}

.tsc-dti-download-card-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1.72 / 1;
  background: #f8f6fb;
}

.tsc-dti-download-card-image-link,
.tsc-dti-download-card-image-link:hover,
.tsc-dti-download-card-image-link:focus {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none !important;
}

.tsc-dti-download-grid-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tsc-dti-download-grid-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--tsc-dti-purple);
  font-size: 34px;
}

.tsc-dti-download-grid-category,
.tsc-dti-download-grid-date {
  position: absolute;
  left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 76px);
  min-height: 25px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tsc-dti-download-grid-category {
  top: 12px;
  background: #c8ebe3;
  color: #4a9d95;
}

.tsc-dti-download-grid-date {
  top: 43px;
  gap: 6px;
  background: #fff1bf;
  color: #8f6611;
}

.tsc-dti-download-grid-date i {
  font-size: 11px;
}

.tsc-dti-download-card-media .tsc-fav-button--loop {
  top: 12px;
  right: 12px;
  z-index: 5;
}

.tsc-dti-download-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 15px 15px 14px;
}

.tsc-dti-download-card-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 40px;
  color: #404040;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.012em;
  text-decoration: none !important;
}

.tsc-dti-download-card-title:hover,
.tsc-dti-download-card-title:focus {
  color: #404040;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px;
}

.tsc-dti-download-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  min-height: 18px;
}

.tsc-dti-download-card-creator {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #777;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.tsc-dti-download-card-posted-date {
  flex: 0 0 auto;
  color: #8f8f8f;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.tsc-dti-download-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.tsc-dti-download-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 37px;
  padding: 10px 14px;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
}

.tsc-dti-download-card-download {
  border: 1px solid var(--tsc-dti-pink);
  background: #cc3c82;
  color: #fff !important;
  box-shadow: none;
}

.tsc-dti-download-card-download:hover,
.tsc-dti-download-card-download:focus {
  color: #fff !important;
  filter: brightness(1.03);
}

.tsc-dti-download-card-remove-form {
  width: 100%;
  margin: 0;
}

.tsc-dti-download-card-remove {
  border: 1px solid #e5dfeb;
  background: #fff;
  color: var(--tsc-dti-ink) !important;
}

.tsc-dti-download-card-remove:hover,
.tsc-dti-download-card-remove:focus {
  border-color: #f0c5c5;
  color: #c83030 !important;
}

.tsc-dti-download-card-feedback {
  margin-top: 16px;
}

.tsc-dti-download-card-divider {
  height: 1px;
  width: 100%;
  background: #e7e7e7;
}

.tsc-dti-download-card-feedback p {
  margin: 12px 0 11px;
  color: #45506a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact {
  margin: 0;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-button,
.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-didnt_work {
  min-width: 0;
  width: 100%;
  min-height: 32px;
  padding: 7px 8px;
  gap: 6px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.05;
  white-space: nowrap;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-status {
  min-height: 16px;
  margin-top: 7px;
  font-size: 11px;
  text-align: center;
}

.tsc-dti-downloads-pagination {
  margin-top: 26px;
}

.tsc-dti-downloads-pagination .is-current {
  background: var(--tsc-dti-pink);
  border-color: var(--tsc-dti-pink);
  color: #fff;
}

@media (max-width: 1180px) {
  .tsc-dti-my-downloads-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tsc-dti-my-downloads-gallery {
    grid-template-columns: 1fr;
  }

  .tsc-dti-download-card-actions,
  .tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-buttons {
    grid-template-columns: 1fr;
  }

  .tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-button,
  .tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-didnt_work {
    font-size: 12px;
  }
}

/* v1.0.7 My Downloads gallery refinements */
.tsc-dti-download-card-media {
  aspect-ratio: auto;
  overflow: visible;
  background: #fff;
}

.tsc-dti-download-card-image-link,
.tsc-dti-download-card-image-link:hover,
.tsc-dti-download-card-image-link:focus {
  height: auto;
}

.tsc-dti-download-grid-img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.tsc-dti-download-card-tax-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0 0 9px;
  min-width: 0;
}

.tsc-dti-download-card-tax-row .tsc-dti-download-grid-category,
.tsc-dti-download-card-tax-row .tsc-dti-download-grid-date {
  position: static;
  left: auto;
  top: auto;
  z-index: auto;
  min-height: 24px;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.tsc-dti-download-card-tax-row .tsc-dti-download-grid-category {
  flex: 1 1 auto;
  max-width: none;
}

.tsc-dti-download-card-tax-row .tsc-dti-download-grid-date {
  flex: 0 0 auto;
  gap: 6px;
  max-width: 48%;
}

.tsc-dti-download-card-title {
  display: block;
  min-height: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  margin: 0;
}

.tsc-dti-download-card-meta-row {
  margin-top: 5px;
  gap: 8px;
}

.tsc-dti-download-card-creator {
  flex: 1 1 auto;
  max-width: 100%;
}

.tsc-dti-download-card-posted-date {
  flex: 0 0 auto;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-button,
.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-didnt_work {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  min-height: 31px;
  padding: 7px 9px;
  gap: 7px;
  border: 1px solid var(--tsc-dti-border);
  border-radius: 999px;
  background: #fbfbfb;
  color: var(--tsc-dti-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  white-space: nowrap;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-button:hover,
.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-button:focus {
  border-color: #d9c6ed;
  box-shadow: 0 10px 24px rgba(8, 10, 61, 0.08);
}

@media (max-width: 760px) {
  .tsc-dti-download-card-tax-row {
    flex-wrap: wrap;
  }

  .tsc-dti-download-card-tax-row .tsc-dti-download-grid-category,
  .tsc-dti-download-card-tax-row .tsc-dti-download-grid-date {
    max-width: 100%;
  }
}

/* v1.0.8 My Downloads compact card/button refinements */
.tsc-dti-download-card {
  padding: 10.05px;
  border-radius: 12px;
}

.tsc-dti-download-card-media {
  max-height: 270px;
  overflow: hidden;
  border-radius: 8px;
}

.tsc-dti-download-card-image-link,
.tsc-dti-download-card-image-link:hover,
.tsc-dti-download-card-image-link:focus {
  height: auto;
  max-height: 270px;
}

.tsc-dti-download-grid-img {
  width: 100%;
  height: auto;
  max-height: 270px;
  object-fit: contain;
  object-position: center;
}

.tsc-dti-download-card-body {
  padding: 10px 5px 4px;
}

.tsc-dti-download-card-tax-row .tsc-dti-download-grid-category {
  flex: 0 1 auto;
  width: auto;
  max-width: calc(100% - 128px);
}

.tsc-dti-download-card-tax-row .tsc-dti-download-grid-date {
  max-width: 128px;
}

.tsc-dti-download-card-button,
.tsc-dti-check-link-button,
.tsc-dti-pagination a,
.tsc-dti-pagination span,
.tsc-dti-small-button,
.tsc-dti-remove-button,
.tsc-dti-feedback-button {
  border-radius: 99px;
}

.tsc-dti-download-card-feedback p {
  color: #5d5d5d;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-button,
.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-didnt_work {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 31px;
  padding: 8px 15px;
  border: 1px solid var(--tsc-dti-border);
  border-radius: 99px;
  background: #fbfbfb;
  color: var(--tsc-dti-ink) !important;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-button span,
.tsc-dti-feedback-button span {
  color: var(--tsc-dti-ink) !important;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-works_for_me i,
.tsc-dti-feedback-works_for_me i {
  color: var(--tsc-dti-green) !important;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-broken_link i,
.tsc-dti-feedback-broken_link i {
  color: #ff0000 !important;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-didnt_work i,
.tsc-dti-feedback-didnt_work i {
  color: var(--tsc-dti-orange) !important;
}

.tsc-dti-feedback-broken_link.is-active,
.tsc-dti-download-card-feedback .tsc-dti-feedback-broken_link.is-active {
  background: #fff0f0;
  border-color: #f1b5b5;
  box-shadow: inset 0 0 0 1px rgba(255, 0, 0, 0.06);
}

.tsc-dti-feedback-didnt_work.is-active,
.tsc-dti-download-card-feedback .tsc-dti-feedback-didnt_work.is-active {
  background: #fff7ed;
  border-color: #ffd2a1;
  box-shadow: inset 0 0 0 1px rgba(240, 138, 36, 0.08);
}

.tsc-dti-feedback-works_for_me.is-active,
.tsc-dti-download-card-feedback .tsc-dti-feedback-works_for_me.is-active {
  background: #f4fff0;
  border-color: #b9dea9;
  box-shadow: inset 0 0 0 1px rgba(77, 154, 56, 0.08);
}

@media (max-width: 760px) {
  .tsc-dti-download-card-tax-row .tsc-dti-download-grid-category,
  .tsc-dti-download-card-tax-row .tsc-dti-download-grid-date {
    max-width: 100%;
  }
}


/* v1.0.9 My Downloads colour and image refinements */
.tsc-dti-download-card-media {
  max-height: 300px !important;
  border-radius: 3px !important;
}

.tsc-dti-download-card-image-link,
.tsc-dti-download-card-image-link:hover,
.tsc-dti-download-card-image-link:focus {
  max-height: 300px !important;
  border-radius: 3px !important;
}

.tsc-dti-download-grid-img {
  max-height: 300px !important;
  border-radius: 3px !important;
}

.tsc-dti-download-card-download {
  background: #e33181 !important;
  border-color: #e33181 !important;
  color: #ffffff !important;
}

.tsc-dti-download-card-download:hover,
.tsc-dti-download-card-download:focus,
.tsc-dti-download-card-download span,
.tsc-dti-download-card-download i {
  color: #ffffff !important;
}

.tsc-dti-download-card-feedback p {
  color: #5d5d5d !important;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-button,
.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-button span,
.tsc-dti-feedback-button,
.tsc-dti-feedback-button span {
  color: #080a3d !important;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-works_for_me i,
.tsc-dti-feedback-works_for_me i {
  color: #4d9a38 !important;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-didnt_work i,
.tsc-dti-feedback-didnt_work i {
  color: #f08a24 !important;
}

/* v1.0.10 My Downloads fixed image height and requested card refinements */
.tsc-dti-download-card {
  padding: 8px !important;
}

.tsc-dti-download-card-media {
  height: 300px !important;
  max-height: 300px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  background: #fff !important;
  border-radius: 3px !important;
}

.tsc-dti-download-card-image-link,
.tsc-dti-download-card-image-link:hover,
.tsc-dti-download-card-image-link:focus {
  width: 100% !important;
  height: 300px !important;
  max-height: 300px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
  border-radius: 3px !important;
}

.tsc-dti-download-grid-img {
  width: auto !important;
  max-width: none !important;
  height: 300px !important;
  max-height: 300px !important;
  object-fit: initial !important;
  object-position: center !important;
  border-radius: 3px !important;
}

.tsc-dti-download-card-media .tsc-fav-button--loop {
  top: 1px !important;
  right: 2px !important;
}

.tsc-dti-download-card-feedback {
  margin-top: 16px !important;
  background: #f9f9f9 !important;
  padding-bottom: 10px !important;
  border-radius: 0px 0px 15px 15px !important;
}

.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-button,
.tsc-dti-download-card-feedback .tsc-dti-feedback-compact .tsc-dti-feedback-didnt_work {
  border: 1px solid #e7ddf3 !important;
  background: #ffffff !important;
}


/* v1.0.11 My Downloads image crop fix: fixed height without stretching */
.tsc-dti-download-card-media {
  height: 300px !important;
  max-height: 300px !important;
  overflow: hidden !important;
  border-radius: 3px !important;
}

.tsc-dti-download-card-image-link,
.tsc-dti-download-card-image-link:hover,
.tsc-dti-download-card-image-link:focus {
  display: block !important;
  width: 100% !important;
  height: 300px !important;
  max-height: 300px !important;
  overflow: hidden !important;
  border-radius: 3px !important;
}

.tsc-dti-download-grid-img {
  display: block !important;
  width: 100% !important;
  height: 300px !important;
  max-width: 100% !important;
  max-height: 300px !important;
  object-fit: cover !important;
  object-position: center center !important;
  border-radius: 3px !important;
}

/* v1.0.12 logged-out external download safety check */
.tsc-dti-safety-modal[hidden] {
  display: none !important;
}

.tsc-dti-safety-modal {
  --tsc-dti-ink: #080a3d;
  --tsc-dti-muted: #68708f;
  --tsc-dti-border: #e7ddf3;
  --tsc-dti-pink: #e33181;
  --tsc-dti-orange: #f08a24;
  --tsc-dti-purple: #8b3ac7;
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: var(--tsc-dti-ink);
  font-family: inherit;
  text-align: left;
}

.tsc-dti-safety-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 61, 0.50);
  backdrop-filter: blur(3px);
}

.tsc-dti-safety-dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid rgba(231, 221, 243, 0.95);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(8, 10, 61, 0.26);
}

.tsc-dti-safety-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--tsc-dti-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.tsc-dti-safety-close:hover,
.tsc-dti-safety-close:focus {
  color: var(--tsc-dti-ink);
  background: #fbf8ff;
}

.tsc-dti-safety-header {
  padding-right: 38px;
}

.tsc-dti-safety-header h2 {
  margin: 0 0 4px;
  color: var(--tsc-dti-ink);
  font-size: clamp(24px, 2.6vw, 31px);
  font-weight: 850;
  line-height: 1.1;
}

.tsc-dti-safety-header p,
.tsc-dti-safety-intro {
  margin: 0;
  color: var(--tsc-dti-ink);
  font-size: 15px;
  line-height: 1.55;
}

.tsc-dti-safety-intro {
  margin-top: 28px;
  margin-bottom: 16px;
  max-width: 760px;
}

.tsc-dti-safety-rule {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  width: 100%;
  margin-top: 12px;
  padding: 15px 18px;
  border: 1px solid var(--tsc-dti-border);
  border-radius: 11px;
  background: #fbfbff;
  color: var(--tsc-dti-ink);
  font-size: 15px;
  line-height: 1.45;
}

.tsc-dti-safety-rule a {
  color: #1d37ff;
  font-weight: 800;
  text-decoration: underline;
}

.tsc-dti-safety-rule strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 850;
}

.tsc-dti-safety-rule p {
  margin: 0;
}

.tsc-dti-safety-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f4f1ff;
  color: #6257e8;
  font-size: 19px;
}

.tsc-dti-safety-rule-warning {
  align-items: flex-start;
  padding: 18px;
  border-color: #ff9f45;
  background: linear-gradient(90deg, #fff6ed 0%, #fff 100%);
}

.tsc-dti-safety-rule-warning strong {
  color: #f06f18;
}

.tsc-dti-safety-rule-warning .tsc-dti-safety-icon {
  background: #ffe3c6;
  color: #f06f18;
  font-size: 20px;
}

.tsc-dti-safety-dismiss-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--tsc-dti-ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.tsc-dti-safety-dismiss-row input {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

.tsc-dti-safety-status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--tsc-dti-green, #4d9a38);
  font-size: 14px;
  font-weight: 800;
}

.tsc-dti-safety-status.is-error {
  color: #c83030;
}

.tsc-dti-safety-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--tsc-dti-border);
}

.tsc-dti-safety-report {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--tsc-dti-pink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.tsc-dti-safety-report:disabled {
  opacity: 0.65;
  cursor: wait;
}

.tsc-dti-safety-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.tsc-dti-safety-cancel,
.tsc-dti-safety-continue {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.tsc-dti-safety-cancel {
  border: 1px solid var(--tsc-dti-pink);
  background: #fff;
  color: var(--tsc-dti-pink);
}

.tsc-dti-safety-continue {
  border: 0;
  background: linear-gradient(90deg, #e33181 0%, #d22576 100%);
  color: #fff;
  box-shadow: 0 12px 24px rgba(227, 49, 129, 0.20);
}

.tsc-dti-count-danger {
  color: #b21d1d;
  font-weight: 850;
}

.tsc-dti-status-pill.is-danger {
  color: #8d1212;
  background: #ffeaea;
}

.tsc-dti-feedback-suspicious_download i {
  color: #b21d1d;
}

.tsc-dti-feedback-suspicious_download.is-active {
  background: #fff0f0;
  border-color: #f3a8a8;
}

@media (max-width: 760px) {
  .tsc-dti-safety-modal {
    align-items: flex-start;
    padding: 12px;
  }

  .tsc-dti-safety-dialog {
    max-height: calc(100vh - 24px);
    padding: 24px 18px;
    border-radius: 16px;
  }

  .tsc-dti-safety-close {
    top: 14px;
    right: 14px;
  }

  .tsc-dti-safety-intro {
    margin-top: 22px;
  }

  .tsc-dti-safety-rule {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .tsc-dti-safety-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .tsc-dti-safety-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .tsc-dti-safety-actions {
    width: 100%;
    flex-direction: column-reverse;
  }

  .tsc-dti-safety-cancel,
  .tsc-dti-safety-continue,
  .tsc-dti-safety-report {
    width: 100%;
  }
}

body.tsc-dti-safety-modal-open {
  overflow: hidden;
}
