/*
 * Dashboard CSS — TGB v2.0
 * Generated: 2026-01-15 09:47
 */

/* Scoped to .tgb-dashboard to avoid global leakage. */
.tgb-dashboard {
  width: 100%;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.6;
  color: #10202c;
  overflow-wrap: break-word;
  overflow-x: hidden;
}

.tgb-dashboard *,
.tgb-dashboard *::before,
.tgb-dashboard *::after {
  box-sizing: inherit;
}

.tgb-dashboard .tgb-dashboard__container {
  max-width: 1450px;
  margin: 0 auto;
  padding: clamp(16px, 2vw, 32px);
}

.tgb-dashboard .tgb-dashboard__layout {
  align-items: flex-start;
}

.tgb-dashboard .tgb-dashboard__main {
  display: grid;
  gap: 32px;
}

.tgb-dashboard .tgb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.tgb-dashboard .tgb-stat-card {
  background: #ffffff;
  border: 1px solid rgba(16, 32, 44, 0.08);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(16, 32, 44, 0.06);
}

.tgb-dashboard .tgb-stat-card__number {
  font-size: 24px;
  font-weight: 700;
  color: #0b1f2a;
}

.tgb-dashboard .tgb-stat-card__label {
  margin-top: 4px;
  font-size: 14px;
  color: rgba(16, 32, 44, 0.7);
}

.tgb-dashboard .tgb-section {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(16, 32, 44, 0.08);
}

.tgb-dashboard .tgb-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.tgb-dashboard .tgb-section__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.tgb-dashboard .tgb-section__action {
  font-size: 14px;
  font-weight: 600;
  color: #145a8a;
  text-decoration: none;
}

.tgb-dashboard .tgb-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tgb-dashboard .tgb-content-card {
  border: 1px solid rgba(16, 32, 44, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tgb-dashboard .tgb-content-card__image {
  position: relative;
  overflow: hidden;
  background: #f4f6f8;
}

.tgb-dashboard .tgb-content-card__image img {
  width: 100%;
  height: auto;
  display: block;
}

.tgb-dashboard .tgb-content-card__image-placeholder {
  display: block;
  width: 100%;
  padding-top: 62%;
  background: #e8edf2;
}

.tgb-dashboard .tgb-content-card__lock {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(16, 32, 44, 0.8);
  border-radius: 999px;
  width: 1.6rem;
  height: 1.6rem;
}

.tgb-dashboard .tgb-content-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  height: 100%;
}

.tgb-dashboard .tgb-content-card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(16, 32, 44, 0.6);
}

.tgb-dashboard .tgb-content-card__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.tgb-dashboard .tgb-content-card__title a {
  color: inherit;
  text-decoration: none;
}

.tgb-dashboard .tgb-content-card__excerpt {
  margin: 0;
  color: rgba(16, 32, 44, 0.72);
  font-size: 14px;
}

.tgb-dashboard .tgb-content-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tgb-dashboard .tgb-content-card__badge {
  font-size: 12px;
  font-weight: 600;
  color: #0b1f2a;
}

.tgb-dashboard .tgb-bookmarks {
  display: grid;
  gap: 12px;
}

.tgb-dashboard .tgb-bookmark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 32, 44, 0.1);
  border-radius: 14px;
  background: #fafbfc;
}

.tgb-dashboard .tgb-bookmark__content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tgb-dashboard .tgb-bookmark__icon {
  font-size: 20px;
}

.tgb-dashboard .tgb-bookmark__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tgb-dashboard .tgb-bookmark__title a {
  color: inherit;
  text-decoration: none;
}

.tgb-dashboard .tgb-bookmark__remove {
  border: 1px solid rgba(16, 32, 44, 0.2);
  border-radius: 999px;
  background: #ffffff;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.tgb-dashboard .tgb-sidebar-card {
  background: #ffffff;
  border: 1px solid rgba(16, 32, 44, 0.08);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 20px rgba(16, 32, 44, 0.06);
}

.tgb-dashboard .tgb-sidebar-card__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
}

.tgb-dashboard .tgb-sidebar-list {
  display: grid;
  gap: 14px;
}

.tgb-dashboard .tgb-sidebar-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.tgb-dashboard .tgb-sidebar-item__icon {
  font-size: 20px;
}

.tgb-dashboard .tgb-sidebar-item__content {
  min-width: 0;
}

.tgb-dashboard .tgb-sidebar-item__link {
  text-decoration: none;
  color: inherit;
}

.tgb-dashboard .tgb-sidebar-item__eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(16, 32, 44, 0.6);
}

.tgb-dashboard .tgb-sidebar-item__title {
  margin: 4px 0 0;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.tgb-dashboard .tgb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.tgb-dashboard a:focus-visible,
.tgb-dashboard button:focus-visible {
  outline: 2px solid #145a8a;
  outline-offset: 2px;
}

@media (max-width: 1024px) {
  .tgb-dashboard .tgb-dashboard__container {
    padding: 20px;
  }

  .tgb-dashboard .tgb-content-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  .tgb-dashboard .tgb-dashboard__main {
    gap: 24px;
  }

  .tgb-dashboard .tgb-section {
    padding: 20px;
  }

  .tgb-dashboard .tgb-content-grid {
    grid-template-columns: 1fr;
  }

  .tgb-dashboard .tgb-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .tgb-dashboard .tgb-section__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tgb-dashboard .tgb-stats {
    grid-template-columns: 1fr;
  }
}
