/*
 * Tracking Command Center
 * Escopo isolado para preservar o design system e as páginas existentes.
 */
#page-tracking {
  --tc-bg: #07101d;
  --tc-panel: rgba(13, 25, 43, .86);
  --tc-panel-deep: rgba(7, 16, 30, .94);
  --tc-line: rgba(138, 165, 211, .16);
  --tc-line-strong: rgba(126, 162, 232, .28);
  --tc-text: #edf4ff;
  --tc-muted: #8798b3;
  --tc-subtle: #62738e;
  --tc-blue: #79a9ff;
  --tc-cyan: #61e6dc;
  --tc-green: #4ee1a7;
  --tc-amber: #f6c761;
  --tc-rose: #ff7b9f;
  --tc-violet: #b69cff;
  position: relative;
  padding-bottom: 44px;
  color: var(--tc-text);
}

#page-tracking * { box-sizing: border-box; }
#page-tracking button,
#page-tracking input,
#page-tracking select { font: inherit; }

.tc-shell {
  max-width: 1700px;
  margin: 0 auto;
}

.tc-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 152px;
  padding: 25px 27px 24px;
  border: 1px solid var(--tc-line-strong);
  border-radius: 20px;
  background:
    radial-gradient(680px 250px at 87% -22%, rgba(54, 117, 242, .28), transparent 63%),
    radial-gradient(430px 220px at 4% 110%, rgba(40, 202, 187, .11), transparent 70%),
    linear-gradient(133deg, rgba(17, 31, 54, .96), rgba(7, 15, 28, .97));
  box-shadow: 0 22px 55px rgba(0, 0, 0, .19);
}

.tc-hero::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  top: -220px;
  right: 20%;
  border: 1px solid rgba(124, 174, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(124, 174, 255, .04), 0 0 0 77px rgba(124, 174, 255, .025);
  pointer-events: none;
}

.tc-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--tc-cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .15em;
}

.tc-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--tc-cyan);
  box-shadow: 0 0 0 5px rgba(97, 230, 220, .10), 0 0 18px rgba(97, 230, 220, .55);
}

.tc-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #f4f7ff;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 760;
  letter-spacing: -.035em;
}

.tc-hero p {
  max-width: 625px;
  margin: 7px 0 0;
  color: #a7b8d3;
  font-size: 13px;
  line-height: 1.55;
}

.tc-hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.tc-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(78, 225, 167, .17);
  border-radius: 99px;
  color: #a9dcca;
  background: rgba(27, 96, 70, .14);
  font-size: 11px;
  font-weight: 700;
}

.tc-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tc-green);
  box-shadow: 0 0 13px rgba(78, 225, 167, .82);
}

.tc-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(141, 181, 255, .35);
  border-radius: 9px;
  color: #e3eeff;
  background: rgba(56, 106, 198, .19);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transition: .16s ease;
}

.tc-refresh:hover { border-color: rgba(163, 197, 255, .76); background: rgba(67, 123, 222, .32); }
.tc-refresh:focus-visible,
.tc-tab:focus-visible,
.tc-date-pill:focus-visible,
.tc-row-button:focus-visible,
.tc-icon-btn:focus-visible { outline: 2px solid var(--tc-cyan); outline-offset: 3px; }

.tc-filterbar {
  display: grid;
  grid-template-columns: minmax(255px, 1.45fr) repeat(3, minmax(142px, .72fr));
  gap: 10px;
  margin-top: 12px;
  padding: 11px;
  border: 1px solid var(--tc-line);
  border-radius: 16px;
  background: rgba(8, 17, 31, .72);
}

.tc-period-filter { min-width: 0; }
.tc-filter-label {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--tc-subtle);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tc-date-pills {
  display: flex;
  min-height: 36px;
  overflow-x: auto;
  border: 1px solid rgba(128, 155, 200, .18);
  border-radius: 10px;
  background: rgba(3, 9, 18, .38);
  scrollbar-width: none;
}
.tc-date-pills::-webkit-scrollbar { display: none; }

