/* Compact dashboard preview for .th-feature-final-preview banners */
.th-feature-final-preview {
  align-items: flex-end;
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  overflow: hidden;
  padding: 28px 0 0 0;
  pointer-events: none;
  user-select: none;
}

.th-ffp {
  height: 100%;
  transform: translateY(6px);
  width: 118%;
  max-width: none;
}

.th-ffp-browser {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px 0 0 0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 270px;
  overflow: hidden;
}

.th-ffp-bar {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid #e8edf3;
  display: grid;
  flex-shrink: 0;
  gap: 8px;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  padding: 7px 10px;
}

.th-ffp-dots {
  display: flex;
  gap: 4px;
}

.th-ffp-dots span {
  background: #d0d5dd;
  border-radius: 999px;
  display: block;
  height: 7px;
  width: 7px;
}

.th-ffp-dots span:nth-child(1) { background: #f97066; }
.th-ffp-dots span:nth-child(2) { background: #fdb022; }
.th-ffp-dots span:nth-child(3) { background: #32d583; }

.th-ffp-title {
  color: #667085;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-ffp-dash {
  background: #f4f7fb;
  display: grid;
  flex: 1;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 0;
}

.th-ffp-side {
  background: #fff;
  border-right: 1px solid #e8edf3;
  padding: 10px 8px;
}

.th-ffp-org {
  align-items: center;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px;
}

.th-ffp-org-ico {
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

.th-ffp-org-ico svg {
  display: block;
  height: 20px;
  width: 20px;
}

.th-ffp-org-copy {
  min-width: 0;
}

.th-ffp-org-copy strong,
.th-ffp-org-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-ffp-org-copy strong {
  color: #111827;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.th-ffp-org-copy span {
  color: #98a2b3;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  line-height: 1.2;
  margin-top: 1px;
}

.th-ffp-nav-section {
  color: #98a2b3;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 4px 2px;
  text-transform: uppercase;
}

.th-ffp-nav {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

.th-feature-final-preview:has(.th-ffp--empty) {
  display: none !important;
}

.th-ffp-nav-item {
  align-items: center;
  border-radius: 7px;
  color: #475467;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  gap: 6px;
  padding: 6px 7px;
}

.th-ffp-nav-item[data-ffp-feature-nav] {
  cursor: pointer;
}

.th-ffp-nav-item.is-active {
  background: var(--th-brand-color-light);
  color: var(--th-brand-color);
}

.th-ffp-nav-item i {
  font-size: 12px;
  line-height: 1;
}

.th-ffp-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.th-ffp-topbar {
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e8edf3;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 7px 10px;
}

.th-ffp-plan {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.th-ffp-plan-badge {
  background: var(--th-brand-color-light);
  border-radius: 999px;
  color: var(--th-brand-color);
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
}

.th-ffp-credits-badge {
  background: #7c3aed;
  border-radius: 999px;
  color: #fff;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  white-space: nowrap;
}

.th-ffp-avatar {
  background: var(--th-brand-color);
  border-radius: 999px;
  color: var(--th-brand-color);
  flex-shrink: 0;
  height: 22px;
  overflow: hidden;
  width: 22px;
}

.th-ffp-avatar svg {
  display: block;
  height: 22px;
  width: 22px;
}

.th-ffp-avatar svg circle:first-child,
.th-ffp-avatar svg [fill="var(--th-brand-color)"] {
  fill: var(--th-brand-color) !important;
}

.th-ffp-avatar--fallback {
  background: var(--th-brand-color);
}

.th-ffp-content {
  min-width: 0;
  padding: 10px 10px 0;
}

.th-ffp-head h3 {
  color: #111827;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.th-ffp-head p {
  color: #64748b;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  line-height: 1.35;
  margin: 4px 0 0;
  max-width: 420px;
}

.th-ffp-stats {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
}

.th-ffp-stat {
  align-items: center;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  display: flex;
  gap: 5px;
  min-width: 0;
  padding: 6px 7px;
}

.th-ffp-stat-icon {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  flex: 0 0 18px;
  font-size: 10px;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.th-ffp-stat-icon.is-blue { background: var(--th-brand-color-light); color: var(--th-brand-color); }
.th-ffp-stat-icon.is-green { background: #ecfdf3; color: #12b76a; }
.th-ffp-stat-icon.is-purple { background: #f4f3ff; color: #7a5af8; }
.th-ffp-stat-icon.is-orange { background: #fff6ed; color: #f79009; }

.th-ffp-stat-copy {
  min-width: 0;
}

.th-ffp-stat-copy span {
  color: #64748b;
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 7px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-ffp-stat-copy strong {
  color: #111827;
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 2px;
}

.th-ffp-board {
  background: #fff;
  border: 1px solid #e8edf3;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  margin-top: 10px;
  overflow: hidden;
  padding: 8px 8px 0;
}

.th-ffp-toolbar {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.th-ffp-tabs {
  display: flex;
  gap: 4px;
}

.th-ffp-tab {
  align-items: center;
  border-radius: 6px;
  color: #667085;
  display: inline-flex;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  gap: 4px;
  padding: 4px 7px;
}

.th-ffp-tab.is-active {
  background: var(--th-brand-color-light);
  color: var(--th-brand-color);
}

.th-ffp-tab i {
  font-size: 11px;
}

.th-ffp-month strong {
  color: #111827;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.th-ffp-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.th-ffp-day {
  border-right: 1px solid #eef2f6;
  min-width: 0;
  padding: 0 5px 8px;
}

.th-ffp-day:last-child {
  border-right: 0;
}

.th-ffp-day-label {
  color: #667085;
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  margin-bottom: 5px;
}

.th-ffp-day.is-focus .th-ffp-card {
  border-color: #b2ccff;
  box-shadow: 0 0 0 1px rgba(var(--th-brand-color-rgb), 0.12);
}

.th-ffp-card {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 8px;
  padding: 6px;
}

.th-ffp-priority {
  border-radius: 999px;
  display: inline-flex;
  font-family: 'Inter', sans-serif;
  font-size: 7px;
  font-weight: 700;
  padding: 2px 5px;
}

.th-ffp-priority.is-medium {
  background: #fff6ed;
  color: #f79009;
}

.th-ffp-priority.is-low {
  background: #f2f4f7;
  color: #667085;
}

.th-ffp-card-title {
  color: #111827;
  display: -webkit-box;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.25;
  margin-top: 5px;
  overflow: hidden;
}

.th-ffp-card-meta {
  color: #98a2b3;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 7px;
  gap: 6px;
  margin-top: 4px;
}

.th-ffp-engines {
  display: flex;
  gap: 2px;
  margin-top: 5px;
}

.th-ffp-engine {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 4px;
  display: inline-flex;
  height: 14px;
  justify-content: center;
  width: 14px;
}

.th-ffp-engine img {
  display: block;
  height: 9px;
  object-fit: contain;
  width: 9px;
}

.th-ffp-card-tag {
  align-items: center;
  background: #f2f4f7;
  border-radius: 5px;
  color: #475467;
  display: inline-flex;
  font-family: 'Inter', sans-serif;
  font-size: 7px;
  font-weight: 600;
  gap: 3px;
  margin-top: 5px;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.th-ffp-card-tag i {
  font-size: 9px;
}

.th-ffp-card-btn {
  background: var(--th-brand-color);
  border-radius: 5px;
  color: #fff;
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  margin-top: 6px;
  padding: 4px 6px;
  text-align: center;
}

.th-ffp-card-btn.is-planned {
  background: #f2f4f7;
  color: #475467;
}

@media (max-width: 900px) {
  .th-feature-final-preview {
    justify-content: center;
    overflow: visible;
    padding: 0 1rem 1.5rem;
  }

  .th-ffp {
    transform: none;
    width: 100%;
  }

  .th-ffp-browser {
    border-radius: 10px;
    min-height: 240px;
  }

  .th-ffp-dash {
    grid-template-columns: minmax(0, 1fr);
  }

  .th-ffp-side {
    display: none;
  }

  .th-ffp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .th-ffp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .th-ffp-day:nth-child(n+4) {
    display: none;
  }
}

/* Overview clone (website_overview ready state, simplified) */
.th-ffp--overview {
  width: 122%;
}

.th-ffp-dash--overview {
  grid-template-columns: 148px minmax(0, 1fr);
}

.th-ffp-main--overview {
  background: #f8fafc;
  min-height: 0;
  overflow: hidden;
}

.th-ffp-overview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 10px 12px 12px;
}

.th-ffp-ov-hero {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 7px;
}

.th-ffp-ov-logo {
  align-items: center;
  background: linear-gradient(180deg, var(--th-brand-color-gradient-start) 0%, var(--th-brand-color) 100%);
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(var(--th-brand-color-rgb), 0.18);
  display: inline-flex;
  flex: 0 0 auto;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.th-ffp-ov-logo svg {
  display: block;
  height: 9px;
  width: 10px;
}

.th-ffp-ov-hero h3 {
  color: #101828;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.th-ffp-ov-hero h3 span {
  color: var(--th-brand-color);
}

.th-ffp-ov-history {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.04);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.th-ffp-ov-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.th-ffp-ov-table th,
.th-ffp-ov-table td {
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  padding: 4px 8px;
  text-align: left;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.th-ffp-ov-table th {
  background: #f8fafc;
  border-bottom: 1px solid #e8edf3;
  color: #98a2b3;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.th-ffp-ov-table td {
  border-bottom: 1px solid #f1f5f9;
  color: #344054;
  font-size: 8.5px;
  font-weight: 600;
}

.th-ffp-ov-table tbody tr:last-child td {
  border-bottom: 0;
}

.th-ffp-ov-table th:nth-child(1),
.th-ffp-ov-table td:nth-child(1) {
  width: 28%;
}

.th-ffp-ov-table th:nth-child(2),
.th-ffp-ov-table td:nth-child(2) {
  width: 48%;
}

.th-ffp-ov-table th:nth-child(3),
.th-ffp-ov-table td:nth-child(3) {
  color: #98a2b3;
  text-align: right;
  width: 24%;
}

.th-ffp-ov-table td:nth-child(3) {
  font-weight: 500;
}

.th-ffp-ov-agent {
  background: var(--th-brand-color-light);
  border-radius: 999px;
  color: var(--th-brand-color);
  display: inline-block;
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  padding: 2px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .th-ffp--overview {
    width: 100%;
  }

  .th-ffp-dash--overview {
    grid-template-columns: minmax(0, 1fr);
  }

  .th-ffp-ov-table th:nth-child(1),
  .th-ffp-ov-table td:nth-child(1) {
    width: 30%;
  }

  .th-ffp-ov-table th:nth-child(2),
  .th-ffp-ov-table td:nth-child(2) {
    width: 46%;
  }

  .th-ffp-ov-table th:nth-child(3),
  .th-ffp-ov-table td:nth-child(3) {
    width: 24%;
  }
}
