/* Chatterfy Tracker -> Campaigns — 1-to-1 exact pixel specs & tokens */

/* Collapsible Tracker Sidebar (240px <-> 60px, rounded-tl-3xl) */
.pa-page.pa-tracker-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  transition: grid-template-columns 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pa-page.pa-tracker-shell.pa-sidebar-collapsed {
  grid-template-columns: 60px minmax(0, 1fr);
}

.pa-tracker-shell .pa-sidebar {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--flow-border, #ffffff26);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: padding 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pa-sidebar-collapsed .pa-sidebar {
  padding: 20px 10px;
}

.pa-sidebar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  min-height: 24px;
}

.pa-sidebar-collapsed .pa-sidebar-head {
  justify-content: center;
  padding: 0;
}

.pa-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #ecedee;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  cursor: pointer;
}

.pa-sidebar-toggle svg {
  color: #a1a1aa;
  transition: color 150ms ease;
}

.pa-sidebar-toggle:hover svg {
  color: #fff;
}

.pa-sidebar-collapsed .pa-sidebar-toggle > span {
  display: none;
}

.pa-tracker-shell .pa-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pa-tracker-shell .pa-side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #ecedee;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.pa-tracker-shell .pa-side-link svg {
  color: #a1a1aa;
  flex: none;
  transition: color 150ms ease;
}

.pa-tracker-shell .pa-side-link:hover {
  background: #2c3554;
  color: #fff;
}

.pa-tracker-shell .pa-side-link[aria-current="page"] {
  background: #2c3554;
  color: #fff;
}

.pa-tracker-shell .pa-side-link[aria-current="page"] svg,
.pa-tracker-shell .pa-side-link:hover svg {
  color: #fff;
}

.pa-sidebar-collapsed .pa-side-link {
  justify-content: center;
  padding: 0;
}

.pa-sidebar-collapsed .pa-side-link > span {
  display: none;
}

.pa-tracker-shell .pa-content {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  padding: 20px 24px 28px;
}

/* ==================== Campaigns Header & Toolbar (Exact Pixel Dimensions) ==================== */
.tc-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.tc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.tc-header h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px;
  color: #fff;
}

/* Exact 28px small buttons (Create campaign, Not organic, Organic, Cards, Table) */
.tc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #ecedee;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 90ms ease;
}

.tc-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.tc-btn:disabled {
  opacity: 0.5;
  cursor: default;
  pointer-events: none;
}

.tc-btn-primary {
  background: #0384f6;
  color: #fff;
}

.tc-btn-primary:hover:not(:disabled) {
  background: #1c92fa;
}

.tc-btn-ghost {
  background: transparent;
  color: #ecedee;
}

.tc-btn-ghost:hover:not(:disabled) {
  background: #2c3554;
  color: #fff;
}

.tc-btn-outline {
  background: #1c2236;
  border-color: #ffffff26;
  color: #ecedee;
}

.tc-btn-outline:hover:not(:disabled) {
  background: #2c3554;
  color: #fff;
}

.tc-btn-accent-soft {
  background: rgba(3, 132, 246, 0.14);
  color: #338ef7;
}

.tc-btn-accent-soft:hover:not(:disabled) {
  background: rgba(3, 132, 246, 0.24);
  color: #60a5fa;
}

.tc-btn-danger-soft {
  background: rgba(243, 18, 96, 0.15);
  color: #f31260;
}

.tc-btn-danger-soft:hover:not(:disabled) {
  background: rgba(243, 18, 96, 0.26);
  color: #ff4d88;
}