.tc-date-pill {
  flex: 0 0 auto;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid rgba(128, 155, 200, .10);
  color: #8fa1bb;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  transition: .15s ease;
}
.tc-date-pill:last-child { border-right: 0; }
.tc-date-pill:hover { color: #d9e8ff; background: rgba(104, 151, 239, .09); }
.tc-date-pill.is-active { color: #f0f6ff; background: rgba(76, 132, 232, .30); box-shadow: inset 0 0 0 1px rgba(142, 183, 255, .22); }

.tc-filter-field { min-width: 0; }
.tc-filter-field select,
.tc-custom-date input,
.tc-sales-search {
  width: 100%;
  min-height: 36px;
  padding: 0 29px 0 11px;
  border: 1px solid rgba(129, 158, 205, .18);
  border-radius: 10px;
  outline: none;
  color: #c8d8f0;
  background: rgba(3, 9, 18, .40);
  font-size: 12px;
  appearance: auto;
}
.tc-filter-field select:focus,
.tc-custom-date input:focus,
.tc-sales-search:focus { border-color: rgba(111, 175, 255, .8); box-shadow: 0 0 0 3px rgba(80, 145, 255, .13); }

.tc-custom-date {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 10px;
  padding-top: 3px;
}
.tc-custom-date.is-open { display: grid; }
.tc-custom-date label { display: block; margin: 0 0 5px; color: var(--tc-subtle); font-size: 10px; font-weight: 700; }
.tc-custom-date input { padding-right: 10px; color-scheme: dark; }
.tc-apply-date {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(99, 213, 196, .38);
  border-radius: 9px;
  color: #c7fff7;
  background: rgba(30, 151, 137, .16);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.tc-tabs-wrap {
  position: sticky;
  z-index: 4;
  top: 0;
  margin: 16px -1px 18px;
  padding: 9px 1px;
  background: linear-gradient(180deg, rgba(7, 16, 29, .98) 72%, rgba(7, 16, 29, 0));
}
.tc-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 12px;
  padding: 4px;
  border: 1px solid var(--tc-line);
  border-radius: 12px;
  background: rgba(9, 19, 35, .84);
  scrollbar-width: none;
}
.tc-tabs::-webkit-scrollbar { display: none; }

.tc-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  color: #8ea2c1;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
  transition: .16s ease;
}
.tc-tab svg { width: 14px; height: 14px; opacity: .78; }
.tc-tab:hover { color: #e1edff; background: rgba(105, 150, 231, .09); }
.tc-tab.is-active { color: #f4f8ff; background: linear-gradient(135deg, rgba(70, 125, 228, .48), rgba(53, 90, 170, .34)); box-shadow: inset 0 0 0 1px rgba(155, 191, 255, .16), 0 5px 13px rgba(0, 0, 0, .15); }
.tc-tab.is-active svg { opacity: 1; color: var(--tc-cyan); }

.tc-tab-panel { display: none; animation: tcReveal .22s ease both; }
.tc-tab-panel.is-active { display: block; }
.tc-load-state {
  margin-top: 12px;
  padding: 22px;
  border: 1px solid var(--tc-line);
  border-radius: 14px;
  color: #b6c8e2;
  background: linear-gradient(120deg, rgba(41, 85, 154, .16), rgba(11, 23, 40, .72));
}
.tc-load-state strong { display: block; color: #e5efff; font-size: 13px; }
.tc-load-state p { margin: 6px 0 0; color: #8195b4; font-size: 11px; line-height: 1.5; }
.tc-load-error { border-color: rgba(255, 123, 159, .34); background: rgba(106, 31, 54, .18); }
.tc-load-error .tc-apply-date { margin-top: 13px; }
@keyframes tcReveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .tc-tab-panel,
  .tc-drawer { animation: none !important; }
  .tc-tab,
  .tc-refresh,
  .tc-date-pill { transition: none !important; }
}

.tc-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin: 0 0 12px;
}
.tc-panel-heading h3 { margin: 0; color: #edf4ff; font-size: 17px; letter-spacing: -.02em; }
.tc-panel-heading p { margin: 4px 0 0; color: var(--tc-muted); font-size: 12px; line-height: 1.45; }
.tc-data-note {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
  color: #92a5c5;
  font-size: 10px;
}
.tc-data-note::before { content: ""; width: 5px; height: 5px; border-radius: 100%; background: #89a6d5; }
.tc-data-note.is-demo { color: #e8b962; }
.tc-data-note.is-demo::before { background: var(--tc-amber); }

.tc-metric-strip {
  display: grid;
  grid-template-columns: 1.35fr repeat(5, minmax(115px, 1fr));
  overflow: hidden;
  border: 1px solid var(--tc-line);
  border-radius: 16px;
  background: var(--tc-panel);
}
.tc-metric {
  position: relative;
  min-width: 0;
  min-height: 105px;
  padding: 17px 16px 14px;
  border-right: 1px solid var(--tc-line);
}
.tc-metric:last-child { border-right: 0; }
.tc-metric:first-child {
  background: linear-gradient(145deg, rgba(45, 97, 186, .31), rgba(10, 23, 42, .12));
}
.tc-metric:first-child::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--tc-cyan), rgba(97, 230, 220, 0));
}
.tc-metric span { display: block; color: #8294b3; font-size: 10px; font-weight: 720; letter-spacing: .03em; }
.tc-metric strong { display: block; overflow: hidden; margin: 8px 0 4px; color: #edf5ff; font-size: clamp(18px, 2vw, 24px); font-weight: 760; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.tc-metric small { display: block; overflow: hidden; color: #7184a4; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tc-metric.is-positive strong { color: var(--tc-green); }
.tc-metric.is-wait strong { color: #9dacbd; font-size: 15px; letter-spacing: -.02em; }

.tc-summary-grid,
.tc-split-grid,
.tc-bottom-grid { display: grid; gap: 12px; margin-top: 12px; }
.tc-summary-grid { grid-template-columns: minmax(440px, 1.24fr) minmax(310px, .76fr); }
.tc-split-grid { grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); }
.tc-bottom-grid { grid-template-columns: minmax(0, 1.08fr) minmax(330px, .92fr); }

.tc-card {
  overflow: hidden;
  border: 1px solid var(--tc-line);
  border-radius: 15px;
  background:
    radial-gradient(310px 140px at 100% 0, rgba(75, 127, 230, .08), transparent 72%),
    var(--tc-panel);
  box-shadow: 0 11px 28px rgba(0, 0, 0, .10);
}
.tc-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 54px;
  padding: 0 16px;
  border-bottom: 1px solid var(--tc-line);
}
.tc-card-h h4 { margin: 0; color: #dfeaff; font-size: 12px; font-weight: 760; letter-spacing: .01em; }
.tc-card-h span { color: #7184a1; font-size: 10px; }

.tc-funnel { padding: 11px 15px 14px; }
.tc-funnel-row {
  display: grid;
  grid-template-columns: 142px minmax(90px, 1fr) 47px 59px;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}
.tc-funnel-label { overflow: hidden; color: #abbcd5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tc-funnel-track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(87, 115, 160, .13); }
.tc-funnel-fill { height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #5f92f8, #62e4d9); box-shadow: 0 0 18px rgba(88, 171, 250, .28); }
.tc-funnel-row:nth-child(2) .tc-funnel-fill { background: linear-gradient(90deg, #5f92f8, #8ba4ff); }
.tc-funnel-row:nth-child(3) .tc-funnel-fill { background: linear-gradient(90deg, #688df0, #a696ff); }
.tc-funnel-row:nth-child(4) .tc-funnel-fill { background: linear-gradient(90deg, #877cf0, #c18df9); }
.tc-funnel-row:nth-child(5) .tc-funnel-fill { background: linear-gradient(90deg, #a771d2, #f19b9d); }
.tc-funnel-row:nth-child(6) .tc-funnel-fill { background: linear-gradient(90deg, #e38a9e, #f7bf69); }
.tc-funnel-value { color: #e4efff; font-size: 11px; font-weight: 760; text-align: right; }
.tc-funnel-rate { color: #7488a8; font-size: 10px; text-align: right; }
.tc-funnel-note { padding: 9px 15px 0; color: #7183a0; font-size: 10px; line-height: 1.45; }

.tc-status-list { padding: 4px 15px 10px; }
.tc-status {
  display: grid;
  grid-template-columns: 9px minmax(86px, .62fr) minmax(0, 1.38fr);
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border-bottom: 1px solid rgba(126, 150, 189, .10);
}
.tc-status:last-child { border-bottom: 0; }
.tc-status i { width: 7px; height: 7px; border-radius: 100%; background: #8192ac; }
.tc-status.is-ok i { background: var(--tc-green); box-shadow: 0 0 10px rgba(78, 225, 167, .48); }
.tc-status.is-warn i { background: var(--tc-amber); box-shadow: 0 0 10px rgba(246, 199, 97, .38); }
.tc-status.is-error i { background: var(--tc-rose); box-shadow: 0 0 10px rgba(255, 123, 159, .36); }
.tc-status b { color: #bfcee3; font-size: 10px; font-weight: 750; }
.tc-status span { overflow: hidden; color: #7588a7; font-size: 10px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.tc-mini-bars { padding: 10px 16px 16px; }
.tc-mini-row {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) minmax(64px, .55fr) 90px;
  align-items: center;
  gap: 10px;
  min-height: 32px;
}
.tc-mini-row b { overflow: hidden; color: #b7c6dc; font-size: 11px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.tc-mini-row span { color: #8396b6; font-size: 10px; text-align: right; }
.tc-mini-bar { height: 5px; overflow: hidden; border-radius: 9px; background: rgba(121, 155, 207, .13); }
.tc-mini-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #688df0, #72ddda); }

.tc-insight-list { padding: 6px 15px 13px; }
.tc-insight {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 45px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(126, 150, 189, .10);
}
.tc-insight:last-child { border-bottom: 0; }
.tc-insight-icon {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid rgba(114, 158, 230, .23);
  border-radius: 8px;
  color: var(--tc-cyan);
  background: rgba(65, 130, 220, .12);
  font-size: 13px;
}
.tc-insight b { display: block; color: #c4d1e4; font-size: 11px; }
.tc-insight p { margin: 3px 0 0; color: #7184a4; font-size: 10px; line-height: 1.4; }

.tc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 11px;
}
.tc-toolbar-left,
.tc-toolbar-right { display: flex; min-width: 0; align-items: center; gap: 8px; }
.tc-toolbar-right { justify-content: flex-end; }
.tc-toolbar label { color: #7e91b0; font-size: 10px; font-weight: 700; }
.tc-sales-search { width: min(330px, 45vw); padding-right: 11px; }
.tc-select-compact {
  min-height: 34px;
  max-width: 145px;
  padding: 0 7px;
  border: 1px solid rgba(129, 158, 205, .17);
  border-radius: 8px;
  color: #aebfd9;
  background: rgba(4, 11, 20, .5);
  font-size: 10px;
}
.tc-count { color: #7186a8; font-size: 10px; white-space: nowrap; }

.tc-table-card {
  overflow: hidden;
  border: 1px solid var(--tc-line);
  border-radius: 15px;
  background: var(--tc-panel);
}
.tc-mobile-records { display: none; }
.tc-table-wrap { overflow: auto; max-height: 558px; scrollbar-color: rgba(110, 149, 214, .38) transparent; }
.tc-table { width: 100%; min-width: 1010px; border-collapse: separate; border-spacing: 0; }
.tc-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(128, 158, 205, .17);
  color: #7186a5;
  background: #101e34;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .075em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.tc-table th[data-tc-sort] { cursor: pointer; }
.tc-table th[data-tc-sort]:hover { color: #c6d9f7; }
.tc-table td {
  max-width: 220px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(126, 150, 189, .10);
  color: #a8bad3;
  font-size: 11px;
  vertical-align: middle;
}
.tc-table tbody tr:last-child td { border-bottom: 0; }
.tc-table tbody tr:hover td { background: rgba(79, 133, 226, .075); color: #c8d9ee; }
.tc-table .tc-row-button { cursor: pointer; }
.tc-table .tc-row-button:hover td:first-child { color: var(--tc-cyan); }
.tc-primary { display: block; overflow: hidden; color: #cddbee; font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.tc-secondary { display: block; overflow: hidden; margin-top: 3px; color: #6e829f; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tc-mono { color: #9ab4e3; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 10px; }
.tc-amount { color: #a8ead1; font-weight: 750; white-space: nowrap; }
.tc-empty { padding: 31px 22px; color: #7285a2; font-size: 12px; text-align: center; }

.tc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 156px;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid rgba(135, 158, 195, .18);
  border-radius: 5px;
  color: #99acc8;
  background: rgba(131, 153, 189, .08);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: .03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tc-badge.is-paid,
.tc-badge.is-ok { border-color: rgba(78, 225, 167, .22); color: #8ce5bd; background: rgba(42, 160, 112, .12); }
.tc-badge.is-pending,
.tc-badge.is-warn { border-color: rgba(246, 199, 97, .22); color: #f2ca75; background: rgba(185, 126, 30, .10); }
.tc-badge.is-error { border-color: rgba(255, 123, 159, .22); color: #ffa2bb; background: rgba(180, 52, 89, .12); }
.tc-badge.is-off { border-color: rgba(134, 155, 191, .14); color: #778aa8; }

.tc-attribution-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 12px; }
.tc-attrib-intro { padding: 16px; }
.tc-attrib-intro h4 { margin: 0; color: #dceafd; font-size: 14px; }
.tc-attrib-intro p { max-width: 720px; margin: 6px 0 0; color: #7e91ae; font-size: 11px; line-height: 1.55; }
.tc-search-lg { position: relative; margin-top: 13px; }
.tc-search-lg::before { content: "⌕"; position: absolute; z-index: 1; top: 8px; left: 11px; color: #7892ba; font-size: 18px; line-height: 1; }
.tc-search-lg input { width: 100%; min-height: 40px; padding: 0 11px 0 34px; border: 1px solid rgba(128, 160, 210, .20); border-radius: 10px; outline: none; color: #d6e5f7; background: rgba(2, 9, 18, .38); font-size: 12px; }
.tc-search-lg input:focus { border-color: rgba(101, 178, 250, .75); box-shadow: 0 0 0 3px rgba(69, 136, 235, .12); }
.tc-attribution-results { max-height: 408px; overflow-y: auto; }
.tc-attrib-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 11px;
  width: 100%;
  padding: 12px 15px;
  border: 0;
  border-top: 1px solid rgba(126, 150, 189, .10);
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.tc-attrib-row:hover { background: rgba(76, 128, 221, .09); }
.tc-attrib-row strong { display: block; overflow: hidden; color: #c9d7eb; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tc-attrib-row span { display: block; overflow: hidden; margin-top: 3px; color: #7185a4; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tc-attrib-row em { align-self: center; color: #9edcc6; font-size: 11px; font-style: normal; font-weight: 750; white-space: nowrap; }

.tc-quality-ring {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 15px;
}
.tc-quality-ring-inner {
  display: grid;
  width: 128px;
  height: 128px;
  place-content: center;
  border-radius: 50%;
  color: #dce9fd;
  background: radial-gradient(circle at center, #0c1b30 56%, transparent 57%), conic-gradient(var(--tc-cyan) var(--tc-quality, 0%), rgba(95, 123, 164, .16) 0);
  text-align: center;
}
.tc-quality-ring-inner strong { font-size: 26px; letter-spacing: -.05em; }
.tc-quality-ring-inner span { margin-top: 1px; color: #8093b0; font-size: 9px; font-weight: 700; }
.tc-quality-caption { margin: -2px 0 13px; color: #8093b0; font-size: 10px; text-align: center; }

.tc-stack { display: grid; gap: 10px; }
.tc-connector-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--tc-line);
  border-radius: 13px;
  background: var(--tc-panel);
}
.tc-provider-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(120, 158, 225, .20);
  border-radius: 10px;
  color: #cae1ff;
  background: rgba(57, 111, 204, .16);
  font-size: 13px;
  font-weight: 850;
}
.tc-connector-card h4 { margin: 0; overflow: hidden; color: #d3e1f4; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tc-connector-card p { margin: 3px 0 0; overflow: hidden; color: #7286a6; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tc-action-link {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid rgba(129, 172, 241, .25);
  border-radius: 7px;
  color: #a6c8ff;
  background: rgba(75, 129, 225, .10);
  cursor: pointer;
  font-size: 10px;
  font-weight: 750;
}
.tc-action-link:hover { color: #e0ecff; border-color: rgba(153, 190, 246, .58); }

.tc-campaign-hierarchy { display: flex; align-items: center; gap: 5px; margin: 0 0 11px; color: #7185a4; font-size: 10px; }
.tc-campaign-hierarchy b { color: #9eb1cd; font-weight: 680; }
.tc-campaign-hierarchy i { color: #526985; font-style: normal; }
.tc-campaign-name { color: #c8d7ed; font-weight: 700; }
.tc-campaign-name:hover { color: var(--tc-cyan); }

.tc-pixel-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 12px; }
.tc-pixel-summary .tc-card { min-height: 82px; padding: 13px; }
.tc-pixel-summary span { color: #7487a4; font-size: 10px; }
.tc-pixel-summary strong { display: block; margin-top: 7px; color: #dce9fb; font-size: 19px; letter-spacing: -.04em; }
.tc-event-matrix { overflow: auto; }
.tc-event-matrix table { min-width: 690px; }
.tc-state-icon { color: #8195b3; font-weight: 800; }
.tc-state-icon.is-ok { color: var(--tc-green); }
.tc-state-icon.is-warn { color: var(--tc-amber); }

.tc-delivery-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--tc-line); border-radius: 14px; background: var(--tc-panel); }
.tc-delivery-kpi { min-height: 80px; padding: 13px 15px; border-right: 1px solid var(--tc-line); }
.tc-delivery-kpi:last-child { border: 0; }
.tc-delivery-kpi span { display: block; color: #7589a9; font-size: 10px; }
.tc-delivery-kpi strong { display: block; margin-top: 7px; color: #dbe8fa; font-size: 20px; letter-spacing: -.04em; }
.tc-delivery-kpi.is-attention strong { color: var(--tc-amber); }
.tc-attention-card { padding: 13px 15px; border: 1px solid rgba(246, 199, 97, .19); border-radius: 12px; background: rgba(127, 91, 24, .11); }
.tc-attention-card h4 { margin: 0; color: #f2cb75; font-size: 11px; }
.tc-attention-card p { margin: 5px 0 0; color: #b19b70; font-size: 10px; line-height: 1.5; }

.tc-integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tc-integration {
  position: relative;
  min-height: 156px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--tc-line);
  border-radius: 15px;
  background: var(--tc-panel);
}
.tc-integration::after { content: ""; position: absolute; right: -25px; bottom: -40px; width: 130px; height: 130px; border: 1px solid rgba(101, 159, 240, .10); border-radius: 50%; }
.tc-integration h4 { position: relative; z-index: 1; margin: 12px 0 5px; color: #d9e5f8; font-size: 13px; }
.tc-integration p { position: relative; z-index: 1; min-height: 29px; margin: 0; color: #7286a6; font-size: 10px; line-height: 1.45; }
.tc-integration .tc-badge { position: relative; z-index: 1; }
.tc-integration footer { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 8px; margin-top: 15px; color: #7185a4; font-size: 9px; }

.tc-quality-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.tc-quality-item { min-height: 102px; padding: 13px; border: 1px solid var(--tc-line); border-radius: 12px; background: var(--tc-panel); }
.tc-quality-item span { color: #7d91ae; font-size: 10px; line-height: 1.35; }
.tc-quality-item strong { display: block; margin-top: 10px; color: #dce9fa; font-size: 18px; letter-spacing: -.04em; }
.tc-quality-item small { display: block; margin-top: 3px; color: #667b9b; font-size: 9px; }
.tc-quality-item.is-good strong { color: var(--tc-green); }
.tc-quality-item.is-warn strong { color: var(--tc-amber); }

.tc-readiness-blocks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 13px 0;
}
.tc-readiness-block {
  min-height: 112px;
  padding: 13px;
  border: 1px solid rgba(126, 154, 202, .16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(29, 51, 84, .44), rgba(8, 19, 35, .64));
}
.tc-readiness-block header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-readiness-block header > span { color: #a9bdd9; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.tc-readiness-block p { margin: 10px 0 0; color: #7186a7; font-size: 10px; line-height: 1.45; }
.tc-readiness-block.is-good { border-color: rgba(78, 225, 167, .23); background: linear-gradient(145deg, rgba(21, 87, 70, .23), rgba(8, 28, 33, .66)); }
.tc-readiness-block.is-warn { border-color: rgba(246, 199, 97, .20); background: linear-gradient(145deg, rgba(105, 74, 19, .24), rgba(31, 27, 19, .64)); }
.tc-modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }

.tc-diagnostics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .82fr); gap: 12px; margin-top: 12px; }
.tc-diagnostic-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 45px; padding: 0 15px; border-bottom: 1px solid rgba(126, 150, 189, .10); }
.tc-diagnostic-row:last-child { border-bottom: 0; }
.tc-diagnostic-row i { width: 7px; height: 7px; border-radius: 50%; background: #7b8eab; }
.tc-diagnostic-row.is-warn i { background: var(--tc-amber); }
.tc-diagnostic-row.is-error i { background: var(--tc-rose); }
.tc-diagnostic-row b { overflow: hidden; color: #b8c8de; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tc-diagnostic-row span { color: #7d91b0; font-size: 10px; text-align: right; white-space: nowrap; }

.tc-finance-intro { margin-bottom: 13px; padding: 14px 16px; border: 1px solid rgba(101, 165, 238, .18); border-radius: 13px; color: #8fa5c5; background: linear-gradient(115deg, rgba(56, 111, 214, .15), rgba(7, 18, 33, .52)); font-size: 11px; line-height: 1.5; }
.tc-finance-intro b { color: #d9e9ff; }
.tracking-finance-slot { min-height: 260px; }
.tracking-finance-slot #page-roi { display: none; }
#page-tracking .tc-tab-panel.is-active .tracking-finance-slot #page-roi { display: block !important; padding: 0; }
#page-tracking .tracking-finance-slot #page-roi > .page-desc { display: none; }
#page-tracking .tracking-finance-slot #page-roi .roi-command-center { margin-top: 0; }

.tc-drawer-scrim {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  background: rgba(2, 7, 14, .74);
  backdrop-filter: none;
}
.tc-drawer-scrim.is-open { display: flex; }
.tc-drawer {
  width: min(610px, 100%);
  height: 100%;
  overflow: auto;
  border-left: 1px solid rgba(137, 174, 228, .24);
  background:
    radial-gradient(420px 220px at 80% 0%, rgba(53, 116, 219, .21), transparent 62%),
    #0a1526;
  box-shadow: -24px 0 60px rgba(0, 0, 0, .36);
  animation: tcDrawerIn .22s ease both;
}
@keyframes tcDrawerIn { from { transform: translateX(22px); opacity: .4; } to { transform: translateX(0); opacity: 1; } }
.tc-drawer-h { position: sticky; z-index: 3; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; min-height: 74px; padding: 17px 18px; border-bottom: 1px solid var(--tc-line); background: rgba(10, 21, 38, .98); backdrop-filter: none; }
.tc-drawer-h h3 { margin: 3px 0 0; color: #e6f0ff; font-size: 16px; }
.tc-drawer-h p { margin: 4px 0 0; color: #7d91b0; font-size: 10px; }
.tc-icon-btn { display: grid; flex: 0 0 31px; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(139, 166, 211, .20); border-radius: 8px; color: #afc4e4; background: rgba(69, 93, 133, .13); cursor: pointer; }
.tc-icon-btn:hover { color: #fff; background: rgba(90, 123, 179, .23); }
.tc-drawer-body { padding: 17px 18px 34px; }
.tc-detail-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.tc-detail-metric { min-height: 67px; padding: 10px; border: 1px solid var(--tc-line); border-radius: 10px; background: rgba(14, 28, 49, .72); }
.tc-detail-metric span { display: block; color: #7185a4; font-size: 9px; text-transform: uppercase; }
.tc-detail-metric b { display: block; overflow: hidden; margin-top: 7px; color: #dce8fb; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tc-detail-section { margin-top: 17px; }
.tc-detail-section h4 { margin: 0 0 8px; color: #8da9d1; font-size: 10px; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.tc-detail-list { overflow: hidden; border: 1px solid var(--tc-line); border-radius: 11px; }
.tc-detail-item { display: grid; grid-template-columns: minmax(100px, .55fr) minmax(0, 1.45fr); gap: 8px; padding: 9px 11px; border-bottom: 1px solid rgba(126, 150, 189, .10); }
.tc-detail-item:last-child { border-bottom: 0; }
.tc-detail-item span { color: #7387a6; font-size: 10px; }
.tc-detail-item b { overflow: hidden; color: #c4d2e6; font-size: 10px; font-weight: 650; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.tc-detail-item b.tc-mono { font-size: 9px; }
.tc-timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.tc-timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 5px; width: 1px; background: rgba(124, 158, 211, .22); }
.tc-timeline li { position: relative; padding: 0 0 13px 24px; }
.tc-timeline i { position: absolute; top: 3px; left: 0; width: 11px; height: 11px; border: 2px solid #536a8d; border-radius: 50%; background: #0a1526; }
.tc-timeline li.is-ok i { border-color: var(--tc-green); box-shadow: 0 0 9px rgba(78, 225, 167, .35); }
.tc-timeline li.is-warn i { border-color: var(--tc-amber); }
.tc-timeline b { display: block; color: #c9d8ec; font-size: 11px; }
.tc-timeline span { display: block; margin-top: 3px; color: #7488a7; font-size: 10px; line-height: 1.4; }

.tc-info-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(2, 7, 14, .76);
  backdrop-filter: none;
}
.tc-info-modal.is-open { display: grid; }
.tc-info-dialog { width: min(440px, 100%); padding: 21px; border: 1px solid rgba(130, 176, 244, .30); border-radius: 16px; color: #dce9fb; background: #0c192b; box-shadow: 0 22px 70px rgba(0,0,0,.45); }
.tc-info-dialog h3 { margin: 0; font-size: 16px; }
.tc-info-dialog p { margin: 8px 0 0; color: #8ea4c2; font-size: 12px; line-height: 1.55; }
.tc-info-dialog footer { display: flex; justify-content: flex-end; margin-top: 18px; }

@media (max-width: 1280px) {
  .tc-filterbar { grid-template-columns: minmax(250px, 1.35fr) repeat(2, minmax(145px, .8fr)); }
  .tc-filter-field:last-of-type { grid-column: 2 / span 1; }
  .tc-metric-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-metric { border-bottom: 1px solid var(--tc-line); }
  .tc-metric:nth-child(3),
  .tc-metric:nth-child(6) { border-right: 0; }
  .tc-integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-quality-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-readiness-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .tc-summary-grid,
  .tc-split-grid,
  .tc-bottom-grid,
  .tc-attribution-grid,
  .tc-diagnostics { grid-template-columns: 1fr; }
  .tc-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-period-filter { grid-column: 1 / -1; }
  .tc-filter-field:last-of-type { grid-column: auto; }
  .tc-hero { align-items: flex-start; flex-direction: column; min-height: 0; }
  .tc-hero-meta { width: 100%; justify-content: space-between; }
  .tc-pixel-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  #page-tracking { padding-bottom: 24px; }
  .tc-hero { padding: 19px 17px 17px; border-radius: 15px; }
  .tc-hero h2 { font-size: 25px; }
  .tc-hero p { font-size: 11px; }
  .tc-filterbar { grid-template-columns: 1fr 1fr; gap: 8px; padding: 8px; border-radius: 12px; }
  .tc-filter-label { margin-left: 1px; font-size: 8px; }
  .tc-filter-field select { padding-left: 8px; font-size: 10px; }
  .tc-date-pill { padding: 0 9px; font-size: 10px; }
  .tc-custom-date { grid-template-columns: 1fr 1fr; }
  .tc-apply-date { grid-column: 1 / -1; }
  .tc-tabs-wrap { top: -1px; margin-top: 10px; margin-bottom: 13px; }
  .tc-tabs { border-radius: 10px; }
  .tc-tab { min-height: 32px; padding: 0 9px; font-size: 10px; }
  .tc-tab svg { display: none; }
  .tc-panel-heading { margin-bottom: 10px; }
  .tc-panel-heading h3 { font-size: 15px; }
  .tc-panel-heading p { max-width: 260px; font-size: 10px; }
  .tc-data-note { display: none; }
  .tc-metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 13px; }
  .tc-metric { min-height: 91px; padding: 13px 12px 11px; border-bottom: 1px solid var(--tc-line); }
  .tc-metric:first-child { grid-column: 1 / -1; min-height: 98px; }
  .tc-metric:nth-child(2n) { border-right: 0; }
  .tc-metric strong { font-size: 19px; }
  .tc-metric.is-wait strong { font-size: 13px; }
  .tc-card { border-radius: 13px; }
  .tc-card-h { min-height: 48px; padding: 0 13px; }
  .tc-funnel { padding: 7px 12px 10px; }
  .tc-funnel-row { grid-template-columns: 112px minmax(52px, 1fr) 40px 42px; gap: 7px; min-height: 34px; }
  .tc-funnel-label { font-size: 9px; }
  .tc-funnel-value, .tc-funnel-rate { font-size: 9px; }
  .tc-status-list { padding: 3px 12px 8px; }
  .tc-status { grid-template-columns: 8px minmax(78px, .65fr) minmax(0, 1.35fr); min-height: 34px; gap: 7px; }
  .tc-status b, .tc-status span { font-size: 9px; }
  .tc-toolbar { align-items: stretch; flex-direction: column; }
  .tc-toolbar-left, .tc-toolbar-right { width: 100%; }
  .tc-toolbar-right { justify-content: space-between; }
  .tc-sales-search { width: 100%; }
  .tc-select-compact { flex: 1; max-width: none; }
  .tc-table-wrap { margin: 0 -1px; max-height: 500px; }
  .tc-mobile-card-host .tc-table-wrap { display: none; }
  .tc-mobile-records {
    display: grid;
    gap: 8px;
    max-height: 600px;
    overflow: auto;
    padding: 8px;
    scrollbar-color: rgba(110, 149, 214, .38) transparent;
  }
  .tc-mobile-record {
    display: block;
    width: 100%;
    padding: 11px;
    border: 1px solid rgba(129, 160, 211, .16);
    border-radius: 11px;
    color: inherit;
    background: rgba(8, 18, 34, .74);
    cursor: pointer;
    text-align: left;
  }
  .tc-mobile-record:focus-visible { outline: 2px solid var(--tc-cyan); outline-offset: 2px; }
  .tc-mobile-record header,
  .tc-mobile-record footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  .tc-mobile-record header .tc-mono { overflow: hidden; color: #a8bddb; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .tc-mobile-record strong { display: block; overflow: hidden; margin-top: 8px; color: #d8e6fa; font-size: 12px; font-weight: 730; text-overflow: ellipsis; white-space: nowrap; }
  .tc-mobile-record p { overflow: hidden; margin: 4px 0 0; color: #8397b6; font-size: 10px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
  .tc-mobile-record p i { padding: 0 2px; color: #5875a1; font-style: normal; }
  .tc-mobile-record footer { overflow: hidden; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(129, 160, 211, .10); color: #7190bc; font-size: 9px; }
  .tc-mobile-record footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tc-mobile-record footer span:last-child { flex: 0 1 auto; color: #8ca6ca; text-align: right; }
  .tc-attrib-intro { padding: 13px; }
  .tc-attribution-results { max-height: 350px; }
  .tc-connector-card { min-height: 68px; padding: 11px; }
  .tc-action-link { padding: 0 7px; font-size: 9px; }
  .tc-pixel-summary { gap: 7px; }
  .tc-pixel-summary .tc-card { min-height: 72px; padding: 10px; }
  .tc-pixel-summary strong { margin-top: 5px; font-size: 16px; }
  .tc-delivery-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-delivery-kpi { min-height: 70px; padding: 10px; border-bottom: 1px solid var(--tc-line); }
  .tc-delivery-kpi:nth-child(2n) { border-right: 0; }
  .tc-integration-grid { grid-template-columns: 1fr; gap: 8px; }
  .tc-integration { min-height: 136px; }
  .tc-quality-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .tc-quality-item { min-height: 90px; padding: 11px; }
  .tc-quality-item:last-child { grid-column: 1 / -1; }
  .tc-readiness-blocks { grid-template-columns: 1fr; gap: 7px; }
  .tc-readiness-block { min-height: 0; }
  .tc-drawer { width: 100%; height: min(85vh, 790px); align-self: flex-end; border-top: 1px solid rgba(137, 174, 228, .24); border-left: 0; border-radius: 19px 19px 0 0; animation: tcSheetIn .22s ease both; }
  @keyframes tcSheetIn { from { transform: translateY(20px); opacity: .4; } to { transform: translateY(0); opacity: 1; } }
  .tc-drawer-h { min-height: 66px; padding: 14px 15px; }
  .tc-drawer-body { padding: 14px 15px 29px; }
  .tc-detail-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .tc-detail-metric { min-width: 0; padding: 9px 7px; }
  .tc-detail-metric b { font-size: 10px; }
  .tc-detail-item { grid-template-columns: minmax(80px, .7fr) minmax(0, 1.3fr); }
  #page-tracking .tracking-finance-slot #page-roi .roi-command-center { border-radius: 13px; }
}

@media (max-width: 390px) {
  .tc-filterbar { grid-template-columns: 1fr; }
  .tc-filter-field { grid-column: auto !important; }
  .tc-hero-meta { align-items: stretch; flex-direction: column; }
  .tc-live, .tc-refresh { justify-content: center; }
  .tc-metric small { font-size: 9px; }
  .tc-funnel-row { grid-template-columns: 94px minmax(34px, 1fr) 34px 36px; gap: 5px; }
  .tc-funnel-note { padding: 8px 12px 0; }
  .tc-quality-grid { grid-template-columns: 1fr; }
  .tc-quality-item:last-child { grid-column: auto; }
  .tc-readiness-blocks { grid-template-columns: 1fr; }
  .tc-detail-metrics { grid-template-columns: 1fr 1fr; }
  .tc-detail-metric:last-child { grid-column: 1 / -1; }
}

/* Tracking V2: blocos locais de mídia, ROI e links. */
#page-tracking textarea { font: inherit; }
.tc-v2-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 11px 13px;
  border: 1px solid rgba(78, 225, 167, .20);
  border-radius: 12px;
  color: #a7d9c9;
  background: linear-gradient(100deg, rgba(29, 123, 99, .16), rgba(7, 18, 33, .62));
  font-size: 10px;
  line-height: 1.45;
}
.tc-v2-banner b { flex: 0 0 auto; color: #bff2df; }
.tc-v2-banner .tc-action-link { margin-left: auto; }
.tc-v2-banner.is-wait { border-color: rgba(246, 199, 97, .23); color: #c9b27c; background: linear-gradient(100deg, rgba(119, 88, 29, .16), rgba(7, 18, 33, .62)); }
.tc-v2-three-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.tc-ranked-list { padding: 6px 13px 12px; }
.tc-ranked-list > div { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 52px; border-bottom: 1px solid rgba(126, 150, 189, .10); }
.tc-ranked-list > div:last-child { border-bottom: 0; }
.tc-ranked-list i { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; color: #9ac1f8; background: rgba(82, 139, 235, .14); font-size: 9px; font-style: normal; font-weight: 800; }
.tc-ranked-list span { min-width: 0; }
.tc-ranked-list b, .tc-ranked-list small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-ranked-list b { color: #c8d8ee; font-size: 11px; }
.tc-ranked-list small { margin-top: 3px; color: #7185a4; font-size: 9px; }
.tc-ranked-list strong { color: #a9e3d1; font-size: 11px; white-space: nowrap; }
.tc-compare-chart { display: flex; align-items: flex-end; justify-content: space-between; gap: 7px; min-height: 184px; padding: 17px 15px 10px; }
.tc-compare-day { display: grid; min-width: 0; flex: 1; justify-items: center; gap: 8px; }
.tc-compare-day > span { color: #6f86a8; font-size: 9px; }
.tc-compare-bars { display: flex; align-items: flex-end; justify-content: center; gap: 3px; width: 100%; height: 142px; }
.tc-compare-bars i, .tc-compare-bars b { display: block; width: min(16px, 35%); min-height: 3px; border-radius: 4px 4px 1px 1px; }
.tc-compare-bars i { background: linear-gradient(180deg, #70e9dc, #318fbc); box-shadow: 0 3px 13px rgba(76, 218, 209, .16); }
.tc-compare-bars b { background: linear-gradient(180deg, #94baff, #4a69c4); box-shadow: 0 3px 13px rgba(85, 126, 234, .15); }
.tc-compare-missing { height: 20px; color: #7184a3; font-size: 13px; font-style: normal; }
.tc-chart-legend { display: flex; gap: 13px; padding: 0 15px 15px; color: #8294b0; font-size: 9px; }
.tc-chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tc-chart-legend i, .tc-chart-legend b { width: 8px; height: 8px; border-radius: 3px; background: #55d8d2; }
.tc-chart-legend b { background: #759ef1; }

.tc-account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 15px 16px;
  border: 1px solid rgba(115, 155, 222, .22);
  border-radius: 14px;
  background: radial-gradient(300px 110px at 90% 0%, rgba(65, 120, 228, .18), transparent 80%), var(--tc-panel);
}
.tc-account-hero > div:first-child { display: flex; align-items: center; min-width: 0; gap: 11px; }
.tc-account-hero h4 { margin: 0; color: #dce9fc; font-size: 13px; }
.tc-account-hero p { margin: 4px 0 0; color: #8295b4; font-size: 10px; line-height: 1.45; }
.tc-account-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.tc-v2-architecture {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px dashed rgba(121, 169, 255, .27);
  border-radius: 11px;
  color: #7f96b8;
  background: rgba(13, 28, 50, .42);
  font-size: 10px;
  line-height: 1.5;
}
.tc-v2-architecture b { flex: 0 0 auto; color: #a8c8f4; }
.tc-inline-demo { display: inline-block; margin-left: 4px; padding: 1px 4px; border-radius: 4px; color: #82ead0; background: rgba(64, 209, 164, .13); font-size: 8px; font-weight: 800; letter-spacing: .06em; vertical-align: 1px; }
.tc-row-demo { background: rgba(42, 128, 102, .08) !important; }
.tc-row-demo:hover { background: rgba(42, 128, 102, .16) !important; }
.tc-drawer-demo { margin: 0 0 15px; padding: 10px 12px; border: 1px solid rgba(78, 225, 167, .24); border-radius: 10px; color: #a9e3d1; background: rgba(33, 123, 97, .13); font-size: 10px; font-weight: 700; line-height: 1.5; }

.tc-link-workbench { display: grid; grid-template-columns: minmax(400px, .95fr) minmax(380px, 1.05fr); gap: 12px; }
.tc-link-form { display: grid; gap: 12px; padding: 14px; }
.tc-link-form label, .tc-manual-adjustment label { display: grid; gap: 6px; color: #8698b5; font-size: 9px; font-weight: 750; letter-spacing: .03em; text-transform: uppercase; }
.tc-link-form textarea, .tc-link-form input, .tc-link-form select, .tc-manual-adjustment input, .tc-manual-adjustment select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px;
  outline: none;
  border: 1px solid rgba(128, 160, 210, .20);
  border-radius: 8px;
  color: #d6e5f7;
  background: rgba(2, 9, 18, .38);
  font-size: 11px;
  letter-spacing: normal;
  text-transform: none;
}
.tc-link-form textarea { min-height: 84px; padding: 9px 10px; resize: vertical; line-height: 1.45; }
.tc-link-form textarea:focus, .tc-link-form input:focus, .tc-link-form select:focus, .tc-manual-adjustment input:focus, .tc-manual-adjustment select:focus { border-color: rgba(101, 178, 250, .75); box-shadow: 0 0 0 3px rgba(69, 136, 235, .12); }
.tc-link-form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tc-link-param-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #c4d5eb; font-size: 10px; }
.tc-link-param-header span { color: #7185a4; font-size: 9px; }
.tc-link-params { display: grid; gap: 7px; }
.tc-link-params label { display: grid; grid-template-columns: minmax(110px, .7fr) minmax(0, 1.3fr); gap: 7px; }
.tc-link-conflict { max-width: 320px; }
.tc-link-preview-card { display: flex; min-height: 100%; flex-direction: column; }
.tc-link-preview { display: grid; gap: 9px; padding: 15px; }
.tc-link-preview > div { padding: 11px; overflow: hidden; border: 1px solid rgba(126, 160, 211, .14); border-radius: 10px; background: rgba(3, 11, 21, .34); }
.tc-link-preview > i { width: 21px; height: 21px; margin: -3px auto; border: 1px solid rgba(116, 158, 223, .20); border-radius: 50%; color: #8db8ec; background: #0b192c; font-size: 13px; font-style: normal; font-weight: 700; line-height: 19px; text-align: center; }
.tc-link-preview span { display: block; margin-bottom: 6px; color: #7188aa; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.tc-link-preview code, .tc-link-preview .tc-link-final > div { display: block; overflow-wrap: anywhere; color: #adc4e2; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.55; white-space: pre-wrap; }
.tc-link-preview mark { padding: 1px 2px; border-radius: 3px; color: #bdf8ed; background: rgba(69, 220, 203, .20); }
.tc-link-preview small { display: block; margin-top: 6px; color: #d9b76d; font-family: inherit; font-size: 9px; }
.tc-link-placeholder { color: #6f839f; }
.tc-link-notice { min-height: 34px; margin: auto 15px 10px; color: #899cb8; font-size: 10px; line-height: 1.5; }
.tc-link-notice .is-ok { color: #8ee5c5; }
.tc-link-notice .is-warn { color: #e7c06d; }
.tc-link-preview-card footer { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 15px 15px; }
.tc-link-history { margin-top: 12px; }
.tc-url-cell { max-width: 250px; overflow: hidden; color: #9ebbe0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

/* Histórico de links: previews não expandem a tabela nem sobrepõem conteúdo.
   O valor completo só aparece no drawer explícito. */
.tc-link-history .tc-table { min-width: 1240px; table-layout: fixed; }
.tc-link-history .tc-table th:nth-child(1) { width: 128px; }
.tc-link-history .tc-table th:nth-child(2) { width: 130px; }
.tc-link-history .tc-table th:nth-child(3) { width: 92px; }
.tc-link-history .tc-table th:nth-child(4),
.tc-link-history .tc-table th:nth-child(5),
.tc-link-history .tc-table th:nth-child(6) { width: minmax(190px, 1fr); }
.tc-link-history .tc-table th:nth-child(7) { width: 142px; }
.tc-link-history .tc-table td { min-width: 0; overflow: hidden; }
.tc-url-cell { display: block; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-link-actions { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tc-table-action { min-width: 0; padding: 6px 8px; border: 1px solid rgba(118, 160, 220, .25); border-radius: 7px; color: #b9d7fb; background: rgba(56, 104, 167, .14); font-size: 10px; font-weight: 780; cursor: pointer; }
.tc-table-action:hover:not(:disabled) { color: #fff; border-color: rgba(122, 190, 255, .55); background: rgba(61, 126, 210, .27); }
.tc-table-action:disabled { opacity: .38; cursor: not-allowed; }
.tc-link-drawer-note { margin-bottom: 14px; padding: 10px 11px; border: 1px solid rgba(83, 151, 239, .22); border-radius: 10px; color: #9ec0ea; background: rgba(43, 93, 158, .12); font-size: 10px; line-height: 1.55; }
.tc-link-detail { min-width: 0; margin-top: 14px; border: 1px solid var(--tc-line); border-radius: 11px; overflow: hidden; }
.tc-link-detail header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-bottom: 1px solid var(--tc-line); background: rgba(20, 41, 71, .52); }
.tc-link-detail header span { color: #8da9d1; font-size: 9px; font-weight: 820; letter-spacing: .08em; }
.tc-link-detail pre { min-width: 0; max-width: 100%; margin: 0; padding: 11px; overflow: auto; color: #c4d8f1; font: 10px/1.58 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.tc-page-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 12px; border-top: 1px solid var(--tc-line); color: #8096b7; font-size: 10px; }
.tc-page-controls > div { display: flex; gap: 6px; }

/* Diagnóstico de paridade e prontidão */
.tc-readiness-card, .tc-parity-card { margin-bottom: 12px; }
.tc-readiness-summary { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--tc-line); }
.tc-readiness-summary > b { color: #c1f5dc; font-size: 18px; letter-spacing: .04em; }
.tc-readiness-summary p { min-width: 0; margin: 0; color: #8da4c1; font-size: 10px; line-height: 1.55; }
.tc-readiness-summary > span { grid-column: 1 / -1; color: #a2bad8; font-size: 10px; }
.tc-readiness-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--tc-line); }
.tc-readiness-grid > div { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 10px; background: #0c1a2e; }
.tc-readiness-grid i { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: #687d9c; }
.tc-readiness-grid .is-good i { background: #4ee1a7; box-shadow: 0 0 9px rgba(78,225,167,.55); }
.tc-readiness-grid .is-warn i { background: #e7c06d; }
.tc-readiness-grid .is-error i { background: #ef7482; }
.tc-readiness-grid span { min-width: 0; overflow: hidden; color: #b6c9e0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tc-readiness-grid .tc-badge { margin-left: auto; font-size: 8px; }
.tc-parity-list { display: grid; }
.tc-parity-row { display: grid; grid-template-columns: minmax(180px, 1.5fr) minmax(70px, .45fr) minmax(70px, .45fr) auto; align-items: center; gap: 8px; min-width: 0; padding: 10px 13px; border-bottom: 1px solid rgba(128, 158, 204, .1); }
.tc-parity-row > div, .tc-parity-row span { min-width: 0; }
.tc-parity-row b { display: block; color: #c9dbf1; font-size: 11px; }
.tc-parity-row small { display: block; overflow: hidden; margin-top: 3px; color: #7890b1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tc-parity-row span { color: #849bb9; font-size: 10px; white-space: nowrap; }
.tc-parity-row strong { color: #d9e8fa; }
.tc-parity-note { margin: 0; padding: 10px 13px; color: #899eb9; font-size: 10px; line-height: 1.55; }
.tc-parity-stores { min-width: 980px; }
.tc-deploy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--tc-line); }
.tc-deploy-grid > div { min-width: 0; padding: 10px 12px; background: #0c1a2e; }
.tc-deploy-grid span, .tc-deploy-grid b { display: block; min-width: 0; }
.tc-deploy-grid span { margin-bottom: 5px; color: #7c93b2; font-size: 9px; text-transform: uppercase; }
.tc-deploy-grid b { overflow: hidden; color: #c5d7ee; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tc-matrix { min-width: 1080px; }
.tc-info-dialog #tc-info-text { white-space: normal; }
.tc-modal-status, .tc-modal-copy, .tc-modal-steps { display: block; }
.tc-modal-status { width: fit-content; margin-bottom: 10px; padding: 4px 7px; border: 1px solid rgba(231,192,109,.35); border-radius: 5px; color: #f0cb7b; background: rgba(203,144,42,.13); font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.tc-modal-copy, .tc-modal-steps { color: #9cb3cf; font-size: 11px; line-height: 1.58; }
.tc-modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 13px 0; }
.tc-modal-grid b { display: flex; justify-content: space-between; gap: 7px; padding: 8px; border: 1px solid var(--tc-line); border-radius: 8px; color: #a9bdd5; font-size: 10px; }
.tc-modal-grid em { color: #e7c06d; font-size: 9px; font-style: normal; }

.tc-finance-auto { overflow: hidden; margin-bottom: 12px; border: 1px solid rgba(78, 225, 167, .23); border-radius: 15px; background: radial-gradient(480px 170px at 98% 0%, rgba(36, 151, 122, .17), transparent 70%), var(--tc-panel); }
.tc-finance-auto.is-wait { border-color: rgba(246, 199, 97, .22); background: radial-gradient(480px 170px at 98% 0%, rgba(158, 116, 34, .14), transparent 70%), var(--tc-panel); }
.tc-finance-auto > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 17px 13px; }
.tc-finance-auto > header b { color: #6fe5c5; font-size: 9px; letter-spacing: .11em; }
.tc-finance-auto.is-wait > header b { color: #f0c969; }
.tc-finance-auto h4 { margin: 5px 0 0; color: #e0ecfd; font-size: 14px; }
.tc-finance-auto p { max-width: 690px; margin: 4px 0 0; color: #8095b6; font-size: 10px; line-height: 1.5; }
.tc-finance-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--tc-line); }
.tc-finance-kpis article { min-height: 83px; padding: 13px 14px; border-right: 1px solid var(--tc-line); }
.tc-finance-kpis article:last-child { border-right: 0; }
.tc-finance-kpis span { color: #7790b0; font-size: 9px; text-transform: uppercase; }
.tc-finance-kpis strong { display: block; overflow: hidden; margin-top: 8px; color: #dce9fa; font-size: 17px; letter-spacing: -.04em; text-overflow: ellipsis; white-space: nowrap; }
.tc-finance-breakdown { display: grid; grid-template-columns: minmax(0, .8fr) minmax(380px, 1.2fr); gap: 12px; margin-top: 12px; }
.tc-manual-adjustment { padding: 15px 16px; border: 1px solid rgba(126, 160, 211, .17); border-radius: 13px; background: rgba(12, 25, 43, .72); }
.tc-manual-adjustment summary { display: flex; align-items: center; justify-content: space-between; color: #c5d6ed; cursor: pointer; font-size: 11px; font-weight: 750; }
.tc-manual-adjustment summary span { color: #8397b5; font-size: 9px; font-weight: 650; }
.tc-manual-adjustment p { margin: 10px 0 12px; color: #8195b3; font-size: 10px; line-height: 1.5; }
.tc-manual-adjustment > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tc-manual-adjustment .tc-action-link { margin-top: 10px; }
.tc-manual-history { margin-top: 12px; }

@media (max-width: 1120px) {
  .tc-v2-three-grid { grid-template-columns: 1fr 1fr; }
  .tc-link-workbench, .tc-finance-breakdown { grid-template-columns: 1fr; }
  .tc-finance-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tc-finance-kpis article:nth-child(3) { border-right: 0; }
  .tc-finance-kpis article:nth-child(-n+3) { border-bottom: 1px solid var(--tc-line); }
}
@media (max-width: 700px) {
  .tc-v2-banner, .tc-account-hero, .tc-finance-auto > header { align-items: flex-start; flex-direction: column; }
  .tc-v2-banner .tc-action-link { margin-left: 0; }
  .tc-account-actions { width: 100%; justify-content: space-between; }
  .tc-v2-three-grid { grid-template-columns: 1fr; gap: 8px; }
  .tc-link-workbench { grid-template-columns: 1fr; }
  .tc-link-form-row { grid-template-columns: 1fr; }
  .tc-link-params label { grid-template-columns: 1fr; }
  .tc-link-form textarea { min-height: 105px; }
  .tc-link-preview { padding: 12px; }
  .tc-finance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-finance-kpis article { min-height: 74px; border-bottom: 1px solid var(--tc-line); }
  .tc-finance-kpis article:nth-child(2n) { border-right: 0; }
  .tc-finance-kpis article:nth-last-child(-n+2) { border-bottom: 0; }
  .tc-finance-breakdown { grid-template-columns: 1fr; }
  .tc-manual-adjustment > div { grid-template-columns: 1fr; }
  .tc-v2-architecture { align-items: flex-start; flex-direction: column; }
}