.tc-btn-md {
  height: 32px;
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.tc-btn-icon {
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 0;
}

.tc-btn-icon-md {
  width: 32px;
  min-width: 32px;
  height: 32px;
  padding: 0;
}

/* Row 1: Organic Tabs + Cards/Table Switcher */
.tc-row-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.tc-tab-group,
.tc-view-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Row 2: Search + 6 Filters (Exact 32px height & widths) */
.tc-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tc-search {
  position: relative;
  width: 200px;
  flex: 0 0 200px;
  display: flex;
  align-items: center;
}

.tc-search > svg {
  position: absolute;
  left: 10px;
  color: #a1a1aa;
  pointer-events: none;
}

.tc-search input {
  width: 100%;
  height: 32px;
  padding: 0 28px 0 32px;
  border-radius: 8px;
  border: 1px solid #ffffff26;
  background: #1c2236;
  color: #fff;
  font-size: 13px;
  transition: border-color 150ms ease;
}

.tc-search input::placeholder {
  color: #a1a1aa;
}

.tc-search input:focus {
  outline: none;
  border-color: #0384f6;
}

.tc-clear-x {
  position: absolute;
  right: 6px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #a1a1aa;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.tc-clear-x:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tc-filter-select {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.tc-filter-select select {
  width: 100%;
  height: 32px;
  padding: 5px 28px 5px 11px;
  line-height: 20px;
  border-radius: 8px;
  border: 1px solid #ffffff26;
  background-color: #1c2236;
  color: #ecedee;
  font-size: 13px;
  appearance: none !important;
  -webkit-appearance: none !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.tc-filter-select select::picker-icon {
  display: none !important;
}

.tc-filter-select select option {
  background: #1c2236;
  color: #ecedee;
}

.tc-filter-select select[data-empty="true"] {
  color: #a1a1aa;
}

.tc-filter-select .tc-chev {
  position: absolute;
  right: 8px;
  pointer-events: none;
  color: #a1a1aa;
}

/* Status filter exact green/red tinted pill styling with inline × clear button */
.tc-filter-select.tc-status-active select {
  background-color: rgba(23, 201, 100, 0.14);
  border-color: rgba(23, 201, 100, 0.45);
  color: #17c964;
  padding-right: 46px;
}

.tc-filter-select.tc-status-active .tc-chev,
.tc-filter-select.tc-status-active .tc-status-clear {
  color: #17c964;
}

.tc-filter-select.tc-status-stopped select {
  background-color: rgba(243, 18, 96, 0.14);
  border-color: rgba(243, 18, 96, 0.45);
  color: #f31260;
  padding-right: 46px;
}

.tc-filter-select.tc-status-stopped .tc-chev,
.tc-filter-select.tc-status-stopped .tc-status-clear {
  color: #f31260;
}

.tc-status-clear {
  position: absolute;
  right: 24px;
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}

.tc-status-clear:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Exact filter widths from DOM measurements */
.tc-w-invite { width: 160px; }
.tc-w-dm     { width: 140px; }
.tc-w-buyer  { width: 140px; }
.tc-w-status { width: 140px; }
.tc-w-domain { width: 180px; }
.tc-w-land   { width: 160px; }

/* ==================== Empty State ==================== */
.tc-empty {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #a1a1aa;
  font-size: 14px;
  border: 1px solid #ffffff16;
  border-radius: 12px;
  background: rgba(28, 34, 54, 0.35);
}

/* ==================== Cards View (Exact responsive auto-fill minmax(340px, 1fr)) ==================== */
.tc-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

@media (max-width: 980px) {
  .tc-cards-grid {
    grid-template-columns: 1fr;
  }
}

.tc-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background: #1c2236;
  border: 1px solid #ffffff26;
  overflow: hidden;
  transition: border-color 150ms ease;
}

.tc-card:hover {
  border-color: rgba(255, 255, 255, 0.24);
}

.tc-card-head {
  padding: 20px;
}

.tc-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tc-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.tc-card-desc {
  margin-top: 4px;
  min-height: 20px;
  font-size: 14px;
  line-height: 20px;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  flex: none;
}

.tc-status-chip.active {
  background: #17c964;
  color: #000;
}

.tc-status-chip.stopped {
  background: #f31260;
  color: #fff;
}

/* Funnel metrics band (#0F1B2B) */
.tc-funnel-band {
  border-top: 1px solid #ffffff26;
  border-bottom: 1px solid #ffffff26;
  background: #0f1b2b;
  padding: 18px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tc-funnel-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 50px;
}

.tc-funnel-label {
  font-size: 12px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.tc-funnel-val {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.tc-funnel-pct {
  font-size: 12px;
  color: #17c964;
}

.tc-funnel-arrow {
  color: #71717a;
  flex: none;
}

/* Key-value 8 rows */
.tc-kv-list {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tc-kv-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  font-size: 14px;
}

.tc-kv-key {
  width: 92px;
  flex: 0 0 92px;
  color: #a1a1aa;
  font-size: 13px;
}

.tc-kv-val {
  min-width: 0;
  flex: 1;
  color: #ecedee;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-domain-link {
  color: #338ef7;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}

.tc-domain-link:hover {
  text-decoration: underline;
}

.tc-mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2c3554;
  color: #ecedee;
  font-size: 10px;
  font-weight: 600;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.tc-card-footer {
  padding: 12px 20px 18px;
  border-top: 1px solid #ffffff14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.tc-card-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==================== 15-Column Table View (Sticky Actions #091323) ==================== */
.tc-table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #ffffff26;
  border-radius: 12px;
  background: #0d1626;
}

.tc-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tc-table thead th {
  height: 40px;
  padding: 0 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #a1a1aa;
  white-space: nowrap;
  background: #1c2236;
  border-bottom: 1px solid #ffffff26;
}

.tc-table tbody tr {
  height: 61px;
  border-bottom: 1px solid #ffffff18;
  transition: background-color 140ms ease;
}

.tc-table tbody tr:last-child {
  border-bottom: 0;
}

.tc-table tbody tr:hover {
  background: rgba(44, 53, 84, 0.35);
}

.tc-table tbody td {
  padding: 10px 12px;
  color: #ecedee;
  vertical-align: middle;
  white-space: nowrap;
}

.tc-table .tc-col-sticky {
  position: sticky;
  right: 0;
  z-index: 5;
  width: 136px;
  min-width: 136px;
  background: #091323;
  border-left: 1px solid #ffffff16;
}

.tc-table thead th.tc-col-sticky {
  background: #1c2236;
  z-index: 6;
}

.tc-table-name {
  font-weight: 600;
  color: #fff;
  max-width: 265px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-table-sub {
  font-size: 12px;
  color: #a1a1aa;
  max-width: 265px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-table-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tc-table-metric small {
  color: #17c964;
  font-size: 11px;
}

.tc-table-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==================== Floating Popovers (Links & Ellipsis Actions) ==================== */
.tc-popover {
  position: fixed;
  z-index: 80;
  min-width: 168px;
  padding: 6px;
  border-radius: 10px;
  background: #1c2236;
  border: 1px solid #ffffff26;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: tc-pop 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tc-pop {
  from { opacity: 0; transform: translateY(-4px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.tc-pop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #ecedee;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.tc-pop-item:hover {
  background: #2c3554;
}

.tc-pop-item.danger {
  color: #f31260;
}

.tc-pop-item.danger:hover {
  background: rgba(243, 18, 96, 0.16);
}

/* ==================== 768px Right-Side Create/Edit Campaign Drawer ==================== */
.tc-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: flex-end;
  animation: tc-fade-in 240ms cubic-bezier(0.32, 0.72, 0, 1);
}

.tc-drawer-backdrop.closing {
  animation: tc-fade-out 180ms ease forwards;
}

.tc-drawer {
  width: min(48rem, 85vw);
  max-width: 100vw;
  height: 100dvh;
  background: #0f1b2b;
  color: #ecedee;
  border-radius: 14px 0 0 14px;
  box-shadow: 0 0 1px 0 #ffffff4d inset, -16px 0 48px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: tc-slide-in 250ms cubic-bezier(0.32, 0.72, 0, 1);
}

.tc-drawer-backdrop.closing .tc-drawer {
  animation: tc-slide-out 180ms ease forwards;
}

@keyframes tc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes tc-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes tc-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes tc-slide-out { from { transform: translateX(0); } to { transform: translateX(100%); } }

.tc-drawer-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 61px;
  padding: 16px 24px;
  border-bottom: 1px solid #ffffff1c;
}

.tc-drawer-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  color: #fff;
}

.tc-drawer-close {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #a1a1aa;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.tc-drawer-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

/* 8-Tab Compact Pill Bar (bg-default-active #2c3554, rounded-xl, p-1) */
.tc-tabs-scroll {
  flex: none;
  padding: 20px 24px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tc-tabs-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #2c3554;
  min-width: max-content;
}

.tc-tab-btn {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}

.tc-tab-btn:hover {
  color: #fff;
}

.tc-tab-btn.active {
  background: #0f1b2b;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.tc-drawer-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tc-drawer-footer {
  flex: none;
  padding: 14px 24px 16px;
  border-top: 1px solid #ffffff1c;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: #0f1b2b;
}

.tc-drawer-footer .tc-btn {
  height: 32px;
  min-width: 64px;
  padding: 0 14px;
  font-size: 12px;
}

/* Drawer Form Fields — exact HeroUI h-8 (32px) compact inputs */
.tc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.tc-field-label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #ecedee;
}

.tc-field-help {
  font-size: 12px;
  color: #a1a1aa;
}

.tc-input,
.tc-textarea,
.tc-select {
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid #ffffff26;
  background-color: #1c2236;
  color: #fff;
  font-size: 13px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.tc-input::placeholder,
.tc-textarea::placeholder {
  color: #71717a;
}

.tc-input:focus,
.tc-textarea:focus,
.tc-select:focus {
  outline: none;
  border-color: #0384f6;
  box-shadow: 0 0 0 2px rgba(3, 132, 246, 0.22);
}

.tc-textarea {
  height: 70px;
  min-height: 70px;
  max-height: 130px;
  padding: 6px 10px;
  border-radius: 10px;
  resize: vertical;
}

.tc-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tc-param-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tc-param-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tc-param-top .tc-input,
.tc-param-bottom .tc-input {
  height: 40px;
  min-height: 40px;
  border-radius: 10px;
}

.tc-param-bottom {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.tc-param-bottom > .tc-field {
  flex: 1 1 auto;
}

.tc-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='1.8'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-size: 16px;
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.tc-select::picker-icon {
  display: none !important;
}

.tc-select option {
  background: #1c2236;
  color: #fff;
}

/* Parameter / Source / Action / S2S Subcards */
.tc-subcard {
  border-radius: 10px;
  background: #1c2236;
  border: 1px solid #ffffff26;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tc-param-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.tc-param-row > .tc-field {
  flex: 1 1 160px;
}

.tc-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tc-inline-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tc-chip-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-chip-toggle {
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #ffffff26;
  background: #1c2236;
  color: #a1a1aa;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tc-chip-toggle.active {
  background: rgba(3, 132, 246, 0.18);
  border-color: #0384f6;
  color: #fff;
}

.tc-vars-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tc-var-pill {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #ffffff26;
  background: #1c2236;
  color: #338ef7;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  cursor: pointer;
}

.tc-var-pill:hover {
  background: rgba(3, 132, 246, 0.2);
  border-color: #0384f6;
  color: #fff;
}

.tc-notice {
  padding: 16px;
  border-radius: 10px;
  background: #1c2236;
  border: 1px solid #ffffff20;
  color: #a1a1aa;
  font-size: 13px;
}

.tc-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  cursor: pointer;
}

.tc-switch {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #3f3f46;
  transition: background-color 160ms ease;
  flex: none;
}

.tc-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}

.tc-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 160ms ease;
}

.tc-switch:has(input:checked) {
  background: #0384f6;
}

.tc-switch:has(input:checked)::after {
  transform: translateX(16px);
}
