/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  color-scheme: light;
  --bg: #f6f2e8;
  --bg-soft: #efe7d8;
  --bg-warm: var(--bg-soft);
  --panel: #fffdf8;
  --panel-2: #f4ebdd;
  --panel-soft: var(--panel-2);
  --panel-blue: #e8f0ec;
  --line: #d7c9b2;
  --line-soft: #e9decb;
  --text: #1e2a2f;
  --text-muted: #5f6b6f;
  --primary: #2f6b45;
  --primary-2: #4e8b63;
  --accent: #b8892d;
  --accent-2: #d4b06a;
  --success: #3e7c59;
  --danger: #b5543a;
  --info: #2c6a7a;
  --black: #1e2a2f;
  --shadow: 0 10px 24px rgba(30, 42, 47, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    linear-gradient(90deg, var(--panel) 0%, var(--panel) 66%, rgba(239, 231, 216, 0.92) 100%),
    var(--bg);
  color: var(--text);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.tg-shell {
  min-height: 100vh;
}

.tg-auth-page {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(8, 13, 12, 0.9), rgba(30, 42, 47, 0.54), rgba(8, 13, 12, 0.88)),
    linear-gradient(180deg, rgba(47, 107, 69, 0.18), rgba(184, 137, 45, 0.12)),
    url("/images/auth/horse-racing-auth-bg.png") center / cover no-repeat;
  display: grid;
  min-height: 100svh;
  padding: 28px 14px;
}

.tg-auth-stage {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  margin: 0 auto;
  max-width: 480px;
  width: min(100%, 480px);
}

.tg-auth-back {
  color: #fff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 7px;
  text-transform: uppercase;
  width: -moz-fit-content;
  width: fit-content;
}

.tg-auth-back::before {
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  content: "";
  height: 9px;
  margin-top: 2px;
  transform: rotate(45deg);
  width: 9px;
}

.tg-auth-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  overflow: hidden;
  padding: 28px 26px 24px;
}

.tg-auth-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  text-transform: uppercase;
}

.tg-auth-brand > span {
  align-items: center;
  background: var(--black);
  border-radius: 6px;
  color: var(--accent-2);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
}

.tg-auth-brand > span::after {
  background: var(--primary);
  bottom: 4px;
  content: "";
  height: 3px;
  left: 5px;
  position: absolute;
  width: 24px;
}

.tg-auth-brand strong {
  color: #000;
  font-size: 1.7rem;
  font-weight: 950;
  line-height: 1;
}

.tg-auth-tabs {
  border-bottom: 2px solid var(--black);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 -2px;
}

.tg-auth-tabs a {
  border: 2px solid transparent;
  border-bottom: 0;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 850;
  min-height: 40px;
  padding: 11px 8px;
  text-align: center;
}

.tg-auth-tabs a.is-active {
  border-color: var(--primary-2);
  box-shadow: inset 0 -3px 0 var(--primary-2);
}

.tg-auth-intro {
  color: var(--text);
  line-height: 1.42;
  margin: 0;
  text-align: center;
}

.tg-auth-form,
.tg-auth-field {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.tg-auth-form {
  gap: 16px;
}

.tg-auth-field label {
  color: var(--text);
  font-size: 0.82rem;
}

.tg-auth-field input {
  background: #fff;
  border: 1px solid #9d9b92;
  border-radius: 3px;
  color: var(--text);
  min-height: 42px;
  padding: 0 10px;
  width: 100%;
}

.tg-auth-password {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
}

.tg-auth-password input {
  border-radius: 3px 0 0 3px;
  border-right: 0;
}

.tg-auth-password button {
  align-items: center;
  background: #fff;
  border: 1px solid #9d9b92;
  border-radius: 0 3px 3px 0;
  display: flex;
  justify-content: center;
}

.tg-auth-password svg {
  fill: none;
  height: 20px;
  stroke: var(--black);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.tg-auth-forgot {
  color: var(--danger);
  font-size: 0.84rem;
  text-decoration: underline;
  width: -moz-fit-content;
  width: fit-content;
}

.tg-auth-check {
  align-items: flex-start;
  color: var(--text);
  display: grid;
  font-size: 0.82rem;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 22px minmax(0, 1fr);
  line-height: 1.35;
}

.tg-auth-check input {
  height: 20px;
  margin: 0;
  width: 20px;
}

.tg-auth-submit {
  align-items: center;
  background: var(--danger);
  border-radius: 4px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  text-transform: uppercase;
}

.tg-auth-submit:hover {
  background: #984630;
}

.tg-masthead {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 9px rgba(0, 0, 0, 0.08);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 20;
}

.tg-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
}

.tg-topbar-inner {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 34px;
  overflow: hidden;
  padding: 0 12px;
}

.tg-topbar-inner > span {
  color: var(--primary);
  flex: 0 0 auto;
  font-weight: 900;
  margin-right: auto;
  white-space: nowrap;
}

.tg-top-menu {
  display: none;
  gap: 18px;
  overflow-x: auto;
}

.tg-top-menu a {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  gap: 5px;
  position: relative;
  transition: color 140ms ease;
  white-space: nowrap;
}

.tg-top-menu svg {
  fill: none;
  height: 14px;
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.tg-top-menu a::after {
  background: var(--primary);
  bottom: -10px;
  content: "";
  height: 2px;
  left: 0;
  opacity: 0;
  position: absolute;
  transform: scaleX(0.3);
  transform-origin: left;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  width: 100%;
}

.tg-top-menu a:hover {
  color: var(--primary);
}

.tg-top-menu a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.tg-masthead-top {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 9px 12px 8px;
}

.tg-masthead-tools {
  align-items: center;
  display: none;
  flex: 1 1 auto;
  gap: 14px;
  justify-content: flex-end;
  min-width: 0;
}

.tg-logo {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.tg-logo-mark {
  align-items: center;
  background: var(--black);
  border-radius: 6px;
  color: var(--accent-2);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 34px;
}

.tg-logo-mark::after {
  background: var(--primary);
  bottom: 4px;
  content: "";
  height: 3px;
  left: 5px;
  position: absolute;
  width: 24px;
}

.tg-logo-mark span {
  position: relative;
  z-index: 1;
}

.tg-logo-copy {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.tg-logo-copy strong {
  color: #000;
  font-size: 1.48rem;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.tg-logo small {
  color: var(--text-muted);
  font-size: 0.66rem;
  font-weight: 700;
}

.tg-site-search {
  display: none;
}

.tg-site-search input {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 4px 0 0 4px;
  color: var(--text);
  font-size: 0.88rem;
  min-height: 32px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

.tg-site-search button {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 4px 4px 0;
  color: var(--text);
  display: grid;
  min-width: 42px;
  padding: 0;
  place-items: center;
  position: relative;
  transition:
    background 140ms ease,
    border-color 140ms ease;
}

.tg-site-search button svg {
  fill: none;
  height: 20px;
  stroke: var(--black);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 20px;
}

.tg-site-search:focus-within input,
.tg-site-search:focus-within button {
  background: #fff;
  border-color: #bfbfbf;
}

.tg-site-search button:hover {
  background: #fff;
}

.tg-account-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.tg-account-actions a,
.tg-pro-button,
.tg-feed-head a,
.tg-race-card a,
.tg-model-card a,
.tg-pro-panel a,
.tg-plan a {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  transition:
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
  white-space: nowrap;
}

.tg-account-actions svg {
  fill: none;
  height: 16px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 16px;
}

.tg-account-actions a {
  border: 1px solid transparent;
  color: var(--text-muted);
}

.tg-account-actions .tg-free-bets-button {
  background: #00826c;
  color: #fff;
}

.tg-pro-button,
.tg-account-actions .tg-pro-button,
.tg-feed-head a,
.tg-race-card a,
.tg-model-card a,
.tg-pro-panel a,
.tg-plan a {
  background: var(--primary);
  color: #fff;
}

.tg-account-actions .tg-pro-button {
  background: var(--danger);
}

.tg-account-actions a:hover,
.tg-pro-button:hover,
.tg-feed-head a:hover,
.tg-race-card a:hover,
.tg-model-card a:hover,
.tg-pro-panel a:hover,
.tg-plan a:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.tg-account-actions .tg-free-bets-button:hover {
  background: #006f5c;
}

.tg-pro-button:hover,
.tg-account-actions .tg-pro-button:hover,
.tg-feed-head a:hover,
.tg-race-card a:hover,
.tg-model-card a:hover,
.tg-pro-panel a:hover,
.tg-plan a:hover {
  background: #285a3a;
}

.tg-account-actions .tg-pro-button:hover {
  background: #984630;
}

.tg-primary-nav {
  display: none;
  gap: 22px;
  margin: 0 auto;
  max-width: 1240px;
  overflow-x: auto;
  padding: 0 12px 14px;
}

.tg-primary-nav a {
  background: transparent;
  border-radius: 0;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 500;
  padding: 0;
  position: relative;
  transition: color 140ms ease;
  white-space: nowrap;
}

.tg-primary-nav a::after {
  background: var(--primary);
  bottom: -7px;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  transform: scaleX(0.2);
  transform-origin: left;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
  width: 100%;
}

.tg-primary-nav a:hover {
  color: var(--primary);
}

.tg-primary-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.tg-mobile-menu {
  margin-left: auto;
  position: relative;
}

.tg-mobile-menu summary {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  gap: 7px;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.tg-mobile-menu summary::-webkit-details-marker {
  display: none;
}

.tg-mobile-menu[open] summary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tg-mobile-menu-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 18px 40px rgba(30, 42, 47, 0.2);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(88vw, 360px);
  z-index: 30;
}

.tg-mobile-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
}

.tg-mobile-search input,
.tg-mobile-search button {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  min-height: 44px;
}

.tg-mobile-search input {
  border-radius: 5px 0 0 5px;
  min-width: 0;
  padding: 0 10px;
}

.tg-mobile-search button {
  align-items: center;
  border-left: 0;
  border-radius: 0 5px 5px 0;
  display: flex;
  justify-content: center;
}

.tg-mobile-search svg,
.tg-mobile-account-menu svg,
.tg-mobile-menu-actions svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 17px;
}

.tg-mobile-menu-panel nav {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.tg-mobile-menu-panel nav a {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  font-weight: 800;
  gap: 8px;
  min-height: 44px;
  padding: 0 8px;
}

.tg-mobile-account-menu {
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

.tg-mobile-account-menu a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.tg-mobile-menu-actions {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-mobile-menu-actions a {
  align-items: center;
  border-radius: 5px;
  color: #fff;
  display: flex;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  text-align: center;
}

.tg-mobile-menu-actions .tg-free-bets-button {
  background: #00826c;
}

.tg-mobile-menu-actions .tg-pro-button {
  background: var(--danger);
}

.tg-mobile-bottom-nav {
  align-items: stretch;
  background: var(--panel);
  border-top: 1px solid var(--line);
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  left: 0;
  padding: 4px 4px max(4px, env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  z-index: 25;
}

.tg-mobile-bottom-nav a {
  align-items: center;
  color: var(--text-muted);
  display: flex;
  font-size: 0.68rem;
  font-weight: 850;
  justify-content: center;
  min-height: 46px;
  padding: 4px 2px;
  text-align: center;
}

.tg-mobile-bottom-nav a:focus-visible,
.tg-mobile-bottom-nav a:hover {
  background: var(--panel-soft);
  color: var(--primary);
}

.tg-main {
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 14px 12px 32px;
}

.tg-hero {
  background:
    linear-gradient(135deg, rgba(5, 9, 8, 0.96), rgba(10, 107, 75, 0.92)),
    var(--black);
  border-radius: 7px;
  color: #fff;
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
  position: relative;
}

.tg-hero::after {
  background: linear-gradient(90deg, var(--accent), var(--primary-2), var(--info));
  bottom: 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  width: 100%;
}

.tg-kicker {
  color: var(--accent-2) !important;
  font-size: 0.74rem !important;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 !important;
  text-transform: uppercase;
}

.tg-hero h1 {
  font-size: 2rem;
  line-height: 1.05;
  margin: 8px 0 0;
}

.tg-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.5;
  margin: 10px 0 0;
  max-width: 780px;
}

.tg-hero-action {
  align-self: end;
}

.tg-hero-actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.tg-layout,
.tg-layout-wide,
.tg-checkout {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.tg-panel,
.tg-feed-card,
.tg-race-card,
.tg-model-card,
.tg-plan,
.tg-affiliate-card,
.tg-affiliate-side-panel,
.tg-affiliate-side-list {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
}

.tg-panel {
  padding: 14px;
}

.tg-section-title {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tg-section-title h2,
.tg-feed-card h2,
.tg-race-card h2,
.tg-model-card h2,
.tg-pro-panel h2,
.tg-plan h2 {
  font-size: 1.04rem;
  line-height: 1.15;
  margin: 0;
}

.tg-section-title a {
  color: var(--info);
  font-size: 0.86rem;
  font-weight: 850;
}

.tg-metrics {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-home-frame {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(231, 247, 251, 0.94)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  padding: 16px;
}

.tg-home-intro h1 {
  font-size: 2rem;
  line-height: 1.05;
  margin: 7px 0 0;
  max-width: 780px;
}

.tg-home-intro p:last-child {
  color: var(--text-muted);
  line-height: 1.5;
  margin: 10px 0 0;
  max-width: 720px;
}

.tg-home-frame .tg-kicker {
  color: var(--primary) !important;
}

.tg-home-summary {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-home-summary article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-height: 92px;
  padding: 12px;
}

.tg-home-summary span,
.tg-home-summary em {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.tg-home-summary strong {
  color: var(--text);
  font-size: 1.42rem;
  line-height: 1;
}

.tg-home-grid,
.tg-home-sidebar,
.tg-home-section,
.tg-prediction-stack {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.tg-home-section {
  align-content: start;
}

.tg-rp-welcome {
  align-items: center;
  display: flex;
  gap: 10px;
  padding-top: 2px;
}

.tg-rp-welcome span {
  align-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  color: var(--primary);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.tg-rp-welcome strong {
  font-size: 0.96rem;
}

.tg-rp-home-grid {
  align-items: flex-start;
  display: grid;
  grid-gap: 26px;
  gap: 26px;
}

.tg-racing-board,
.tg-offers-rail {
  min-width: 0;
}

.tg-racing-headrow {
  align-items: flex-end;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 12px;
}

.tg-rp-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin: 0;
}

.tg-rp-section-heading > span {
  border: 5px solid var(--primary);
  border-bottom-color: transparent;
  border-right-color: transparent;
  border-radius: 50%;
  flex: 0 0 auto;
  height: 24px;
  margin-top: 3px;
  width: 24px;
}

.tg-rp-section-heading h1,
.tg-offers-head h2 {
  font-size: 1.28rem;
  line-height: 1.05;
  margin: 0;
  text-transform: uppercase;
}

.tg-rp-section-heading a,
.tg-offers-head a {
  color: var(--text);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 6px;
  white-space: nowrap;
}

.tg-rp-section-heading a::after,
.tg-offers-head a::after {
  color: var(--primary);
  content: ">";
  font-weight: 900;
  margin-left: 6px;
}

.tg-day-tabs {
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  max-width: 390px;
  overflow: hidden;
  width: 100%;
}

.tg-day-tabs button {
  background: var(--panel);
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 900;
  min-height: 34px;
  text-transform: uppercase;
}

.tg-day-tabs button:first-child {
  border-left: 0;
}

.tg-day-tabs .is-active {
  background: var(--black);
  color: #fff;
}

.tg-racing-table {
  background: var(--panel);
  border: 1px solid var(--line);
}

.tg-racing-state {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 800;
  margin: -2px 0 10px;
}

.tg-racing-row {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 10px;
}

.tg-racing-row + .tg-racing-row {
  border-top: 1px solid var(--line);
}

.tg-racing-course {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.tg-racing-course strong {
  font-size: 0.94rem;
}

.tg-racing-course span,
.tg-racing-times span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.tg-racing-score {
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-height: 58px;
  padding: 7px 9px;
  transition:
    box-shadow 140ms ease,
    transform 140ms ease;
}

.tg-racing-score:hover {
  box-shadow: 0 8px 18px rgba(30, 42, 47, 0.13);
  transform: translateY(-1px);
}

.tg-racing-score strong {
  font-size: 1.18rem;
  line-height: 1;
}

.tg-racing-score span,
.tg-racing-score em,
.tg-racing-score small {
  font-style: normal;
  line-height: 1.12;
}

.tg-racing-score span {
  font-size: 0.64rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-racing-score em {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 900;
}

.tg-racing-score small {
  color: var(--text-muted);
  font-size: 0.66rem;
}

.tg-racing-score.is-high {
  background: rgba(47, 107, 69, 0.1);
  border-color: rgba(47, 107, 69, 0.34);
  box-shadow: inset 4px 0 0 var(--primary);
}

.tg-racing-score.is-high strong,
.tg-racing-score.is-high span {
  color: var(--primary);
}

.tg-racing-score.is-medium {
  background: rgba(212, 176, 106, 0.18);
  border-color: rgba(184, 137, 45, 0.32);
  box-shadow: inset 4px 0 0 var(--accent);
}

.tg-racing-score.is-medium strong,
.tg-racing-score.is-medium span {
  color: #7b5818;
}

.tg-racing-score.is-low {
  background: rgba(181, 84, 58, 0.08);
  border-color: rgba(181, 84, 58, 0.22);
  box-shadow: inset 4px 0 0 var(--danger);
}

.tg-racing-score.is-low strong,
.tg-racing-score.is-low span {
  color: var(--danger);
}

.tg-racing-times {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
}

.tg-racing-times a {
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid transparent;
  border-radius: 4px;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  justify-items: center;
  min-height: 58px;
  padding: 5px 6px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.tg-racing-times a:hover {
  border-color: var(--line);
  box-shadow: 0 8px 18px rgba(30, 42, 47, 0.12);
  transform: translateY(-1px);
}

.tg-racing-times strong {
  font-size: 0.9rem;
}

.tg-racing-times .is-upcoming {
  background: rgba(47, 107, 69, 0.08);
  border-color: rgba(47, 107, 69, 0.26);
  color: var(--text);
}

.tg-racing-times .is-upcoming span {
  color: var(--primary);
  font-weight: 800;
}

.tg-racing-times .is-locked {
  background: rgba(95, 107, 111, 0.08);
  color: var(--text-muted);
}

.tg-racing-times .is-locked span {
  color: var(--text-muted);
  font-weight: 700;
}

.tg-time-score {
  border-radius: 999px;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  padding: 4px 6px;
  text-transform: uppercase;
  white-space: nowrap;
}

.tg-time-score.is-high {
  background: rgba(47, 107, 69, 0.14);
  color: var(--primary);
}

.tg-time-score.is-medium {
  background: rgba(212, 176, 106, 0.24);
  color: #7b5818;
}

.tg-time-score.is-low {
  background: rgba(181, 84, 58, 0.12);
  color: var(--danger);
}

.tg-offers-head {
  align-items: flex-end;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 12px;
}

.tg-lightning {
  background:
    linear-gradient(135deg, rgba(30, 42, 47, 0.98), rgba(47, 107, 69, 0.92)),
    var(--black);
  border: 1px solid rgba(212, 176, 106, 0.42);
  border-radius: 7px;
  box-shadow: 0 18px 38px rgba(30, 42, 47, 0.22);
  color: #fff;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 14px;
  overflow: hidden;
  padding: 14px;
  position: relative;
}

.tg-lightning::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--primary-2));
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  width: 100%;
}

.tg-lightning-main {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.tg-lightning-card {
  background: rgba(255, 253, 248, 0.09);
  border: 1px solid rgba(255, 253, 248, 0.17);
  border-radius: 7px;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.tg-lightning-title-row {
  align-items: center;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 54px minmax(0, 1fr);
}

.tg-lightning-bolt {
  align-items: center;
  background: rgba(255, 253, 248, 0.1);
  border: 1px solid rgba(212, 176, 106, 0.45);
  border-radius: 7px;
  display: flex;
  height: 54px;
  justify-content: center;
  position: relative;
}

.tg-lightning-bolt span {
  background: var(--accent-2);
  -webkit-clip-path: polygon(46% 0, 83% 0, 58% 40%, 86% 40%, 31% 100%, 43% 55%, 18% 55%);
          clip-path: polygon(46% 0, 83% 0, 58% 40%, 86% 40%, 31% 100%, 43% 55%, 18% 55%);
  display: block;
  height: 34px;
  width: 30px;
}

.tg-lightning-kicker {
  color: var(--accent-2);
  display: block;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-lightning h2 {
  font-size: 1.22rem;
  line-height: 1.08;
  margin: 4px 0 0;
}

.tg-lightning p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  line-height: 1.35;
  margin: 6px 0 0;
}

.tg-lightning-score,
.tg-lightning-pick {
  background: rgba(8, 13, 12, 0.14);
  border: 1px solid rgba(255, 253, 248, 0.14);
  border-radius: 6px;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  padding: 10px;
}

.tg-lightning-summary {
  grid-template-columns: 1fr;
}

.tg-lightning-card-label {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-lightning-selector {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.tg-lightning-selector button,
.tg-lightning-dialog-selector button {
  align-items: center;
  background: rgba(255, 253, 248, 0.08);
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 6px;
  color: #fff;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 42px;
  padding: 7px;
  text-align: left;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.tg-lightning-selector button:hover,
.tg-lightning-dialog-selector button:hover,
.tg-lightning-selector button.is-active,
.tg-lightning-dialog-selector button.is-active {
  background: rgba(212, 176, 106, 0.16);
  border-color: rgba(212, 176, 106, 0.64);
  transform: translateY(-1px);
}

.tg-lightning-selector strong,
.tg-lightning-dialog-selector strong {
  align-items: center;
  background: var(--accent-2);
  border-radius: 999px;
  color: var(--black);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 36px;
}

.tg-lightning-selector span,
.tg-lightning-dialog-selector span {
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.12;
  min-width: 0;
}

.tg-lightning-score span,
.tg-lightning-pick span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-lightning-score strong {
  color: var(--accent-2);
  font-size: 2rem;
  line-height: 1;
}

.tg-lightning-score em,
.tg-lightning-pick small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-style: normal;
}

.tg-lightning-pick strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.12;
}

.tg-lightning-trigger {
  background: var(--accent-2);
  border: 0;
  border-radius: 5px;
  color: var(--black);
  font-size: 0.84rem;
  font-weight: 950;
  min-height: 40px;
  padding: 0 14px;
  text-transform: uppercase;
  transition:
    box-shadow 140ms ease,
    transform 140ms ease;
}

.tg-lightning-trigger:hover {
  box-shadow: 0 10px 22px rgba(212, 176, 106, 0.28);
  transform: translateY(-1px);
}

.tg-lightning-overlay {
  align-items: center;
  background: rgba(8, 13, 12, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 60;
}

.tg-lightning-dialog {
  background: var(--panel);
  border: 1px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  color: var(--text);
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  max-height: min(90svh, 780px);
  max-width: 820px;
  overflow: auto;
  padding: 18px;
  position: relative;
  width: min(100%, 820px);
}

.tg-lightning-close {
  align-items: center;
  background: var(--black);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: flex;
  font-size: 0.86rem;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  position: absolute;
  right: 12px;
  top: 12px;
  width: 30px;
}

.tg-lightning-dialog-head {
  background:
    linear-gradient(135deg, rgba(30, 42, 47, 0.98), rgba(47, 107, 69, 0.94)),
    var(--black);
  border-radius: 7px;
  color: #fff;
  padding: 18px 44px 18px 18px;
}

.tg-lightning-dialog-head span {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-lightning-dialog-head h2 {
  font-size: 2rem;
  line-height: 1;
  margin: 6px 0 0;
}

.tg-lightning-dialog-head p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.42;
  margin: 8px 0 0;
}

.tg-lightning-dialog-grid,
.tg-lightning-metrics,
.tg-lightning-actions {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.tg-lightning-dialog-selector {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.tg-lightning-dialog-selector button {
  background: var(--panel-2);
  border-color: var(--line-soft);
  color: var(--text);
}

.tg-lightning-dialog-selector button:hover,
.tg-lightning-dialog-selector button.is-active {
  background: rgba(212, 176, 106, 0.18);
  border-color: var(--accent);
}

.tg-lightning-verdict {
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  padding: 12px;
}

.tg-lightning-verdict.is-primary {
  background: rgba(47, 107, 69, 0.1);
  border-color: rgba(47, 107, 69, 0.32);
  box-shadow: inset 4px 0 0 var(--primary);
}

.tg-lightning-verdict.is-value {
  background: rgba(212, 176, 106, 0.18);
  border-color: rgba(184, 137, 45, 0.32);
  box-shadow: inset 4px 0 0 var(--accent);
}

.tg-lightning-verdict.is-avoid {
  background: rgba(181, 84, 58, 0.1);
  border-color: rgba(181, 84, 58, 0.24);
  box-shadow: inset 4px 0 0 var(--danger);
}

.tg-lightning-verdict span,
.tg-lightning-metrics span {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-lightning-verdict strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.tg-lightning-verdict p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.36;
  margin: 0;
}

.tg-lightning-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-lightning-metrics div {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 10px;
}

.tg-lightning-metrics strong {
  font-size: 1.12rem;
}

.tg-lightning-actions {
  grid-template-columns: 1fr;
}

.tg-lightning-actions a,
.tg-lightning-actions button {
  align-items: center;
  border-radius: 5px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 950;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  text-transform: uppercase;
}

.tg-lightning-actions a:first-child {
  background: var(--primary);
  color: #fff;
}

.tg-lightning-actions a:nth-child(3) {
  background: var(--danger);
  color: #fff;
}

.tg-lightning-actions button {
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text);
}

.tg-lightning-result {
  border-radius: 6px;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1.35;
  padding: 10px;
}

.tg-lightning-result.is-track {
  background: rgba(47, 107, 69, 0.12);
  color: var(--primary);
}

.tg-lightning-result.is-skip {
  background: rgba(44, 106, 122, 0.12);
  color: var(--info);
}

.tg-lightning-note {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.tg-offers-head p {
  font-size: 0.86rem;
  line-height: 1.15;
  margin: 4px 0 0;
}

.tg-offer-card {
  background: var(--panel);
  border: 1px solid rgba(30, 42, 47, 0.12);
  border-radius: 5px;
  box-shadow: 0 9px 22px rgba(30, 42, 47, 0.13);
  overflow: hidden;
  transition:
    box-shadow 140ms ease,
    transform 140ms ease;
}

.tg-offer-card + .tg-offer-card {
  margin-top: 12px;
}

.tg-offer-card:hover {
  box-shadow: 0 14px 30px rgba(30, 42, 47, 0.18);
  transform: translateY(-1px);
}

.tg-offer-brand {
  align-items: center;
  background: #00513f;
  color: #fff;
  display: flex;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 16px;
}

.tg-offer-brand strong {
  font-size: 1.02rem;
  font-weight: 950;
}

.tg-offer-brand span {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 8px;
  text-transform: uppercase;
}

.tg-offer-card h3 {
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.2;
  margin: 0;
  padding: 13px 16px 8px;
}

.tg-offer-stat {
  background: linear-gradient(90deg, rgba(184, 137, 45, 0.16), rgba(78, 139, 99, 0.12));
  border-left: 4px solid var(--accent);
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  margin: 0 16px 11px;
  padding: 9px 10px;
}

.tg-offer-stat strong {
  color: var(--primary);
  font-size: 0.84rem;
  line-height: 1.15;
  text-transform: uppercase;
}

.tg-offer-stat span {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.tg-offer-card > a {
  align-items: center;
  background: var(--danger);
  border-radius: 4px;
  color: #fff;
  display: flex;
  font-size: 0.82rem;
  font-weight: 900;
  justify-content: center;
  margin: 0 16px 12px;
  min-height: 36px;
  text-transform: uppercase;
  transition:
    background 140ms ease,
    transform 140ms ease;
}

.tg-offer-card > a:hover {
  background: #984630;
  transform: translateY(-1px);
}

.tg-offer-card p,
.tg-offer-card small {
  color: var(--text-muted);
  display: block;
  font-size: 0.66rem;
  line-height: 1.42;
  margin: 0;
  padding: 9px 16px;
}

.tg-offer-card p {
  background: var(--panel-soft);
}

.tg-offer-card small {
  padding-top: 0;
}

.tg-offer-emerald .tg-offer-brand {
  background: #009b69;
}

.tg-offer-blue .tg-offer-brand {
  background: #174ea6;
}

.tg-offer-navy .tg-offer-brand {
  background: #07439a;
}

.tg-picks-strip {
  margin-top: 24px;
}

.tg-picks-strip .tg-prediction-grid {
  grid-template-columns: 1fr;
}

.tg-picks-strip .tg-model-card {
  align-content: start;
  gap: 10px;
  padding: 12px;
}

.tg-picks-strip .tg-model-main {
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.tg-picks-strip .tg-model-main h2 {
  font-size: 1.04rem;
  line-height: 1.12;
}

.tg-picks-strip .tg-model-main p {
  font-size: 0.84rem;
  line-height: 1.2;
}

.tg-picks-strip .tg-model-main > strong {
  font-size: 1rem;
  padding: 8px 10px;
}

.tg-picks-strip .tg-score-grid {
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-picks-strip .tg-score-grid div {
  min-height: 58px;
  padding: 7px;
}

.tg-picks-strip .tg-score-grid span {
  display: block;
  font-size: 0.78rem;
  line-height: 1.15;
}

.tg-picks-strip .tg-score-grid strong {
  font-size: 0.9rem;
}

.tg-picks-strip .tg-model-card > p {
  font-size: 0.88rem;
  line-height: 1.25;
  margin: 2px 0 0;
  min-height: 34px;
}

.tg-picks-strip .tg-model-card > a {
  min-height: 34px;
}

.tg-metrics article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}

.tg-metrics span,
.tg-card-line span,
.tg-score-grid span,
.tg-feed-head span,
.tg-race-card p,
.tg-model-card p,
.tg-result-mini > span,
.tg-plan p,
.tg-footer p,
.tg-footer a {
  color: var(--text-muted);
}

.tg-metrics strong {
  display: block;
  font-size: 1.45rem;
  margin-top: 5px;
}

.tg-metrics em {
  color: var(--primary);
  display: block;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
  margin-top: 3px;
}

.tg-filter-dock {
  background: #dff1f5;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  padding: 10px;
}

.tg-search {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--text-muted);
  min-height: 42px;
  padding: 12px;
}

.tg-filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tg-filter-tabs button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font-weight: 850;
  min-height: 36px;
  padding: 0 10px;
  white-space: nowrap;
}

.tg-feed-column,
.tg-race-grid,
.tg-prediction-grid,
.tg-prediction-stack,
.tg-pricing-grid,
.tg-runner-table,
.tg-result-mini {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.tg-feed-card {
  overflow: hidden;
}

.tg-feed-ribbon {
  height: 0;
  position: relative;
}

.tg-feed-ribbon span {
  background: var(--primary-2);
  border-radius: 0 0 7px 0;
  color: #fff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  left: 0;
  min-width: 116px;
  padding: 7px 14px;
  position: absolute;
  top: 0;
}

.tg-feed-ribbon-steamers span,
.tg-feed-ribbon-streakers span {
  background: var(--info);
}

.tg-feed-ribbon-scores-results span {
  background: var(--black);
}

.tg-feed-ribbon-model-edge span,
.tg-feed-ribbon-experts span {
  background: var(--accent);
  color: var(--text);
}

.tg-feed-head {
  align-items: center;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 34px 12px 12px;
}

.tg-feed-head p {
  color: var(--text-muted);
  font-weight: 750;
  margin: 4px 0;
}

.tg-feed-head a {
  background: rgba(95, 161, 97, 0.16);
  color: var(--primary);
}

.tg-feed-summary {
  border-top: 1px dashed var(--line);
  color: var(--text-muted);
  line-height: 1.48;
  margin: 0;
  padding: 12px;
}

.tg-tip-block {
  background: linear-gradient(90deg, var(--bg-warm), var(--panel-soft));
  border-top: 1px solid var(--line);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 118px;
  padding: 12px;
}

.tg-tip-block h3 {
  font-size: 1rem;
  margin: 0 0 4px;
}

.tg-tip-block p,
.tg-tip-block span,
.tg-author-note p {
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.tg-price-box {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
}

.tg-price-box strong {
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--text);
  font-size: 1.28rem;
  padding: 10px;
  text-align: center;
}

.tg-progress {
  background: var(--line-soft);
  border-radius: 999px;
  display: block;
  height: 6px;
  overflow: hidden;
}

.tg-progress i {
  background: var(--primary-2);
  display: block;
  height: 100%;
}

.tg-steamer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
}

.tg-steamer div {
  background: var(--panel-soft);
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 18px;
  place-items: center;
}

.tg-steamer b {
  align-items: center;
  background: #293342;
  color: #fff;
  display: flex;
  font-size: 1.8rem;
  justify-content: center;
}

.tg-steamer strong {
  font-size: 2rem;
}

.tg-author-note {
  background: var(--panel);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  margin: 12px;
  padding: 12px;
}

.tg-author-note span {
  color: var(--text);
  font-weight: 900;
}

.tg-feed-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 10px 12px;
}

.tg-feed-actions span:first-child {
  margin-right: auto;
}

.tg-feed-actions a {
  color: var(--primary);
  font-weight: 900;
}

.tg-race-card,
.tg-model-card,
.tg-plan {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 12px;
}

.tg-race-card-featured {
  background: linear-gradient(180deg, #fffdf8, #f8fbfb);
}

.tg-card-line {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.tg-card-access {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.tg-card-access svg {
  fill: none;
  height: 14px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 14px;
}

.tg-card-line strong {
  color: var(--info);
}

.tg-race-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tg-race-tags span {
  background: var(--panel-blue);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 7px;
}

.tg-race-pick {
  background: var(--bg-warm);
  border: 1px solid #ead4a9;
  border-radius: 5px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 10px;
}

.tg-race-pick span,
.tg-race-pick em {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-style: normal;
}

.tg-model-main {
  align-items: center;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
}

.tg-model-main p {
  margin: 4px 0 0;
}

.tg-model-main > strong {
  border: 1px solid var(--accent);
  border-radius: 5px;
  font-size: 1.1rem;
  padding: 9px 12px;
}

.tg-model-card-locked {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 246, 246, 0.98)),
    var(--panel);
  border-color: #bdbdbd;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  position: relative;
}

.tg-model-card-locked .tg-card-access {
  color: var(--primary);
  font-weight: 900;
}

.tg-model-card-locked .tg-model-main,
.tg-model-card-locked .tg-score-grid {
  opacity: 0.78;
}

.tg-model-card-locked::after {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.9));
  content: "";
  inset: auto 0 48px;
  height: 45px;
  pointer-events: none;
  position: absolute;
}

.tg-score-grid {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-score-grid div {
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 8px;
}

.tg-score-grid strong {
  display: block;
  font-size: 0.98rem;
  margin-top: 3px;
}

.tg-runner-heading,
.tg-runner-row {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr);
}

.tg-runner-heading {
  color: var(--text-muted);
  display: none;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0 10px;
}

.tg-runner-row {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
}

.tg-runner-row > strong,
.tg-runner-row > .tg-positive,
.tg-runner-row > .tg-negative {
  grid-column: 2;
}

.tg-runner-horse {
  align-items: center;
  display: flex;
  gap: 10px;
}

.tg-runner-horse div {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.tg-runner-horse small,
.tg-runner-horse em {
  color: var(--text-muted);
  font-style: normal;
}

.tg-race-decision {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  overflow: hidden;
  padding: 14px;
}

.tg-race-decision-head {
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding-bottom: 14px;
}

.tg-race-decision-head span,
.tg-verdict-card-head span,
.tg-decision-table th,
.tg-row-reason,
.tg-decision-runner span,
.tg-decision-runner small,
.tg-odds-compare span {
  color: var(--text-muted);
}

.tg-race-decision-head > div:first-child > span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-race-decision-head h2 {
  font-size: 1.55rem;
  line-height: 1.08;
  margin: 6px 0 0;
}

.tg-race-decision-head p {
  color: var(--text-muted);
  line-height: 1.45;
  margin: 8px 0 0;
  max-width: 800px;
}

.tg-race-context {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tg-race-context strong,
.tg-race-context span {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 28px;
  padding: 7px 10px;
}

.tg-race-context strong {
  background: var(--primary);
  color: #fff;
}

.tg-race-context span {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
}

.tg-verdict-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.tg-verdict-card {
  background: linear-gradient(180deg, #fff, var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
}

.tg-verdict-card.is-strong {
  border-color: rgba(47, 107, 69, 0.42);
  box-shadow: inset 4px 0 0 var(--primary);
}

.tg-verdict-card.is-value {
  border-color: rgba(184, 137, 45, 0.48);
  box-shadow: inset 4px 0 0 var(--accent);
}

.tg-verdict-card.is-watch {
  border-color: rgba(44, 106, 122, 0.36);
  box-shadow: inset 4px 0 0 var(--info);
}

.tg-verdict-card.is-pass {
  border-color: var(--line);
}

.tg-verdict-card-head,
.tg-verdict-meta {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.tg-verdict-card-head span {
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-verdict-card-head strong {
  align-items: center;
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  height: 34px;
  justify-content: center;
  width: 42px;
}

.tg-verdict-runner {
  align-items: center;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.tg-verdict-runner h3 {
  font-size: 1rem;
  line-height: 1.12;
  margin: 0;
}

.tg-verdict-runner p,
.tg-verdict-card > p {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.35;
  margin: 3px 0 0;
}

.tg-verdict-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.tg-verdict-meta span {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 850;
  padding: 5px 7px;
}

.tg-decision-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tg-decision-legend span {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 6px;
}

.tg-decision-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 9px;
  width: 20px;
}

.tg-decision-legend .is-strong {
  background: var(--primary-2);
}

.tg-decision-legend .is-watch {
  background: var(--accent-2);
}

.tg-decision-legend .is-soft {
  background: var(--danger);
}

.tg-decision-table-wrap {
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow-x: auto;
}

.tg-decision-table {
  border-collapse: collapse;
  min-width: 1080px;
  width: 100%;
}

.tg-decision-table th,
.tg-decision-table td {
  border-bottom: 1px solid var(--line-soft);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

.tg-decision-table th {
  background: var(--panel-2);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.18;
  text-transform: uppercase;
}

.tg-decision-table tr:nth-child(even) td {
  background: rgba(244, 235, 221, 0.58);
}

.tg-decision-table tbody tr:hover td {
  background: rgba(232, 240, 236, 0.8);
}

.tg-runner-rank {
  align-items: center;
  background: var(--black);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.tg-decision-runner {
  align-items: center;
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  grid-template-columns: 38px minmax(0, 1fr);
  min-width: 210px;
}

.tg-decision-runner div {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.tg-decision-runner a {
  color: var(--text);
  font-weight: 950;
  text-decoration: underline;
  -webkit-text-decoration-color: var(--line);
          text-decoration-color: var(--line);
  text-underline-offset: 2px;
}

.tg-decision-runner span,
.tg-decision-runner small,
.tg-row-reason {
  font-size: 0.76rem;
  line-height: 1.22;
}

.tg-verdict-pill,
.tg-risk-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 950;
  justify-content: center;
  min-width: 86px;
  padding: 6px 8px;
  text-transform: uppercase;
}

.tg-verdict-pill.is-strong {
  background: rgba(47, 107, 69, 0.12);
  color: var(--primary);
}

.tg-verdict-pill.is-value {
  background: rgba(184, 137, 45, 0.16);
  color: #7b5818;
}

.tg-verdict-pill.is-watch {
  background: rgba(44, 106, 122, 0.12);
  color: var(--info);
}

.tg-verdict-pill.is-pass {
  background: rgba(181, 84, 58, 0.12);
  color: var(--danger);
}

.tg-row-reason {
  display: block;
  margin-top: 5px;
  max-width: 230px;
}

.tg-odds-compare {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.tg-odds-compare strong {
  border: 1px solid var(--accent);
  border-radius: 4px;
  display: inline-flex;
  font-size: 0.9rem;
  justify-content: center;
  min-width: 54px;
  padding: 6px 8px;
  width: -moz-fit-content;
  width: fit-content;
}

.tg-signal-metric {
  align-items: center;
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  grid-template-columns: 78px 42px;
}

.tg-signal-bar {
  background: #5f6668;
  border-radius: 999px;
  display: block;
  height: 6px;
  overflow: hidden;
}

.tg-signal-bar i {
  display: block;
  height: 100%;
}

.tg-signal-bar.is-strong i {
  background: #05c89b;
}

.tg-signal-bar.is-watch i {
  background: #f2c94c;
}

.tg-signal-bar.is-soft i {
  background: #ff5a50;
}

.tg-signal-metric strong {
  font-size: 0.82rem;
}

.tg-risk-pill.is-low {
  background: rgba(47, 107, 69, 0.12);
  color: var(--primary);
}

.tg-risk-pill.is-medium {
  background: rgba(184, 137, 45, 0.16);
  color: #7b5818;
}

.tg-risk-pill.is-high {
  background: rgba(181, 84, 58, 0.12);
  color: var(--danger);
}

.tg-table-action {
  background: var(--primary);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 950;
  justify-content: center;
  min-height: 32px;
  min-width: 62px;
  padding: 8px 10px;
}

.tg-table-action:hover {
  background: #285a3a;
}

.tg-table-action-stack {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.tg-table-action.is-muted {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  color: var(--text);
}

.tg-table-action.is-muted:hover {
  background: var(--bg-soft);
}

.tg-race-empty {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  padding: 14px;
}

.tg-race-empty p {
  color: var(--text-muted);
  margin: 0;
}

.tg-result-review-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.tg-result-review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 14px;
}

.tg-result-review-main {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.tg-result-review-main > div {
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 10px;
}

.tg-result-review-main span {
  color: var(--text-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-result-review-main h2 {
  font-size: 1.05rem;
  line-height: 1.15;
  margin: 4px 0;
}

.tg-result-review-main p,
.tg-result-review-card > p {
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.is-positive {
  color: var(--success);
}

.is-negative {
  color: var(--danger);
}

.tg-positive {
  color: var(--success);
  font-weight: 900;
}

.tg-negative {
  color: var(--danger);
  font-weight: 900;
}

.tg-performance-grid,
.tg-performance-report-list,
.tg-daily-report-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.tg-performance-card,
.tg-daily-trust {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 14px;
}

.tg-performance-card.is-highlight,
.tg-daily-trust {
  background:
    linear-gradient(135deg, rgba(47, 107, 69, 0.08), rgba(184, 137, 45, 0.08)),
    var(--panel);
}

.tg-performance-card h2,
.tg-daily-trust h2 {
  font-size: 1.45rem;
  line-height: 1.08;
  margin: 0;
}

.tg-performance-card p,
.tg-daily-trust p,
.tg-performance-card small {
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

.tg-performance-kpis,
.tg-daily-trust-kpis {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-performance-kpis div,
.tg-daily-trust-kpis div,
.tg-performance-report-row > div:not(:first-child),
.tg-daily-report-row > div:not(:first-child) {
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  min-height: 62px;
  padding: 9px;
}

.tg-performance-kpis span,
.tg-daily-trust-kpis span,
.tg-performance-report-row span,
.tg-daily-report-row span,
.tg-model-registry-row span {
  color: var(--text-muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
}

.tg-performance-kpis strong,
.tg-daily-trust-kpis strong,
.tg-performance-report-row strong,
.tg-daily-report-row strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.1;
  margin-top: 4px;
}

.tg-daily-trust > div:first-child span {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-daily-trust-footer {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-top: 10px;
}

.tg-daily-trust-footer span {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.tg-daily-trust.is-empty {
  background: var(--panel-soft);
}

.tg-performance-report-row,
.tg-daily-report-row,
.tg-model-registry-row,
.tg-model-registry-head {
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  padding: 10px;
}

.tg-performance-report-row,
.tg-daily-report-row,
.tg-model-registry-row {
  background: var(--panel);
}

.tg-model-registry-table {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.tg-model-registry-head {
  background: var(--panel-2);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-model-registry-row > div strong {
  display: block;
}

.tg-model-registry-row > div span {
  color: var(--primary);
  margin-top: 3px;
}

.is-strong strong {
  color: var(--primary);
}

.tg-result-mini {
  border-top: 1px solid var(--line);
}

.tg-result-mini > span {
  padding: 12px;
  text-align: center;
}

.tg-result-mini div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 44px 34px 48px minmax(0, 1fr) 72px;
  padding: 10px 12px;
}

.tg-result-mini .tg-result-winner {
  background: var(--bg-warm);
}

.tg-result-mini span:last-child {
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--text);
  font-weight: 900;
  padding: 7px;
  text-align: center;
}

.tg-pro-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(5, 9, 8, 0.96), rgba(15, 42, 56, 0.94)),
    var(--black);
  border: 1px solid rgba(246, 173, 59, 0.45);
  border-radius: 7px;
  color: #fff;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 16px;
}

.tg-pro-panel span,
.tg-plan span {
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tg-pro-panel p {
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.45;
  margin: 8px 0 0;
}

.tg-pricing-grid {
  grid-template-columns: 1fr;
}

.tg-plan-featured {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.tg-plan ul {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tg-plan li {
  color: var(--text-muted);
  line-height: 1.4;
}

.tg-plan li::before {
  color: var(--primary);
  content: "+ ";
  font-weight: 900;
}

.tg-plan > strong,
.tg-plan > em {
  display: block;
}

.tg-plan > strong {
  color: var(--text);
  font-size: 1.28rem;
}

.tg-plan > em {
  color: var(--text-muted);
  font-style: normal;
  font-weight: 800;
}

.tg-affiliate-hero {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(30, 42, 47, 0.96), rgba(47, 107, 69, 0.9)),
    var(--black);
  border-radius: 7px;
  color: #fff;
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  overflow: hidden;
  padding: 20px;
  position: relative;
}

.tg-affiliate-hero::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--primary-2));
  bottom: 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  width: 100%;
}

.tg-affiliate-hero h1 {
  font-size: 2rem;
  line-height: 1.05;
  margin: 8px 0 0;
  max-width: 760px;
}

.tg-affiliate-hero p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.48;
  margin: 10px 0 0;
  max-width: 800px;
}

.tg-affiliate-total {
  background: rgba(255, 253, 248, 0.11);
  border: 1px solid rgba(255, 253, 248, 0.25);
  border-radius: 7px;
  display: grid;
  grid-gap: 5px;
  gap: 5px;
  min-width: min(100%, 245px);
  padding: 14px;
}

.tg-affiliate-total span,
.tg-affiliate-total small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 800;
}

.tg-affiliate-total strong {
  color: var(--accent-2);
  font-size: 1.7rem;
  line-height: 1;
}

.tg-affiliate-toolbar {
  align-items: center;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.tg-affiliate-select {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 850;
  min-height: 40px;
  padding: 12px;
}

.tg-affiliate-pills,
.tg-affiliate-trust {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.tg-affiliate-pills button,
.tg-affiliate-trust span {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.tg-affiliate-pills button {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.tg-affiliate-pills button.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.tg-affiliate-trust span {
  background: rgba(47, 107, 69, 0.1);
  border: 1px solid rgba(47, 107, 69, 0.2);
  color: var(--primary);
}

.tg-affiliate-layout,
.tg-affiliate-main,
.tg-affiliate-grid,
.tg-affiliate-rail {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.tg-affiliate-card {
  align-content: start;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  overflow: hidden;
  padding: 12px;
  transition:
    box-shadow 140ms ease,
    transform 140ms ease;
}

.tg-affiliate-card:hover {
  box-shadow: 0 14px 30px rgba(30, 42, 47, 0.16);
  transform: translateY(-1px);
}

.tg-affiliate-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(184, 137, 45, 0.2);
}

.tg-affiliate-card-head {
  align-items: center;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 112px minmax(0, 1fr) auto;
}

.tg-bookmaker-logo {
  align-items: center;
  background: var(--black);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 950;
  height: 54px;
  justify-content: center;
  line-height: 1;
  overflow: hidden;
  padding: 0 10px;
  text-align: center;
}

.tg-bookmaker-paddypower {
  background: #00513f;
  font-size: 0.77rem;
  transform: skew(-8deg);
}

.tg-bookmaker-bet365 {
  background: #007a4d;
  color: #ffe45b;
  font-size: 1.25rem;
}

.tg-bookmaker-skybet {
  background: linear-gradient(90deg, #fff 0 48%, #d71920 48%);
  color: #174ea6;
  justify-content: flex-start;
  text-transform: lowercase;
}

.tg-bookmaker-coral {
  background: #07439a;
  color: #fff;
  font-style: italic;
}

.tg-bookmaker-williamhill {
  background: #07005f;
  color: #f5d64b;
  font-family: Georgia, serif;
  font-size: 0.84rem;
}

.tg-bookmaker-betfair {
  background: #f5c247;
  color: #111;
  font-size: 1.05rem;
}

.tg-affiliate-card-head div {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.tg-affiliate-card-head div > span,
.tg-affiliate-card-head > strong {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tg-affiliate-card-head h2 {
  font-size: 1rem;
  line-height: 1.1;
  margin: 0;
}

.tg-affiliate-card-head > strong {
  background: var(--panel-2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--primary);
  min-width: 58px;
  padding: 7px 8px;
  text-align: center;
}

.tg-affiliate-card h3 {
  font-size: 1.22rem;
  line-height: 1.12;
  margin: 0;
}

.tg-affiliate-card > p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.35;
  margin: 0;
}

.tg-affiliate-score-grid {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-affiliate-score-grid div {
  background: linear-gradient(180deg, #fff, var(--panel));
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  min-height: 58px;
  padding: 9px;
}

.tg-affiliate-score-grid span {
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.1;
}

.tg-affiliate-score-grid strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.05;
}

.tg-affiliate-card ul,
.tg-affiliate-side-panel ul {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tg-affiliate-card li,
.tg-affiliate-side-panel li {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  padding-left: 18px;
  position: relative;
}

.tg-affiliate-card li::before,
.tg-affiliate-side-panel li::before {
  background: var(--primary-2);
  border-radius: 999px;
  color: #fff;
  content: "+";
  font-size: 0.72rem;
  font-weight: 950;
  height: 13px;
  left: 0;
  line-height: 13px;
  position: absolute;
  text-align: center;
  top: 2px;
  width: 13px;
}

.tg-affiliate-card > a {
  align-items: center;
  background: var(--danger);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-size: 0.84rem;
  font-weight: 950;
  justify-content: center;
  min-height: 38px;
  text-transform: uppercase;
  transition:
    background 140ms ease,
    transform 140ms ease;
}

.tg-affiliate-card > a:hover {
  background: #984630;
  transform: translateY(-1px);
}

.tg-affiliate-card small {
  background: var(--panel-2);
  border-radius: 5px;
  color: var(--text-muted);
  display: block;
  font-size: 0.68rem;
  line-height: 1.38;
  padding: 9px;
}

.tg-affiliate-side-panel,
.tg-affiliate-side-list {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 14px;
}

.tg-affiliate-side-panel h2,
.tg-affiliate-side-list h2 {
  font-size: 1.02rem;
  line-height: 1.15;
  margin: 0;
}

.tg-affiliate-side-panel p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.42;
  margin: 0;
}

.tg-affiliate-side-panel a {
  background: var(--primary);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  justify-content: center;
  min-height: 36px;
  padding: 0 12px;
}

.tg-affiliate-side-list {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.tg-affiliate-side-list h2 {
  background: var(--accent-2);
  padding: 14px;
}

.tg-affiliate-side-list a {
  align-items: center;
  border-top: 1px solid var(--line-soft);
  display: flex;
  font-weight: 750;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
}

.tg-affiliate-side-list span {
  color: var(--danger);
  font-weight: 900;
}

.tg-checkout {
  grid-template-columns: 1fr;
}

.tg-form-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.tg-form-field {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.tg-form-field label {
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 850;
}

.tg-form-field input,
.tg-form-field select {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 44px;
  padding: 0 12px;
}

.tg-account-layout {
  align-items: flex-start;
  display: grid;
  grid-gap: 16px;
  gap: 16px;
}

.tg-account-sidebar,
.tg-account-content,
.tg-account-stats,
.tg-account-grid,
.tg-account-list,
.tg-billing-list,
.tg-toggle-list,
.tg-subscription-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.tg-account-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.tg-account-person {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 10px;
  padding-bottom: 12px;
}

.tg-account-person > span {
  align-items: center;
  background: var(--black);
  border-radius: 6px;
  color: var(--accent-2);
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.tg-account-person strong {
  display: block;
}

.tg-account-person p {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 2px 0 0;
}

.tg-account-sidebar nav {
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.tg-account-sidebar nav a {
  border-radius: 5px;
  color: var(--text-muted);
  font-weight: 850;
  padding: 10px;
}

.tg-account-sidebar nav a.is-active,
.tg-account-sidebar nav a:hover {
  background: var(--panel-soft);
  color: var(--primary);
}

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

.tg-account-stats article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.tg-account-stats span,
.tg-setting-row p {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.tg-account-stats strong {
  display: block;
  font-size: 1.34rem;
  margin-top: 5px;
}

.tg-account-stats p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 4px 0 0;
}

.tg-account-grid {
  grid-template-columns: 1fr;
}

.tg-setting-row {
  align-items: center;
  border-top: 1px solid var(--line-soft);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
}

.tg-setting-row:first-of-type {
  border-top: 0;
}

.tg-setting-row p {
  margin: 3px 0 0;
}

.tg-setting-row > span {
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  font-weight: 850;
  padding: 7px 9px;
  text-align: right;
}

.tg-account-list {
  grid-template-columns: 1fr;
}

.tg-account-list span {
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--text-muted);
  font-weight: 800;
  padding: 10px;
}

.tg-subscription-hero {
  background:
    linear-gradient(135deg, rgba(30, 42, 47, 0.96), rgba(47, 107, 69, 0.92)),
    var(--black);
  border-radius: 7px;
  color: #fff;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.tg-subscription-hero::after {
  background: linear-gradient(90deg, var(--accent), var(--primary-2));
  bottom: 0;
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  width: 100%;
}

.tg-subscription-hero p,
.tg-subscription-head span {
  color: var(--accent-2);
  font-size: 0.76rem;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}

.tg-subscription-hero h1 {
  font-size: 2.55rem;
  line-height: 1;
  margin: 0;
}

.tg-subscription-hero span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  font-weight: 850;
}

.tg-subscription-hero small {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
  max-width: 760px;
}

.tg-subscription-hero div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.tg-subscription-hero div > a:not(.tg-pro-button) {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  min-height: 34px;
  padding: 0 12px;
}

.tg-subscription-grid {
  grid-template-columns: 1fr;
}

.tg-subscription-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  padding: 14px;
}

.tg-subscription-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 14px 30px rgba(30, 42, 47, 0.14);
}

.tg-subscription-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.tg-subscription-head h2 {
  font-size: 1.45rem;
  margin: 2px 0 0;
}

.tg-subscription-head > strong {
  background: var(--primary);
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  padding: 6px 9px;
}

.tg-subscription-card > p {
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.tg-subscription-price,
.tg-subscription-monthly {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  padding: 10px;
}

.tg-subscription-price {
  background: var(--black);
  color: #fff;
}

.tg-subscription-price strong {
  font-size: 1.38rem;
}

.tg-subscription-price span,
.tg-subscription-price em,
.tg-subscription-monthly span {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 850;
}

.tg-subscription-price em {
  color: var(--accent-2);
}

.tg-subscription-monthly {
  background: var(--panel-soft);
}

.tg-subscription-card ul {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tg-subscription-card li {
  color: var(--text-muted);
  line-height: 1.38;
}

.tg-subscription-card li::before {
  color: var(--primary);
  content: "+ ";
  font-weight: 900;
}

.tg-subscription-card > a {
  align-items: center;
  background: var(--primary);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
}

.tg-subscription-note {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
}

.tg-subscription-note p {
  color: var(--text-muted);
  line-height: 1.45;
  margin: 6px 0 0;
}

.tg-billing-list div {
  align-items: center;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 0;
}

.tg-billing-list div:first-child {
  border-top: 0;
}

.tg-billing-list span,
.tg-billing-list b,
.tg-billing-list em {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-style: normal;
}

.tg-billing-list em,
.tg-billing-list b {
  text-align: right;
}

.tg-toggle-list label {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px;
}

.tg-toggle-list span {
  font-weight: 850;
}

.tg-footer {
  background: #f7f7f7;
  border-top: 1px solid var(--line);
  color: var(--text);
  display: grid;
  grid-gap: 0;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
}

.tg-footer-brand strong {
  font-size: 1.25rem;
}

.tg-footer-responsible,
.tg-footer-main,
.tg-footer-legal {
  margin: 0 auto;
  max-width: 1240px;
  width: 100%;
}

.tg-footer-responsible {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 74px;
  padding: 16px 12px;
}

.tg-footer-responsible span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}

.tg-footer-main {
  border-top: 1px solid var(--line);
  display: grid;
  grid-gap: 20px;
  gap: 20px;
  padding: 24px 12px 30px;
  position: relative;
}

.tg-footer-legal {
  border-top: 1px solid var(--line-soft);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 18px 12px 28px;
}

.tg-footer-grid {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.tg-footer h2 {
  font-size: 0.9rem;
  margin: 0 0 8px;
}

.tg-footer a {
  display: block;
  font-size: 0.86rem;
  line-height: 1.9;
}

.tg-footer p,
.tg-footer a {
  color: var(--text-muted);
}

.tg-silk {
  border: 1px solid rgba(15, 42, 56, 0.16);
  border-radius: 50%;
  display: inline-block;
  height: 42px;
  position: relative;
  width: 42px;
}

.tg-silk::before {
  border: 1px solid rgba(15, 42, 56, 0.12);
  border-radius: 3px 3px 2px 2px;
  content: "";
  height: 25px;
  left: 11px;
  position: absolute;
  top: 9px;
  width: 20px;
}

.tg-silk::after {
  border-radius: 50%;
  content: "";
  height: 7px;
  position: absolute;
  right: 4px;
  top: 11px;
  width: 7px;
}

.tg-silk-1 {
  background: #eef7e9;
}

.tg-silk-1::before {
  background: repeating-linear-gradient(90deg, #ffe04d 0 7px, #203167 7px 14px);
}

.tg-silk-1::after {
  background: #d1bb21;
}

.tg-silk-2::before {
  background: linear-gradient(90deg, #77c2f0 0 50%, #0f60b8 50%);
}

.tg-silk-2::after {
  background: #0f60b8;
}

.tg-silk-3::before {
  background: linear-gradient(90deg, #bc1d87 0 50%, #fff 50%);
}

.tg-silk-3::after {
  background: #bc1d87;
}

.tg-silk-4::before {
  background: repeating-linear-gradient(90deg, #20d5d7 0 7px, #fff35d 7px 14px);
}

.tg-silk-4::after {
  background: #20d5d7;
}

.tg-silk-5::before {
  background: linear-gradient(135deg, #fff 0 35%, #7436b6 35% 65%, #fff 65%);
}

.tg-silk-5::after {
  background: #7436b6;
}

.tg-silk-6::before {
  background: repeating-linear-gradient(45deg, #133e8a 0 6px, #f6c344 6px 12px);
}

.tg-silk-6::after {
  background: #133e8a;
}

.tg-racecards-page {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.tg-racecards-page-head {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  padding: 8px 0 18px;
}

.tg-racecards-page-head h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 0.98;
  margin: 5px 0 10px;
}

.tg-racecards-page-head p {
  color: var(--text-muted);
  margin: 0;
  max-width: 720px;
}

.tg-racecards-summary {
  border-left: 3px solid var(--accent);
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  padding: 3px 0 3px 12px;
}

.tg-racecards-summary span,
.tg-racecards-summary small {
  color: var(--text-muted);
}

.tg-racecards-summary strong {
  font-size: 1.24rem;
}

.tg-racecards-controls {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
}

.tg-racecards-date-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-racecards-date-tabs button {
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  color: var(--text-muted);
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-height: 58px;
  padding: 8px 12px;
  text-align: left;
}

.tg-racecards-date-tabs button:last-child {
  border-right: 0;
}

.tg-racecards-date-tabs button.is-active {
  background: var(--primary);
  color: #fff;
}

.tg-racecards-date-tabs button strong {
  font-size: 0.84rem;
}

.tg-racecards-date-tabs button span {
  font-size: 0.7rem;
}

.tg-racecards-filterbar {
  border-top: 1px solid var(--line);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px;
}

.tg-racecards-filterbar label {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}

.tg-racecards-filterbar label > span {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tg-racecards-filterbar select,
.tg-racecards-reset {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  min-height: 44px;
  padding: 0 10px;
  width: 100%;
}

.tg-racecards-reset {
  align-self: end;
  cursor: pointer;
}

.tg-racecards-reset:disabled {
  cursor: default;
  opacity: 0.45;
}

.tg-racecards-board {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}

.tg-racecards-board-head {
  align-items: flex-end;
  background: var(--panel-soft);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px;
}

.tg-racecards-board-head h2 {
  font-size: 1.05rem;
  margin: 3px 0 0;
}

.tg-racecards-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tg-racecards-legend span {
  align-items: center;
  color: var(--text-muted);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 850;
  gap: 5px;
}

.tg-racecards-legend span::before {
  background: var(--line);
  border-radius: 50%;
  content: "";
  height: 8px;
  width: 8px;
}

.tg-racecards-legend .is-result::before {
  background: var(--text-muted);
}

.tg-racecards-legend .is-live::before {
  background: var(--danger);
}

.tg-racecards-legend .is-upcoming::before {
  background: var(--primary-2);
}

.tg-racecards-meeting {
  border-top: 1px solid var(--line);
  display: grid;
  grid-gap: 0;
  gap: 0;
}

.tg-racecards-meeting > header {
  align-content: center;
  background: var(--panel);
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  padding: 12px 14px;
}

.tg-racecards-meeting > header strong {
  font-size: 0.98rem;
}

.tg-racecards-meeting > header span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.tg-racecards-races {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  padding: 8px;
}

.tg-racecards-race {
  background: #f3f7f1;
  border: 1px solid #bed0bf;
  border-radius: 5px;
  color: var(--text);
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  min-height: 92px;
  min-width: 0;
  padding: 9px;
  text-align: left;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.tg-racecards-race:hover,
.tg-racecards-race:focus-visible {
  border-color: var(--primary);
  box-shadow: 0 6px 14px rgba(47, 107, 69, 0.15);
  transform: translateY(-1px);
}

.tg-racecards-race.is-result {
  background: #f2f2f0;
  border-color: var(--line);
}

.tg-racecards-race.is-live {
  background: #fff3ef;
  border-color: #d89b88;
}

.tg-racecards-race.is-next {
  border-color: var(--accent);
  box-shadow: inset 0 3px 0 var(--accent);
}

.tg-racecards-race.is-selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 107, 69, 0.25);
}

.tg-racecards-race-topline {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
}

.tg-racecards-race-topline strong {
  font-size: 0.98rem;
}

.tg-racecards-race-topline em {
  color: var(--text-muted);
  font-size: 0.63rem;
  font-style: normal;
  font-weight: 850;
}

.tg-racecards-race.is-live .tg-racecards-race-topline em {
  color: var(--danger);
}

.tg-racecards-race.is-selected .tg-racecards-race-topline em,
.tg-racecards-race.is-selected b {
  color: #fff;
}

.tg-racecards-score {
  background: var(--panel-soft);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  justify-self: start;
  padding: 3px 7px;
  text-transform: uppercase;
}

.tg-racecards-score.is-strong {
  background: #d9eadc;
  color: var(--primary);
}

.tg-racecards-score.is-watch {
  background: #efe3bd;
  color: #7a5b13;
}

.tg-racecards-score.is-caution {
  background: #f5ddd4;
  color: var(--danger);
}

.tg-racecards-race.is-selected .tg-racecards-score {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tg-racecards-race b {
  color: var(--primary);
  font-size: 0.72rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.tg-selected-race {
  background: #173e31;
  border: 1px solid var(--accent);
  border-radius: 7px;
  bottom: 14px;
  box-shadow: 0 14px 34px rgba(30, 42, 47, 0.24);
  color: #fff;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 16px;
  position: -webkit-sticky;
  position: sticky;
  z-index: 12;
}

.tg-selected-race .tg-eyebrow {
  color: var(--accent-2);
}

.tg-selected-race h2 {
  font-size: 1.2rem;
  margin: 3px 0 4px;
}

.tg-selected-race p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
  margin: 0;
}

.tg-selected-race-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.tg-selected-race-facts span {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 5px 7px;
}

.tg-selected-race-signal {
  align-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  padding-left: 14px;
}

.tg-selected-race-signal span,
.tg-selected-race-signal small {
  color: rgba(255, 255, 255, 0.7);
}

.tg-selected-race-signal span {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tg-selected-race-actions {
  align-content: center;
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  grid-template-columns: minmax(118px, 1fr) minmax(104px, 1fr) 44px;
  position: relative;
}

.tg-selected-race-actions > a,
.tg-selected-race-actions > button {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 5px;
  color: #fff;
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0 10px;
  text-align: center;
}

.tg-selected-race-actions > a {
  background: var(--accent);
  border-color: var(--accent);
  color: #13231d;
}

.tg-selected-race-actions > button {
  background: transparent;
}

.tg-selected-race-actions > button.is-tracked {
  background: var(--primary-2);
}

.tg-selected-race-actions .tg-selected-race-clear {
  font-size: 1.2rem;
  padding: 0;
}

.tg-selected-race-message {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  grid-column: 1 / -1;
  min-height: 12px;
}

.tg-racecards-state {
  align-items: center;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  gap: 12px;
  min-height: 90px;
  padding: 16px;
}

.tg-racecards-state > span {
  align-items: center;
  background: var(--primary);
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex: 0 0 34px;
  font-size: 0.75rem;
  font-weight: 900;
  height: 34px;
  justify-content: center;
}

.tg-racecards-state p {
  color: var(--text-muted);
  margin: 3px 0 0;
}

@media (max-width: 759px) {
  html {
    scroll-padding-bottom: 64px;
  }

  body {
    background: var(--bg);
  }

  .tg-shell {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }

  .tg-topbar-inner {
    min-height: 28px;
  }

  .tg-masthead-top {
    gap: 10px;
    padding: 8px 10px;
  }

  .tg-logo {
    gap: 8px;
  }

  .tg-logo-mark {
    height: 32px;
    width: 32px;
  }

  .tg-logo-copy strong {
    font-size: 1.12rem;
  }

  .tg-logo small {
    font-size: 0.6rem;
  }

  .tg-main {
    gap: 14px;
    padding: 12px 10px 24px;
  }

  .tg-hero {
    padding: 16px;
  }

  .tg-hero h1 {
    font-size: 1.72rem;
    overflow-wrap: anywhere;
  }

  .tg-hero p {
    font-size: 0.9rem;
  }

  .tg-hero-action,
  .tg-hero-action a {
    width: 100%;
  }

  .tg-rp-section-heading h1,
  .tg-offers-head h2 {
    font-size: 1.08rem;
  }

  .tg-day-tabs {
    max-width: none;
  }

  .tg-day-tabs button {
    min-height: 44px;
  }

  .tg-racing-row {
    gap: 9px;
    padding: 10px 8px;
  }

  .tg-racing-times {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tg-racing-times a,
  .tg-racing-score {
    min-height: 66px;
  }

  .tg-lightning-trigger,
  .tg-lightning-actions a,
  .tg-lightning-actions button,
  .tg-table-action,
  .tg-subscription-card > a,
  .tg-auth-submit {
    min-height: 44px;
  }

  .tg-lightning-dialog {
    border-radius: 7px;
    max-height: calc(100svh - 24px);
    overflow-y: auto;
    padding: 16px;
    width: calc(100% - 20px);
  }

  .tg-verdict-grid {
    gap: 10px;
  }

  .tg-decision-table-wrap {
    border: 0;
    overflow: visible;
  }

  .tg-decision-table,
  .tg-decision-table tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .tg-decision-table thead {
    display: none;
  }

  .tg-decision-table tbody {
    display: grid;
    grid-gap: 10px;
    gap: 10px;
  }

  .tg-decision-table tr {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 7px;
    box-shadow: 0 7px 18px rgba(30, 42, 47, 0.08);
    display: grid;
    grid-gap: 0 8px;
    gap: 0 8px;
    grid-template-columns: 32px minmax(0, 1fr);
    overflow: hidden;
    padding: 10px;
  }

  .tg-decision-table td,
  .tg-decision-table tr:nth-child(even) td,
  .tg-decision-table tbody tr:hover td {
    background: transparent;
    border: 0;
    padding: 8px 0;
  }

  .tg-decision-rank-cell {
    grid-column: 1;
    grid-row: 1;
  }

  .tg-decision-runner-cell {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .tg-decision-runner {
    grid-template-columns: 38px minmax(0, 1fr);
    min-width: 0;
  }

  .tg-decision-table td[data-label] {
    align-items: start;
    border-top: 1px solid var(--line-soft);
    display: grid;
    grid-gap: 10px;
    gap: 10px;
    grid-column: 1 / -1;
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .tg-decision-table td[data-label]::before {
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 900;
    padding-top: 4px;
    text-transform: uppercase;
  }

  .tg-row-reason {
    max-width: none;
  }

  .tg-signal-metric {
    grid-template-columns: minmax(0, 1fr) 44px;
    width: 100%;
  }

  .tg-risk-pill,
  .tg-verdict-pill {
    justify-self: start;
  }

  .tg-model-registry-head {
    display: none;
  }

  .tg-model-registry-row {
    gap: 0;
  }

  .tg-model-registry-row > span {
    border-top: 1px solid var(--line-soft);
    display: grid;
    grid-gap: 8px;
    gap: 8px;
    grid-template-columns: 106px minmax(0, 1fr);
    padding: 9px 0;
  }

  .tg-model-registry-row > span::before {
    color: var(--text-muted);
    content: attr(data-label);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .tg-account-sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .tg-account-sidebar nav a {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
  }

  .tg-affiliate-pills,
  .tg-filter-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .tg-affiliate-pills button,
  .tg-filter-tabs button {
    flex: 0 0 auto;
    min-height: 42px;
  }

  .tg-footer-main {
    padding-bottom: 20px;
  }

  .tg-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-racecards-page-head {
    align-items: start;
  }

  .tg-racecards-page-head h1 {
    font-size: 2.15rem;
  }

  .tg-racecards-date-tabs button {
    padding: 8px;
  }

  .tg-racecards-filterbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-racecards-filterbar label:first-child,
  .tg-racecards-reset {
    grid-column: 1 / -1;
  }

  .tg-racecards-board-head {
    align-items: start;
    display: grid;
  }

  .tg-racecards-meeting > header {
    border-bottom: 1px solid var(--line-soft);
  }

  .tg-racecards-races {
    display: grid;
    grid-auto-columns: 126px;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .tg-racecards-race {
    scroll-snap-align: start;
  }

  .tg-selected-race {
    bottom: calc(62px + env(safe-area-inset-bottom));
  }

  .tg-selected-race-signal {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 0 0;
  }

  .tg-selected-race-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px;
  }
}

@media (min-width: 760px) {
  .tg-top-menu,
  .tg-masthead-tools,
  .tg-primary-nav {
    display: flex;
  }

  .tg-mobile-menu,
  .tg-mobile-bottom-nav {
    display: none;
  }

  .tg-racecards-page-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tg-racecards-controls {
    grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
  }

  .tg-racecards-filterbar {
    border-left: 1px solid var(--line);
    border-top: 0;
    grid-template-columns: minmax(130px, 1.2fr) minmax(130px, 1fr) minmax(120px, 0.9fr) minmax(104px, 0.7fr);
  }

  .tg-racecards-meeting {
    grid-template-columns: 170px minmax(0, 1fr);
  }

  .tg-selected-race {
    grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.7fr) minmax(280px, 0.8fr);
  }

  .tg-topbar-inner {
    padding: 0 18px;
  }

  .tg-masthead-top {
    padding: 10px 18px 9px;
  }

  .tg-primary-nav {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tg-site-search {
    display: flex;
    flex: 1 1 420px;
    max-width: 430px;
  }

  .tg-main {
    padding: 14px 18px 30px;
  }

  .tg-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 24px;
  }

  .tg-hero h1 {
    font-size: 3rem;
  }

  .tg-affiliate-hero {
    grid-template-columns: minmax(0, 1fr) 250px;
    padding: 24px;
  }

  .tg-affiliate-hero h1 {
    font-size: 2.7rem;
  }

  .tg-affiliate-toolbar {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .tg-affiliate-trust {
    grid-column: 1 / -1;
  }

  .tg-affiliate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-home-frame {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
    padding: 22px;
  }

  .tg-home-intro h1 {
    font-size: 2.65rem;
  }

  .tg-home-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  }

  .tg-home-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  }

  .tg-rp-home-grid {
    grid-template-columns: minmax(0, 1fr) 286px;
  }

  .tg-racing-headrow {
    grid-template-columns: minmax(0, 1fr) 290px;
  }

  .tg-racing-row {
    align-items: center;
    grid-template-columns: 220px minmax(0, 1fr);
    padding: 8px 16px;
  }

  .tg-lightning-dialog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tg-lightning-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tg-lightning-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tg-race-decision-head {
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
  }

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

  .tg-layout-wide {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .tg-metrics,
  .tg-pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

    .tg-performance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tg-daily-trust-kpis {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .tg-performance-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tg-performance-report-row {
    grid-template-columns: minmax(210px, 1fr) repeat(5, minmax(92px, 0.22fr));
  }

  .tg-daily-report-row {
    grid-template-columns: minmax(240px, 1fr) repeat(5, minmax(92px, 0.22fr));
  }

  .tg-model-registry-head,
  .tg-model-registry-row {
    grid-template-columns: minmax(130px, 0.7fr) minmax(140px, 0.8fr) minmax(170px, 1fr) minmax(100px, 0.6fr) minmax(220px, 1.2fr);
  }

  .tg-race-grid,
  .tg-prediction-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tg-picks-strip .tg-prediction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tg-checkout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .tg-account-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .tg-account-sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 160px;
  }

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

  .tg-account-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tg-subscription-grid-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tg-runner-heading,
  .tg-runner-row {
    grid-template-columns: 32px minmax(190px, 1fr) 70px 70px;
  }

  .tg-runner-heading {
    display: grid;
  }

  .tg-runner-row > strong,
  .tg-runner-row > .tg-positive,
  .tg-runner-row > .tg-negative {
    grid-column: auto;
  }

  .tg-footer-main {
    grid-template-columns: 240px minmax(0, 1fr);
    padding-left: 18px;
    padding-right: 18px;
  }

  .tg-footer-responsible,
  .tg-footer-legal {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tg-footer-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .tg-lightning {
    align-items: stretch;
    grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.8fr) minmax(260px, 0.9fr);
  }

  .tg-lightning-dialog-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tg-affiliate-layout {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .tg-affiliate-toolbar {
    grid-template-columns: 190px minmax(0, 1fr) auto;
  }

  .tg-affiliate-trust {
    grid-column: auto;
  }

  .tg-affiliate-rail {
    position: -webkit-sticky;
    position: sticky;
    top: 150px;
  }
}

/* Decision-first MVP experience */
.tg-decision-signal {
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 5px;
  display: inline-grid;
  gap: 1px 7px;
  grid-template-columns: 9px auto;
  justify-self: start;
  line-height: 1.05;
  min-width: 104px;
  padding: 6px 8px;
  white-space: nowrap;
}

.tg-decision-signal i {
  background: currentColor;
  border-radius: 50%;
  grid-row: 1 / span 2;
  height: 9px;
  width: 9px;
}

.tg-decision-signal strong {
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.tg-decision-signal small {
  font-size: 0.62rem;
  font-weight: 750;
  opacity: 0.78;
}

.tg-decision-signal.is-compact {
  display: inline-flex;
  gap: 5px;
  min-width: 0;
  padding: 4px 7px;
}

.tg-decision-signal.is-playable {
  background: #dcecdf;
  color: #1f633a;
}

.tg-decision-signal.is-caution {
  background: #f4e9c6;
  color: #76550d;
}

.tg-decision-signal.is-pass {
  background: #f4ded7;
  color: #a33e28;
}

.tg-decision-signal.is-unavailable {
  background: #eef1ef;
  color: var(--text-muted);
}

.tg-intelligence-hero {
  background: #073d2e;
  border-bottom: 4px solid var(--accent);
  border-radius: 7px;
  color: #fff;
  display: grid;
  grid-gap: 24px;
  gap: 24px;
  overflow: hidden;
  padding: 30px;
  position: relative;
}

.tg-intelligence-hero::after {
  background: #0d5741;
  content: "";
  height: 180px;
  opacity: 0.42;
  position: absolute;
  right: -70px;
  top: -84px;
  transform: rotate(18deg);
  width: 280px;
}

.tg-intelligence-hero > * {
  position: relative;
  z-index: 1;
}

.tg-intelligence-hero .tg-eyebrow,
.tg-today-opportunity .tg-eyebrow,
.tg-home-offers .tg-eyebrow {
  color: var(--accent-2);
}

.tg-intelligence-hero h1 {
  font-size: 2.7rem;
  line-height: 1;
  margin: 7px 0 9px;
}

.tg-intelligence-hero > div > p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  margin: 0;
}

.tg-intelligence-metrics {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tg-intelligence-metrics > article {
  align-content: center;
  background: rgba(0, 0, 0, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  min-height: 92px;
  padding: 13px;
}

.tg-intelligence-metrics > article > strong {
  font-size: 1.45rem;
}

.tg-intelligence-metrics > article > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.67rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.tg-intelligence-metrics .tg-decision-signal {
  background: #e0eee2;
}

.tg-today-opportunity {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: var(--shadow);
  display: grid;
  grid-gap: 0;
  gap: 0;
  overflow: hidden;
}

.tg-today-opportunity > header,
.tg-opportunity-title,
.tg-opportunity-grid {
  padding: 16px 18px;
}

.tg-today-opportunity > header {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.tg-today-opportunity > header h2,
.tg-opportunity-title h3,
.tg-opportunity-pick h3 {
  margin: 4px 0 0;
}

.tg-today-opportunity > header h2 {
  font-size: 1.05rem;
}

.tg-today-opportunity i,
.tg-opportunity-pick i {
  border-left: 1px solid var(--line);
  display: inline-block;
  height: 13px;
  margin: 0 7px;
  vertical-align: middle;
}

.tg-opportunity-title {
  border-bottom: 1px solid var(--line-soft);
}

.tg-opportunity-title > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.tg-opportunity-title span {
  background: var(--panel-2);
  border-radius: 3px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 7px;
}

.tg-opportunity-grid {
  display: grid;
  grid-gap: 20px;
  gap: 20px;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
}

.tg-opportunity-pick {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.tg-opportunity-pick h3 {
  font-size: 1.45rem;
}

.tg-opportunity-pick > p {
  color: var(--text-muted);
  margin: 0;
}

.tg-opportunity-facts {
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
}

.tg-opportunity-facts > div {
  border-right: 1px solid var(--line);
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  min-height: 70px;
  padding: 12px 8px;
  text-align: center;
}

.tg-opportunity-facts > div:last-child {
  border-right: 0;
}

.tg-opportunity-facts strong {
  font-size: 1.05rem;
}

.tg-opportunity-facts span {
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tg-opportunity-facts .is-positive {
  background: #ddf0e2;
  color: var(--primary);
}

.tg-opportunity-cta {
  align-items: center;
  background: #f4bd28;
  border: 1px solid #d59f0b;
  border-radius: 5px;
  color: #152326;
  display: flex;
  font-weight: 950;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
}

.tg-opportunity-cta span {
  margin-left: 8px;
}

.tg-opportunity-reasons {
  border-left: 1px solid var(--line-soft);
  padding-left: 20px;
}

.tg-opportunity-reasons ul {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  list-style: none;
  margin: 12px 0;
  padding: 0;
}

.tg-opportunity-reasons li {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
  padding-left: 20px;
  position: relative;
}

.tg-opportunity-reasons li::before {
  color: var(--primary);
  content: "\2713";
  font-weight: 950;
  left: 0;
  position: absolute;
}

.tg-opportunity-reasons > a,
.tg-home-section-head > a {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 950;
}

.tg-today-opportunity.is-empty {
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 18px;
}

.tg-today-opportunity.is-empty h2,
.tg-today-opportunity.is-empty p {
  margin: 3px 0;
}

.tg-home-racing-board {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.tg-time-result {
  color: var(--text-muted);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.tg-racing-times > a .tg-decision-signal {
  justify-self: center;
}

.tg-racing-times > a .tg-decision-signal strong {
  font-size: 0.59rem;
}

.tg-home-offers {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.tg-home-section-head {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.tg-home-section-head h2 {
  margin: 3px 0 0;
}

.tg-home-offer-grid {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-home-offer {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  overflow: hidden;
  padding: 0 14px 14px;
}

.tg-home-offer > div {
  align-items: center;
  background: #10272b;
  color: #fff;
  display: flex;
  justify-content: space-between;
  margin: 0 -14px;
  min-height: 42px;
  padding: 9px 14px;
}

.tg-home-offer > div span {
  border: 1px solid currentColor;
  border-radius: 3px;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 4px 6px;
  text-transform: uppercase;
}

.tg-home-offer h3 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.tg-home-offer > p {
  background: var(--panel-blue);
  border-left: 3px solid var(--accent);
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  margin: 0;
  padding: 9px;
}

.tg-home-offer > p strong {
  color: var(--primary);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.tg-home-offer > p span,
.tg-home-offer small {
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.35;
}

.tg-home-offer > a {
  background: var(--primary);
  border-radius: 4px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  padding: 11px;
  text-align: center;
  text-transform: uppercase;
}

.tg-decision-key {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px;
}

.tg-decision-key p {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0 0 0 auto;
}

.tg-predictions-page,
.tg-tracker-page {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
}

.tg-page-intro {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 8px 0 18px;
}

.tg-page-intro h1 {
  font-size: 2.6rem;
  line-height: 1;
  margin: 5px 0 9px;
}

.tg-page-intro p {
  color: var(--text-muted);
  margin: 0;
  max-width: 680px;
}

.tg-page-intro-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.tg-page-intro-stats span {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  font-size: 0.66rem;
  grid-gap: 2px;
  gap: 2px;
  min-width: 90px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.tg-page-intro-stats strong {
  font-size: 1rem;
}

.tg-prediction-controls {
  align-items: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: minmax(340px, 1fr) 180px 160px;
  padding: 12px;
}

.tg-segmented-control {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tg-segmented-control button {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-right: 0;
  font-size: 0.74rem;
  font-weight: 850;
  min-height: 42px;
}

.tg-segmented-control button:first-child { border-radius: 5px 0 0 5px; }
.tg-segmented-control button:last-child { border-radius: 0 5px 5px 0; border-right: 1px solid var(--line); }
.tg-segmented-control button.is-active { background: var(--text); color: #fff; }

.tg-prediction-controls label,
.tg-tracker-toolbar label {
  display: grid;
  grid-gap: 5px;
  gap: 5px;
}

.tg-prediction-controls label > span,
.tg-tracker-toolbar label > span {
  color: var(--text-muted);
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tg-prediction-controls select,
.tg-tracker-toolbar input {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 42px;
  padding: 0 10px;
  width: 100%;
}

.tg-live-prediction-list {
  display: grid;
  grid-gap: 9px;
  gap: 9px;
}

.tg-live-prediction {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  grid-template-columns: minmax(170px, 0.7fr) minmax(210px, 0.9fr) minmax(430px, 1.5fr);
  padding: 13px;
}

.tg-live-prediction.is-playable { border-left-color: var(--primary); }
.tg-live-prediction.is-caution { border-left-color: var(--accent); }
.tg-live-prediction.is-pass { border-left-color: var(--danger); }

.tg-live-prediction-race,
.tg-live-prediction-runner > div {
  display: grid;
  grid-gap: 4px;
  gap: 4px;
}

.tg-live-prediction-race > span,
.tg-live-prediction-runner span {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.tg-live-prediction-runner {
  align-items: center;
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  grid-template-columns: 40px minmax(0, 1fr);
}

.tg-live-prediction-metrics {
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
}

.tg-live-prediction-metrics > div {
  border-right: 1px solid var(--line-soft);
  display: grid;
  grid-gap: 3px;
  gap: 3px;
  padding: 8px;
}

.tg-live-prediction-metrics > div:last-child { border-right: 0; }
.tg-live-prediction-metrics span { color: var(--text-muted); font-size: 0.61rem; text-transform: uppercase; }
.tg-live-prediction-metrics strong { font-size: 0.88rem; }
.tg-live-prediction > p { color: var(--text-muted); font-size: 0.76rem; grid-column: 1 / 4; margin: 0; }
.tg-live-prediction > a { color: var(--primary); font-size: 0.78rem; font-weight: 950; grid-column: 1 / 4; }

.tg-tracker-toolbar {
  align-items: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 7px;
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.tg-tracker-toolbar nav {
  display: flex;
}

.tg-tracker-toolbar nav a {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 850;
  min-height: 42px;
  padding: 13px 16px;
}

.tg-tracker-toolbar nav a:first-child { border-radius: 5px 0 0 5px; }
.tg-tracker-toolbar nav a:last-child { border-left: 0; border-radius: 0 5px 5px 0; }
.tg-tracker-toolbar nav a.is-active { background: var(--text); color: #fff; }

.tg-tracker-notice {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin: -3px 0 0;
}

.tg-tracker-section {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
}

.tg-tracker-section > header h2 {
  font-size: 1.15rem;
  margin: 3px 0 0;
}

.tg-tracker-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tg-tracker-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--line);
  border-radius: 6px;
  display: grid;
  grid-gap: 13px;
  gap: 13px;
  padding: 13px;
}

.tg-tracker-card.is-playable { border-top-color: var(--primary); }
.tg-tracker-card.is-caution { border-top-color: var(--accent); }
.tg-tracker-card.is-pass { border-top-color: var(--danger); }

.tg-tracker-card-title {
  align-items: center;
  display: grid;
  grid-gap: 9px;
  gap: 9px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
}

.tg-tracker-card-title > div,
.tg-tracker-card-race {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.tg-tracker-card-title span,
.tg-tracker-card-race span,
.tg-tracker-card-race small {
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.tg-tracker-card-race {
  background: var(--panel-soft);
  border-radius: 4px;
  padding: 9px;
}

.tg-tracker-card-actions {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tg-tracker-card-actions a,
.tg-tracker-card-actions button {
  border: 1px solid var(--primary);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 900;
  min-height: 36px;
  padding: 9px;
  text-align: center;
}

.tg-tracker-card-actions a,
.tg-tracker-card-actions button.is-followed { background: var(--primary); color: #fff; }
.tg-tracker-card-actions button { background: transparent; color: var(--primary); }

.tg-verdict-card.is-playable { border-color: rgba(47, 107, 69, 0.42); box-shadow: inset 4px 0 0 var(--primary); }
.tg-verdict-card.is-caution { border-color: rgba(184, 137, 45, 0.48); box-shadow: inset 4px 0 0 var(--accent); }
.tg-verdict-card-head .tg-decision-signal { margin-left: auto; }
.tg-result-card-status { align-items: center; display: flex; gap: 8px; }

.tg-lightning-selector button > .tg-decision-signal,
.tg-lightning-dialog-selector button > .tg-decision-signal {
  margin: 0;
}

.tg-lightning-score > .tg-decision-signal {
  margin-top: 5px;
}

.tg-racecards-race > .tg-decision-signal {
  justify-self: start;
}

.tg-racecards-race.is-selected > .tg-decision-signal {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.tg-selected-race-facts .tg-decision-signal {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

@media (max-width: 1039px) {
  .tg-intelligence-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-opportunity-grid { grid-template-columns: 1fr; }
  .tg-opportunity-reasons { border-left: 0; border-top: 1px solid var(--line-soft); padding-left: 0; padding-top: 16px; }
  .tg-home-offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-live-prediction { grid-template-columns: minmax(180px, 0.8fr) minmax(220px, 1fr); }
  .tg-live-prediction-metrics, .tg-live-prediction > p, .tg-live-prediction > a { grid-column: 1 / 3; }
  .tg-tracker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .tg-intelligence-hero { padding: 20px 16px; }
  .tg-intelligence-hero h1, .tg-page-intro h1 { font-size: 2rem; }
  .tg-intelligence-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-intelligence-metrics > article { min-height: 82px; }
  .tg-today-opportunity > header { align-items: flex-start; flex-direction: column; }
  .tg-today-opportunity > header, .tg-opportunity-title, .tg-opportunity-grid { padding: 14px; }
  .tg-opportunity-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-opportunity-facts > div { border-bottom: 1px solid var(--line); }
  .tg-opportunity-facts > div:nth-child(2n) { border-right: 0; }
  .tg-opportunity-facts > div:last-child { grid-column: 1 / 3; }
  .tg-today-opportunity.is-empty { align-items: start; grid-template-columns: 1fr; }
  .tg-home-section-head, .tg-page-intro { align-items: flex-start; flex-direction: column; }
  .tg-home-offer-grid, .tg-tracker-grid { grid-template-columns: 1fr; }
  .tg-prediction-controls { grid-template-columns: 1fr; }
  .tg-segmented-control { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tg-segmented-control button, .tg-segmented-control button:first-child, .tg-segmented-control button:last-child { border: 1px solid var(--line); border-radius: 5px; }
  .tg-live-prediction { grid-template-columns: 1fr; }
  .tg-live-prediction-metrics, .tg-live-prediction > p, .tg-live-prediction > a { grid-column: 1; }
  .tg-live-prediction-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-live-prediction-metrics > div:nth-child(2n) { border-right: 0; }
  .tg-live-prediction-metrics > div:last-child { grid-column: 1 / 3; }
  .tg-decision-key { align-items: flex-start; }
  .tg-decision-key p { margin-left: 0; width: 100%; }
  .tg-tracker-toolbar { grid-template-columns: 1fr; }
  .tg-tracker-toolbar nav a { flex: 1 1; text-align: center; }
  .tg-tracker-card-title { grid-template-columns: 40px minmax(0, 1fr); }
  .tg-tracker-card-title .tg-decision-signal { grid-column: 1 / 3; }
}

@media (max-width: 430px) {
  .tg-intelligence-metrics { grid-template-columns: 1fr; }
  .tg-opportunity-title > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-page-intro-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .tg-page-intro-stats span { min-width: 0; }
  .tg-tracker-card-actions { grid-template-columns: 1fr; }
}

/*!*********************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/mvp.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************/
:root {
  --mvp-ink: #14231f;
  --mvp-muted: #5b6b66;
  --mvp-green: #004b3c;
  --mvp-green-bright: #08785e;
  --mvp-green-dark: #00342b;
  --mvp-green-soft: #eaf5f0;
  --mvp-mint: #b8f0dc;
  --mvp-yellow: #ffbd22;
  --mvp-yellow-strong: #edae15;
  --mvp-yellow-soft: #fff6d9;
  --mvp-red: #c93332;
  --mvp-red-soft: #faece8;
  --mvp-amber: #8d6a08;
  --mvp-amber-soft: #fff3cf;
  --mvp-blue: #1b6874;
  --mvp-paper: #fff;
  --mvp-bg: #f5f7f7;
  --mvp-soft: #edf2f0;
  --mvp-line: #d7e0dd;
  --mvp-shadow: 0 10px 28px rgb(13 48 39 / 8%);
  --mvp-shadow-strong: 0 18px 46px rgb(8 43 35 / 14%);
  --bg: var(--mvp-bg);
  --bg-soft: var(--mvp-soft);
  --bg-warm: var(--mvp-soft);
  --panel: var(--mvp-paper);
  --panel-2: #f1f5f3;
  --panel-soft: #f1f5f3;
  --panel-blue: #eaf3f2;
  --line: var(--mvp-line);
  --line-soft: #e8eeec;
  --text: var(--mvp-ink);
  --text-muted: var(--mvp-muted);
  --primary: var(--mvp-green);
  --primary-2: var(--mvp-green-bright);
  --accent: var(--mvp-yellow);
  --accent-2: #ffdb79;
  --success: #26724d;
  --danger: var(--mvp-red);
  --info: var(--mvp-blue);
  --black: var(--mvp-ink);
  --shadow: var(--mvp-shadow);
}

html { background: var(--mvp-bg); }
body {
  background: var(--mvp-bg);
  color: var(--mvp-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}
button, input, select, textarea { letter-spacing: 0; }
button, a, input, select { transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
:focus-visible { outline: 3px solid rgb(255 189 34 / 55%); outline-offset: 2px; }
.tg-ui-icon { display: inline-block; flex: 0 0 auto; vertical-align: -2px; }

/* Shared brand asset */
.tg-brand-logo {
  display: inline-flex;
  align-items: center;
  width: min(100%, 220px);
  line-height: 0;
  text-decoration: none;
}
.tg-brand-logo img { display: block; width: 100%; height: auto; }
.tg-brand-logo.is-header { flex: 0 0 220px; }
.tg-brand-logo.is-auth { display: flex; width: min(100%, 245px); margin: 0 auto 18px; }
.tg-brand-logo.is-footer { width: min(100%, 182px); margin-bottom: 14px; }

/* Shared application shell */
.tg-shell { min-height: 100vh; background: var(--mvp-bg); }
.tg-masthead { border: 0; border-bottom: 1px solid var(--mvp-line); background: rgb(255 255 255 / 96%); box-shadow: none; }
.tg-topbar { min-height: 32px; border-bottom: 1px solid #edf1ef; background: #f8faf9; color: var(--mvp-green); }
.tg-topbar-inner { width: min(1180px, calc(100% - 32px)); }
.tg-topbar-inner > span, .tg-top-menu a { font-size: 11px; font-weight: 800; }
.tg-top-menu { gap: 18px; }
.tg-top-menu a { color: #25332f; }
.tg-top-menu a::after, .tg-primary-nav a::after { display: none; }
.tg-masthead-top { width: min(1180px, calc(100% - 32px)); min-height: 66px; gap: 28px; padding: 12px 0 5px; }
.tg-masthead-tools { gap: 14px; }
.tg-logo { min-width: 238px; gap: 0; color: var(--mvp-green-dark); }
.tg-logo-mark { display: none; }
.tg-logo-copy strong { color: var(--mvp-green-dark); font-size: 27px; line-height: 1; }
.tg-logo small { display: none; }
.tg-site-search { width: min(100%, 420px); }
.tg-site-search input { min-height: 38px; border: 1px solid #cbd6d2; border-right: 0; border-radius: 5px 0 0 5px; background: #f8faf9; box-shadow: none; }
.tg-site-search button { width: 42px; min-height: 38px; border: 1px solid #cbd6d2; border-left: 0; border-radius: 0 5px 5px 0; background: #f8faf9; color: var(--mvp-ink); }
.tg-site-search:focus-within input, .tg-site-search:focus-within button { border-color: var(--mvp-green); background: #fff; box-shadow: none; }
.tg-account-actions { gap: 8px; }
.tg-account-actions a, .tg-pro-button, .tg-account-actions .tg-free-bets-button, .tg-account-actions .tg-pro-button {
  min-height: 38px; padding: 9px 14px; border: 0; border-radius: 5px; box-shadow: none; font-size: 12px;
}
.tg-account-actions .tg-free-bets-button { background: var(--mvp-green); color: #fff; }
.tg-account-actions .tg-pro-button, .tg-pro-button { background: var(--mvp-red); color: #fff; }
.tg-account-actions a:hover, .tg-pro-button:hover { transform: translateY(-1px); filter: brightness(.96); }
.tg-primary-nav { width: min(1180px, calc(100% - 32px)); min-height: 35px; gap: 24px; padding: 0 0 10px; }
.tg-primary-nav a { padding: 4px 0; color: #21302c; font-size: 14px; font-weight: 600; }
.tg-primary-nav a:hover { color: var(--mvp-green-bright); }
.tg-main { width: min(1180px, calc(100% - 32px)); margin-inline: auto; padding: 28px 0 64px; }
.tg-main h1, .tg-main h2, .tg-main h3, .tg-main p { letter-spacing: 0; }

/* Shared page rhythm */
.tg-mvp-page { display: grid; grid-gap: 34px; gap: 34px; min-width: 0; max-width: 100%; }
.tg-mvp-page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; min-height: 150px;
  padding: 30px; border: 0; border-radius: 8px; background: var(--mvp-green); color: #fff; box-shadow: var(--mvp-shadow);
}
.tg-mvp-page-copy { max-width: 760px; }
.tg-mvp-eyebrow { display: block; color: var(--mvp-yellow-strong); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.tg-mvp-page-head h1 { margin: 6px 0 8px; color: #fff; font-size: clamp(32px, 5vw, 48px); line-height: 1.02; }
.tg-mvp-page-head p { max-width: 720px; margin: 0; color: #e2eeea; font-size: 15px; line-height: 1.55; }
.tg-mvp-page-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; }
.tg-mvp-page-meta > * { padding: 0; border: 0; border-radius: 0; color: #fff; font-size: 12px; }
.tg-mvp-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-mvp-page-actions a, .tg-mvp-page-actions button, .tg-mvp-primary, .tg-mvp-secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 17px; border: 0;
  border-radius: 5px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.tg-mvp-page-actions a, .tg-mvp-primary { background: var(--mvp-yellow); color: #10251f; }
.tg-mvp-page-actions a:hover, .tg-mvp-primary:hover { background: #ffc83f; transform: translateY(-1px); }
.tg-mvp-secondary { background: var(--mvp-soft); color: var(--mvp-green); }
.tg-mvp-secondary:hover { background: #e2ece8; }
.tg-mvp-section { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.tg-mvp-section + .tg-mvp-section { margin-top: 2px; }
.tg-mvp-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.tg-mvp-section-head h2 { margin: 3px 0 0; color: var(--mvp-ink); font-size: 26px; line-height: 1.12; }
.tg-mvp-section-head p { max-width: 720px; margin: 6px 0 0; color: var(--mvp-muted); line-height: 1.5; }
.tg-mvp-section-action a { color: var(--mvp-green); font-weight: 800; }
.tg-responsible-page .tg-mvp-section-head .tg-mvp-eyebrow,
.tg-responsible-page .tg-mvp-section-head h2,
.tg-responsible-page .tg-responsible-support-card { display: block; height: 100%; color: inherit; text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease; }
.tg-responsible-page .tg-responsible-support-card:hover { box-shadow: 0 9px 24px rgb(15 52 42 / 12%); transform: translateY(-2px); }
.tg-policy-page .tg-mvp-section-head .tg-mvp-eyebrow { font-size: 20px; }
.tg-policy-page .tg-mvp-section-head h2 { font-size: 20px; line-height: 1.18; }

/* Metrics and evidence */
.tg-mvp-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.tg-mvp-metric { min-height: 98px; padding: 16px; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 3px 14px rgb(15 52 42 / 6%); }
.tg-mvp-metric > span { display: flex; align-items: center; gap: 7px; color: var(--mvp-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-mvp-metric strong { display: block; margin-top: 9px; color: var(--mvp-ink); font-size: 27px; line-height: 1; }
.tg-mvp-metric small { display: block; margin-top: 8px; color: var(--mvp-muted); line-height: 1.3; }
.tg-mvp-metric.is-positive { background: var(--mvp-green-soft); }
.tg-mvp-metric.is-warning { background: var(--mvp-yellow-soft); }
.tg-mvp-metric.is-negative { background: var(--mvp-red-soft); }
.tg-mvp-metric.is-info { background: #eaf3f4; }
.tg-mvp-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 18px; gap: 18px; }
.tg-mvp-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 18px; gap: 18px; }
.tg-mvp-split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); grid-gap: 24px; gap: 24px; }
.tg-mvp-panel { padding: 20px; border: 0; border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-mvp-panel h2, .tg-mvp-panel h3 { margin: 0 0 10px; }
.tg-mvp-panel p { color: var(--mvp-muted); line-height: 1.5; }
.tg-mvp-notice { padding: 15px 18px; border: 0; border-left: 3px solid var(--mvp-blue); border-radius: 0 5px 5px 0; background: #edf5f5; }
.tg-mvp-notice p { margin: 4px 0 0; }
.tg-mvp-notice.is-warning { border-color: var(--mvp-yellow-strong); background: var(--mvp-yellow-soft); }
.tg-mvp-notice.is-danger { border-color: var(--mvp-red); background: var(--mvp-red-soft); }
.tg-mvp-notice.is-success { border-color: #26724d; background: var(--mvp-green-soft); }
.tg-mvp-checkout-assignment { margin: 0; color: var(--mvp-muted); font-size: 12px; }
.tg-mvp-activation-status { display: inline-flex; align-items: center; gap: 8px; }
.tg-mvp-activation-status svg { flex: 0 0 auto; }
.tg-mvp-activation-status .is-spinning { animation: tg-mvp-spin .9s linear infinite; }
.tg-mvp-success-action { width: -moz-fit-content; width: fit-content; text-decoration: none; }
@keyframes tg-mvp-spin { to { transform: rotate(360deg); } }
.tg-mvp-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--mvp-line); }
.tg-mvp-tabs a, .tg-mvp-tabs button { flex: 0 0 auto; padding: 11px 0 10px; border: 0; background: transparent; color: var(--mvp-muted); font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.tg-mvp-tabs a.is-active, .tg-mvp-tabs button.is-active { color: var(--mvp-green); box-shadow: inset 0 -2px var(--mvp-green); }
.tg-mvp-empty { display: flex; align-items: center; gap: 14px; padding: 24px; border: 0; border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-mvp-empty > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--mvp-green-soft); color: var(--mvp-green); font-weight: 900; }
.tg-mvp-empty h2, .tg-mvp-empty p { margin: 0; }
.tg-mvp-empty p { color: var(--mvp-muted); }
.tg-mvp-empty a { margin-left: auto; color: var(--mvp-green); font-weight: 800; }

/* Runner media */
.tg-mvp-silk, .tg-live-silk { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; overflow: hidden; border: 0; border-radius: 50%; background: #f4f8f6; box-shadow: inset 0 0 0 1px #d8e3de; }
.tg-mvp-silk img, .tg-live-silk img, .tg-live-silk .tg-silk { width: 100%; height: 100%; object-fit: contain; }
.tg-live-silk.is-small { width: 34px; height: 34px; }
.tg-live-silk.is-large { width: 64px; height: 64px; }
.tg-mvp-runner { display: flex; align-items: center; gap: 12px; min-width: 180px; }
.tg-mvp-runner strong, .tg-mvp-runner span { display: block; }
.tg-mvp-runner span { color: var(--mvp-muted); font-size: 12px; }

/* Decision signals are labels, never boxed controls. */
.tg-mvp-signal, .tg-decision-signal,
.tg-home-racing-board .tg-decision-signal,
.tg-racing-times > a .tg-decision-signal,
.tg-racecards-race > .tg-decision-signal,
.tg-selected-race-facts .tg-decision-signal {
  display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; width: auto; min-width: 0; min-height: 0;
  padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 11px; font-weight: 850;
  line-height: 1.25; text-transform: uppercase; white-space: normal;
}
.tg-mvp-signal::before, .tg-decision-signal i { flex: 0 0 auto; width: 7px; height: 7px; border: 0; border-radius: 50%; background: currentColor; }
.tg-decision-signal strong { color: inherit; font: inherit; }
.tg-decision-signal.is-compact { padding: 0; }
.tg-mvp-signal.is-playable, .tg-decision-signal.is-playable { color: #217146; background: transparent; }
.tg-mvp-signal.is-caution, .tg-decision-signal.is-caution { color: var(--mvp-amber); background: transparent; }
.tg-mvp-signal.is-pass, .tg-decision-signal.is-pass { color: var(--mvp-red); background: transparent; }
.tg-mvp-traffic-guide { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.tg-mvp-traffic-guide p { margin: 0; color: var(--mvp-muted); }

/* Data tables */
.tg-mvp-table-wrap { overflow-x: auto; border: 0; border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-mvp-data-table { width: 100%; border-collapse: collapse; }
.tg-mvp-data-table th { padding: 12px; color: var(--mvp-muted); background: #edf2f0; font-size: 10px; text-align: left; text-transform: uppercase; }
.tg-mvp-data-table td { padding: 14px 12px; border-bottom: 1px solid #e7eeeb; vertical-align: middle; }
.tg-mvp-data-table tbody tr:last-child td { border-bottom: 0; }
.tg-mvp-scorebar { display: flex; align-items: center; gap: 8px; min-width: 95px; }
.tg-mvp-scorebar span { width: 62px; height: 5px; overflow: hidden; border-radius: 4px; background: #d7dfdc; }
.tg-mvp-scorebar i { display: block; height: 100%; background: var(--mvp-green-bright); }

/* Home */
.tg-mvp-home-hero { min-width: 0; max-width: 100%; padding: 34px; border: 0; border-radius: 8px; color: #fff; background: var(--mvp-green-dark); box-shadow: var(--mvp-shadow-strong); }
.tg-mvp-home-hero h1 { margin: 5px 0 8px; color: #fff; font-size: clamp(38px, 5vw, 48px); }
.tg-mvp-home-hero > p { color: #cfe1da; font-size: 17px; }
.tg-mvp-home-hero .tg-mvp-metrics { margin-top: 26px; }
.tg-mvp-home-hero .tg-mvp-metric { border: 1px solid rgb(255 255 255 / 13%); background: rgb(0 0 0 / 8%); box-shadow: none; }
.tg-mvp-home-hero .tg-mvp-metric > span, .tg-mvp-home-hero .tg-mvp-metric small { color: #bad2ca; }
.tg-mvp-home-hero .tg-mvp-metric strong { color: #fff; }
.tg-mvp-opportunity { display: grid; grid-template-columns: 1.3fr .9fr; grid-gap: 28px; gap: 28px; min-width: 0; max-width: 100%; padding: 24px; border: 1px solid var(--mvp-line); border-radius: 8px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-mvp-opportunity-main { display: grid; grid-gap: 16px; gap: 16px; }
.tg-mvp-opportunity-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.tg-mvp-opportunity h2 { margin: 5px 0; font-size: 27px; }
.tg-mvp-opportunity h3 { margin: 0; font-size: 22px; }
.tg-mvp-facts { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--mvp-line); border-radius: 5px; background: #f8faf9; }
.tg-mvp-facts div { padding: 13px 8px; text-align: center; border-right: 1px solid var(--mvp-line); }
.tg-mvp-facts div:last-child { border-right: 0; }
.tg-mvp-facts strong, .tg-mvp-facts span { display: block; }
.tg-mvp-facts span { margin-top: 5px; color: var(--mvp-muted); font-size: 9px; text-transform: uppercase; }
.tg-mvp-reasons { margin: 12px 0 0; padding: 14px 0 0 20px; border-top: 1px solid var(--mvp-line); }
.tg-mvp-reasons li { margin: 10px 0; padding-left: 4px; }
.tg-mvp-reasons li::marker { color: var(--mvp-green-bright); }

/* Repeated content cards */
.tg-mvp-card { overflow: hidden; border: 0; border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-mvp-card > header { padding: 14px 16px; border: 0; background: #edf2f0; }
.tg-mvp-card > .tg-mvp-card-body { padding: 17px; }
.tg-mvp-card h2, .tg-mvp-card h3 { margin: 0; }
.tg-mvp-card-actions { display: flex; gap: 8px; margin-top: 14px; }
.tg-mvp-card-actions a, .tg-mvp-card-actions button { flex: 1 1; padding: 11px; border: 0; border-radius: 4px; background: var(--mvp-green); color: #fff; font-weight: 800; text-align: center; text-decoration: none; }
.tg-mvp-result-card { box-shadow: inset 3px 0 var(--mvp-blue), var(--mvp-shadow); }
.tg-mvp-result-card.is-playable { box-shadow: inset 3px 0 #26724d, var(--mvp-shadow); }
.tg-mvp-result-card.is-caution { box-shadow: inset 3px 0 var(--mvp-yellow-strong), var(--mvp-shadow); }
.tg-mvp-result-card.is-pass { box-shadow: inset 3px 0 var(--mvp-red), var(--mvp-shadow); }
.tg-mvp-result-order { display: grid; grid-gap: 7px; gap: 7px; }
.tg-mvp-result-order > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 4px; background: #f2f6f4; }
.tg-mvp-comparison { margin-top: 12px; padding: 14px; border: 0; border-radius: 5px; background: var(--mvp-green-soft); }

/* Bookmakers */
.tg-mvp-offer-grid, .tg-mvp-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 20px; gap: 20px; }
.tg-mvp-offer { display: flex; flex-direction: column; min-height: 390px; }
.tg-mvp-offer > header { min-height: 68px; background: #071f1a; }
.tg-mvp-offer.is-featured > header { background: var(--mvp-green); }
.tg-mvp-offer .tg-mvp-card-body { display: flex; flex: 1 1; flex-direction: column; }
.tg-mvp-offer-logo { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #fff; }
.tg-mvp-offer-logo > span:last-child { font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-bookmaker-logo { display: inline-flex; align-items: center; width: 150px; height: 40px; overflow: hidden; border-radius: 4px; background: #fff; }
.tg-bookmaker-logo.is-compact { width: 126px; height: 34px; }
.tg-bookmaker-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.tg-bookmaker-wordmark { color: #fff; font-size: 20px; }
.tg-mvp-offer h3 { margin: 12px 0 8px; font-size: 21px; }
.tg-mvp-offer ul { padding-left: 18px; color: var(--mvp-muted); }
.tg-mvp-offer details { margin-top: 12px; color: var(--mvp-muted); }
.tg-mvp-offer summary { color: var(--mvp-green); font-weight: 750; cursor: pointer; }
.tg-mvp-offer small { display: block; margin-top: auto; padding-top: 14px; color: var(--mvp-muted); }
.tg-mvp-offer a { display: block; margin-top: 14px; padding: 12px; border-radius: 4px; background: var(--mvp-green); color: #fff; font-weight: 900; text-align: center; text-decoration: none; }
.tg-mvp-offer a:hover { background: var(--mvp-green-bright); }
.tg-mvp-offer details a.tg-mvp-terms-link { display: inline; margin: 0; padding: 0; border-radius: 0; background: transparent; color: var(--mvp-green); font-weight: 800; text-align: left; }
.tg-mvp-offer details a.tg-mvp-terms-link:hover { background: transparent; color: var(--mvp-green-bright); text-decoration: underline; }
.tg-affiliate-empty { display: block; }
.tg-affiliate-empty strong { display: block; margin-bottom: 4px; }
.tg-mvp-eligibility { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 12px; gap: 12px; }
.tg-mvp-eligibility div { padding: 16px; border-radius: 5px; background: var(--mvp-green-soft); }
.tg-mvp-eligibility p { margin-bottom: 0; color: var(--mvp-muted); }
.tg-mvp-filter-row { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 18px; padding: 16px 0 4px; }
.tg-mvp-filter-bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.tg-mvp-segmented { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 4px; border-radius: 6px; background: #e9efec; color: var(--mvp-muted); }
.tg-mvp-segmented > svg { margin: 0 6px; }
.tg-mvp-segmented button { min-height: 36px; padding: 7px 12px; border: 0; border-radius: 4px; background: transparent; color: var(--mvp-muted); font: inherit; font-size: 12px; font-weight: 800; }
.tg-mvp-segmented button.is-active { background: #fff; color: var(--mvp-green); box-shadow: 0 2px 9px rgb(13 48 39 / 8%); }
.tg-mvp-select-field { display: grid; grid-gap: 6px; gap: 6px; min-width: 250px; color: var(--mvp-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tg-mvp-select-field select, .tg-mvp-form select, .tg-racecards-filterbar select {
  min-height: 44px; padding: 9px 38px 9px 12px; border: 1px solid #c8d4cf; border-radius: 5px; background-color: #fff; color: var(--mvp-ink); font: inherit; text-transform: none; box-shadow: 0 2px 8px rgb(13 48 39 / 4%);
}
.tg-mvp-toggle { display: inline-flex !important; align-items: center; gap: 10px; min-height: 44px; color: var(--mvp-ink); font-weight: 700; cursor: pointer; }
.tg-mvp-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.tg-mvp-toggle > span { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #cbd6d2; }
.tg-mvp-toggle > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgb(0 0 0 / 20%); transition: transform 160ms ease; }
.tg-mvp-toggle input:checked + span { background: var(--mvp-green-bright); }
.tg-mvp-toggle input:checked + span::after { transform: translateX(18px); }

/* Plans and forms */
.tg-mvp-plan { position: relative; display: flex; flex-direction: column; }
.tg-mvp-plan.is-featured { box-shadow: inset 0 4px var(--mvp-green), var(--mvp-shadow-strong); }
.tg-mvp-plan-price { margin: 14px 0; font-size: 30px; font-weight: 900; }
.tg-mvp-plan-price small { color: var(--mvp-muted); font-size: 13px; }
.tg-mvp-plan ul { flex: 1 1; padding-left: 19px; line-height: 1.7; }
.tg-mvp-form { display: grid; grid-gap: 14px; gap: 14px; }
.tg-mvp-form label { display: grid; grid-gap: 7px; gap: 7px; color: var(--mvp-ink); font-weight: 700; }
.tg-mvp-form input, .tg-mvp-form select, input[type="date"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #c8d4cf; border-radius: 5px; background: #fff; color: var(--mvp-ink); font: inherit; box-shadow: 0 2px 8px rgb(13 48 39 / 4%); }
.tg-mvp-form input:focus, .tg-mvp-form select:focus, input[type="date"]:focus, .tg-mvp-select-field select:focus { border-color: var(--mvp-green-bright); box-shadow: 0 0 0 3px rgb(8 120 94 / 12%); outline: 0; }
.tg-mvp-date-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
.tg-mvp-date-form label { display: grid; grid-gap: 6px; gap: 6px; min-width: 220px; color: var(--mvp-muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.tg-mvp-date-form label > span { display: flex; align-items: center; gap: 6px; }
.tg-mvp-date-form input { color-scheme: light; }
.tg-mvp-date-form button { gap: 7px; }
.tg-mvp-check { display: flex !important; align-items: flex-start; gap: 9px; }
.tg-mvp-check input { width: 18px; min-height: 18px; accent-color: var(--mvp-green); }
.tg-mvp-auth { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; background: linear-gradient(rgb(0 36 29 / 66%), rgb(0 36 29 / 78%)), url('/images/auth/horse-racing-auth-bg.png') center/cover fixed; }
.tg-mvp-auth-card { width: min(470px, 100%); padding: 28px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 24px 70px rgb(0 0 0 / 34%); }
.tg-mvp-auth-brand { display: block; margin-bottom: 18px; color: var(--mvp-green); font-size: 28px; font-weight: 900; text-align: center; text-decoration: none; }
.tg-mvp-auth-card .tg-mvp-tabs { margin-bottom: 18px; }

/* Account and admin */
.tg-mvp-account { display: grid; grid-template-columns: 230px minmax(0, 1fr); grid-gap: 28px; gap: 28px; }
.tg-mvp-account-nav { display: grid; align-content: start; overflow: hidden; border: 0; border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-mvp-account-nav a, .tg-mvp-account-nav button { padding: 14px 16px; border: 0; background: transparent; color: var(--mvp-muted); font: inherit; font-weight: 750; text-align: left; text-decoration: none; cursor: pointer; }
.tg-mvp-account-nav a.is-active, .tg-mvp-account-nav button.is-active { color: var(--mvp-green); background: var(--mvp-green-soft); box-shadow: inset 3px 0 var(--mvp-green); }
.tg-mvp-account-content { display: grid; grid-gap: 22px; gap: 22px; }
.tg-mvp-admin-head { background: #0d3741; }
.tg-mvp-health { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 12px; gap: 12px; }
.tg-mvp-health div { padding: 15px; border: 0; border-radius: 5px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-mvp-health strong, .tg-mvp-health span { display: block; }
.tg-mvp-health span { color: var(--mvp-muted); font-size: 10px; text-transform: uppercase; }

/* Model evidence and controlled history experiments */
.tg-experiment { display: grid; grid-gap: 20px; gap: 20px; }
.tg-experiment-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 14px 24px; gap: 14px 24px; padding: 22px; border-radius: 7px; background: var(--mvp-green-dark); color: #fff; box-shadow: var(--mvp-shadow-strong); }
.tg-experiment-progress strong { display: block; margin-top: 6px; font-size: clamp(26px, 4vw, 38px); line-height: 1; }
.tg-experiment-progress p { max-width: 720px; margin: 9px 0 0; color: #c9ddd6; line-height: 1.45; }
.tg-experiment-countdown { display: flex; align-items: flex-start; gap: 8px; }
.tg-experiment-countdown span { padding: 7px 10px; border-radius: 4px; background: rgb(255 255 255 / 10%); color: #fff; font-size: 12px; font-weight: 800; }
.tg-experiment-progressbar { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 999px; background: rgb(255 255 255 / 14%); }
.tg-experiment-progressbar i, .tg-experiment-model-progress i { display: block; height: 100%; border-radius: inherit; background: var(--mvp-yellow); }
.tg-experiment-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 16px; gap: 16px; }
.tg-experiment-model { min-width: 0; padding: 18px; border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-experiment-model.is-control { background: #edf5f5; }
.tg-experiment-model.is-production { background: #eaf3f2; box-shadow: inset 0 3px var(--mvp-blue), var(--mvp-shadow); }
.tg-experiment-model.is-candidate { box-shadow: inset 0 3px var(--mvp-green-bright), var(--mvp-shadow); }
.tg-experiment-model > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tg-experiment-model > header span { color: var(--mvp-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-experiment-model > header h3 { margin: 4px 0 0; font-size: 20px; }
.tg-experiment-model > header > strong { color: var(--mvp-green); font-size: 18px; white-space: nowrap; }
.tg-experiment-model > p { min-height: 42px; margin: 14px 0; color: var(--mvp-muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.tg-experiment-model-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #dce5e1; }
.tg-experiment-model-progress i { background: var(--mvp-green-bright); }
.tg-experiment-model dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; margin: 17px 0 0; }
.tg-experiment-model dl > div { min-width: 0; }
.tg-experiment-model dt { color: var(--mvp-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-experiment-model dd { margin: 4px 0 0; color: var(--mvp-ink); font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.tg-experiment-table th, .tg-experiment-table td { white-space: nowrap; }
.tg-experiment-table td:first-child { position: -webkit-sticky; position: sticky; left: 0; z-index: 1; background: #fff; }
.tg-evidence-block { display: grid; grid-gap: 16px; gap: 16px; padding-top: 8px; }
.tg-evidence-heading { align-items: flex-end; display: flex; gap: 24px; justify-content: space-between; }
.tg-evidence-heading h3 { font-size: clamp(20px, 2.4vw, 28px); margin: 4px 0 0; }
.tg-evidence-heading > p { color: var(--mvp-muted); font-size: 13px; line-height: 1.45; margin: 0; max-width: 520px; }
.tg-evidence-models { display: grid; grid-gap: 16px; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tg-evidence-model { background: #fff; border-radius: 7px; box-shadow: var(--mvp-shadow); display: grid; grid-gap: 14px; gap: 14px; overflow: hidden; padding: 20px; }
.tg-evidence-model.is-candidate { box-shadow: inset 0 3px 0 var(--mvp-green), var(--mvp-shadow); }
.tg-evidence-model.is-production { box-shadow: inset 0 3px 0 var(--mvp-blue), var(--mvp-shadow); }
.tg-evidence-model > header { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.tg-evidence-model > header span { color: var(--mvp-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.tg-evidence-model h4 { font-size: 18px; margin: 3px 0 0; }
.tg-evidence-model > header > strong { color: var(--mvp-green-dark); font-size: 25px; line-height: 1; white-space: nowrap; }
.tg-evidence-model > p { color: var(--mvp-muted); font-size: 12px; margin: 0; }
.tg-evidence-ranks { display: grid; margin: 0; }
.tg-evidence-ranks > div { border-top: 1px solid var(--mvp-line); display: grid; grid-gap: 8px; gap: 8px; grid-template-columns: 54px minmax(0, 1fr); padding: 10px 0; }
.tg-evidence-ranks dt { color: var(--mvp-green-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.tg-evidence-ranks dd { font-size: 12px; margin: 0; }
.tg-evidence-model > footer { display: grid; grid-gap: 6px; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-evidence-model > footer span { background: var(--mvp-green-soft); border-radius: 4px; color: var(--mvp-muted); display: grid; font-size: 10px; grid-gap: 3px; gap: 3px; padding: 9px; }
.tg-evidence-model > footer strong { color: var(--mvp-ink); font-size: 14px; }
.tg-evidence-method { border-left: 2px solid var(--mvp-yellow); color: var(--mvp-muted); font-size: 12px; line-height: 1.45; margin: 0; padding: 2px 0 2px 12px; }
.tg-latest-audit-models { display: grid; grid-gap: 16px; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tg-latest-audit-model { background: #fff; border-radius: 7px; box-shadow: var(--mvp-shadow); display: grid; grid-gap: 14px; gap: 14px; padding: 20px; }
.tg-latest-audit-model.is-control { background: #edf5f5; }
.tg-latest-audit-model.is-production { background: #eaf3f2; box-shadow: inset 0 3px 0 var(--mvp-blue), var(--mvp-shadow); }
.tg-latest-audit-model.is-candidate { box-shadow: inset 0 3px 0 var(--mvp-green-bright), var(--mvp-shadow); }
.tg-latest-audit-model.is-benchmark { box-shadow: inset 0 3px 0 var(--mvp-gold), var(--mvp-shadow); }
.tg-latest-audit-model > header { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }
.tg-latest-audit-model > header span { color: var(--mvp-muted); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.tg-latest-audit-model h4 { font-size: 18px; margin: 3px 0 0; }
.tg-latest-audit-model > header > strong { color: var(--mvp-green-dark); font-size: 25px; line-height: 1; white-space: nowrap; }
.tg-latest-audit-model > p { color: var(--mvp-muted); font-size: 12px; margin: 0; }
.tg-latest-audit-model dl { display: grid; grid-gap: 12px; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.tg-latest-audit-model dl > div { background: var(--mvp-green-soft); border-radius: 4px; display: grid; grid-gap: 4px; gap: 4px; padding: 10px; }
.tg-latest-audit-model dt { color: var(--mvp-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-latest-audit-model dd { color: var(--mvp-ink); font-size: 17px; font-weight: 850; margin: 0; }
.tg-evidence-daily-table td strong { display: block; }
.tg-evidence-daily-table td small { color: var(--mvp-muted); display: block; margin-top: 3px; white-space: nowrap; }
.tg-final-evidence { align-items: center; background: var(--mvp-green-dark); border-radius: 7px; color: #fff; display: grid; grid-gap: 24px; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr); padding: 22px; }
.tg-final-evidence.is-locked { background: #263c37; }
.tg-final-evidence h3 { font-size: 22px; margin: 4px 0 5px; }
.tg-final-evidence p { color: #c9ddd6; line-height: 1.45; margin: 0; max-width: 640px; }
.tg-final-evidence-scores { display: grid; grid-gap: 8px; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-final-evidence-scores > div { background: rgb(255 255 255 / 9%); border-radius: 5px; display: grid; grid-gap: 6px; gap: 6px; min-height: 72px; padding: 12px; }
.tg-final-evidence-scores span { color: #c9ddd6; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tg-final-evidence-scores strong { font-size: 19px; }
.tg-proof-overlap { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.tg-proof-roi { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }

/* Homepage race board */
.tg-racing-headrow { align-items: flex-end; margin-bottom: 14px; }
.tg-rp-section-heading > span { display: none; }
.tg-rp-section-heading h1 { color: var(--mvp-green-dark); font-size: 28px; }
.tg-day-tabs { overflow: hidden; border: 0; border-radius: 6px; background: #edf1ef; }
.tg-day-tabs button { min-height: 38px; padding: 9px 18px; border: 0; background: transparent; color: var(--mvp-muted); font-weight: 800; }
.tg-day-tabs .is-active { background: var(--mvp-green); color: #fff; }
.tg-home-racing-board .tg-racing-table { overflow: hidden; border: 1px solid var(--mvp-line); border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-home-racing-board .tg-racing-row { border: 0; border-bottom: 1px solid #e7eeeb; background: #fff; }
.tg-home-racing-board .tg-racing-row:last-child { border-bottom: 0; }
.tg-home-racing-board .tg-racing-course { padding-left: 4px; }
.tg-home-racing-board .tg-racing-times a { min-height: 64px; border: 0; border-radius: 4px; background: #f1f4f3; box-shadow: none; }
.tg-home-racing-board .tg-racing-times a:hover { background: #e8f1ed; transform: translateY(-1px); }
.tg-home-racing-board .tg-racing-times a:has(.is-playable) { background: #effaf5; box-shadow: inset 0 0 0 1px #a9e1cc; }
.tg-home-racing-board .tg-time-result { color: var(--mvp-muted); background: #eef1f0; }

/* Lightning Decision */
.tg-lightning {
  position: relative; display: grid; grid-template-columns: minmax(240px, .9fr) minmax(300px, 1fr) minmax(300px, 1fr);
  grid-gap: 0;
  gap: 0; overflow: hidden; padding: 0; border: 0; border-radius: 8px; background: var(--mvp-green-dark); color: #fff; box-shadow: var(--mvp-shadow-strong);
}
.tg-lightning::after { display: none; }
.tg-lightning-card { min-width: 0; padding: 24px; border: 0; border-right: 1px solid rgb(255 255 255 / 12%); border-radius: 0; background: transparent; box-shadow: none; }
.tg-lightning-card:last-child { border-right: 0; }
.tg-lightning-main { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.tg-lightning-title-row { display: flex; align-items: center; gap: 14px; }
.tg-lightning-bolt { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid rgb(255 189 34 / 40%); border-radius: 6px; background: rgb(255 189 34 / 12%); }
.tg-lightning-bolt::before { content: "⚡"; color: var(--mvp-yellow); font-size: 24px; }
.tg-lightning-bolt span { display: none; }
.tg-lightning-kicker, .tg-lightning-card-label { display: block; color: var(--mvp-yellow); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-lightning h2 { margin: 5px 0 0; color: #fff; font-size: 24px; line-height: 1.12; }
.tg-lightning p { margin: 0; color: #d2e1dc; line-height: 1.5; }
.tg-lightning-selector { display: grid; grid-gap: 0; gap: 0; margin-top: 10px; }
.tg-lightning-selector button, .tg-lightning-dialog-selector button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 11px 0; border: 0; border-bottom: 1px solid rgb(255 255 255 / 11%); border-radius: 0; background: transparent; color: #cbdcd6; font: inherit; font-weight: 750; text-align: left; }
.tg-lightning-selector button:last-child { border-bottom: 0; }
.tg-lightning-selector button:hover, .tg-lightning-selector button.is-active { color: #fff; background: transparent; transform: none; }
.tg-lightning-selector button.is-active::after { content: "✓"; display: grid; place-items: center; flex: 0 0 auto; width: 22px; height: 22px; border: 2px solid var(--mvp-yellow); border-radius: 50%; color: var(--mvp-yellow); font-size: 12px; }
.tg-lightning-selector button.is-active strong { display: none; }
.tg-lightning-selector button strong, .tg-lightning-dialog-selector button strong { color: var(--mvp-yellow); font-size: 11px; }
.tg-lightning-summary { display: grid; align-content: start; grid-gap: 10px; gap: 10px; }
.tg-lightning-score, .tg-lightning-pick { padding: 12px 0; border: 0; border-bottom: 1px solid rgb(255 255 255 / 12%); border-radius: 0; background: transparent; }
.tg-lightning-score span, .tg-lightning-pick span { display: block; color: #9dbab1; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-lightning-score strong { display: block; margin-top: 5px; color: var(--mvp-yellow); font-size: 32px; line-height: 1; }
.tg-lightning-score em { display: block; margin-top: 4px; color: #c9dad4; font-size: 11px; font-style: normal; }
.tg-lightning-pick strong { display: block; margin-top: 5px; color: #fff; font-size: 18px; }
.tg-lightning-pick small { display: block; margin-top: 4px; color: #c9dad4; }
.tg-lightning-trigger { width: 100%; min-height: 48px; margin-top: 2px; border: 0; border-radius: 4px; background: var(--mvp-yellow); color: #10251f; font: inherit; font-weight: 900; text-transform: uppercase; }
.tg-lightning-trigger:hover { background: #ffc83f; transform: translateY(-1px); }
.tg-lightning.is-empty { grid-template-columns: 1fr; }

/* Lightning modal */
.tg-lightning-overlay { position: fixed; z-index: 80; inset: 0; display: grid; place-items: center; padding: 18px; background: rgb(4 21 17 / 72%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tg-lightning-dialog { position: relative; width: min(900px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; padding: 28px; border: 0; border-radius: 8px; background: #fff; color: var(--mvp-ink); box-shadow: 0 30px 90px rgb(0 0 0 / 35%); }
.tg-lightning-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--mvp-soft); color: var(--mvp-ink); font-size: 18px; }
.tg-lightning-dialog-head span { color: var(--mvp-green); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.tg-lightning-dialog-head h2 { margin: 5px 0; color: var(--mvp-ink); }
.tg-lightning-dialog-head p { color: var(--mvp-muted); }
.tg-lightning-dialog-selector { display: flex; gap: 16px; margin: 18px 0; overflow-x: auto; border-bottom: 1px solid var(--mvp-line); }
.tg-lightning-dialog-selector button { width: auto; min-width: 150px; color: var(--mvp-muted); border-color: var(--mvp-line); }
.tg-lightning-dialog-selector button.is-active { color: var(--mvp-green); }
.tg-lightning-dialog-grid, .tg-lightning-metrics, .tg-lightning-actions { display: grid; grid-gap: 12px; gap: 12px; }
.tg-lightning-dialog-grid { grid-template-columns: repeat(3, 1fr); }
.tg-lightning-verdict { padding: 16px; border: 0; border-radius: 6px; background: var(--mvp-soft); }
.tg-lightning-verdict.is-primary { background: var(--mvp-green-soft); }
.tg-lightning-verdict.is-value { background: var(--mvp-yellow-soft); }
.tg-lightning-verdict.is-avoid { background: var(--mvp-red-soft); }
.tg-lightning-verdict span, .tg-lightning-metrics span { color: var(--mvp-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tg-lightning-verdict strong { display: block; margin-top: 6px; font-size: 18px; }
.tg-lightning-verdict p { color: var(--mvp-muted); }
.tg-lightning-metrics { grid-template-columns: repeat(4, 1fr); margin-top: 14px; }
.tg-lightning-metrics div { padding: 14px; border-radius: 5px; background: var(--mvp-soft); }
.tg-lightning-metrics strong { display: block; margin-top: 5px; font-size: 20px; }
.tg-lightning-actions { grid-template-columns: repeat(4, 1fr); margin-top: 16px; }
.tg-lightning-actions a, .tg-lightning-actions button { min-height: 42px; padding: 10px; border: 0; border-radius: 4px; background: var(--mvp-green); color: #fff; font: inherit; font-weight: 800; text-align: center; text-decoration: none; }
.tg-lightning-actions a:nth-child(3) { background: var(--mvp-yellow); color: var(--mvp-ink); }
.tg-lightning-actions button { background: var(--mvp-soft); color: var(--mvp-ink); }
.tg-lightning-result { margin-top: 14px; padding: 13px; border-radius: 5px; background: var(--mvp-soft); }
.tg-lightning-result.is-track { background: var(--mvp-green-soft); }
.tg-lightning-result.is-skip { background: var(--mvp-yellow-soft); }
.tg-lightning-note { display: block; margin-top: 14px; color: var(--mvp-muted); }

/* Racecards */
.tg-racecards-controls, .tg-racecards-board { border: 0; border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-racecards-controls { padding: 18px; }
.tg-racecards-date-tabs { gap: 8px; }
.tg-racecards-date-tabs button { border: 0; border-radius: 5px; background: var(--mvp-soft); color: var(--mvp-muted); }
.tg-racecards-date-tabs button.is-active { background: var(--mvp-green); color: #fff; }
.tg-racecards-filterbar { gap: 14px; }
.tg-racecards-filterbar label > span { color: var(--mvp-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tg-racecards-reset { min-height: 44px; padding: 9px 14px; border: 0; border-radius: 5px; background: var(--mvp-soft); color: var(--mvp-green); font-weight: 800; }
.tg-racecards-board { padding: 20px; }
.tg-racecards-meeting { overflow: hidden; border: 0; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #e4ebe8; }
.tg-racecards-meeting > header { background: #edf2f0; }
.tg-racecards-race { min-width: 130px; border: 0; border-radius: 5px; background: #f1f5f3; }
.tg-racecards-race.is-result { background: #eef1f0; }
.tg-racecards-race.is-live { background: var(--mvp-yellow-soft); box-shadow: inset 0 0 0 1px #f0d475; }
.tg-racecards-race.is-selected { background: var(--mvp-green-soft); box-shadow: inset 0 0 0 1px #8cc9b2; }
.tg-selected-race { border: 0; border-radius: 8px; background: var(--mvp-green); box-shadow: var(--mvp-shadow); }

/* P1 product shell */
.tg-main:has(.tg-p1-page) { width: min(1480px, calc(100% - 48px)); max-width: none; padding: 28px 0 52px; }
.tg-p1-header { position: -webkit-sticky; position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--mvp-line); background: rgb(255 255 255 / 96%); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tg-p1-header-inner { display: flex; align-items: center; gap: 28px; width: min(1480px, calc(100% - 48px)); min-height: 68px; margin: 0 auto; }
.tg-p1-header .tg-brand-logo { flex: 0 0 182px; width: 182px; }
.tg-p1-desktop-nav { display: flex; align-self: stretch; gap: 25px; }
.tg-p1-desktop-nav a, .tg-p1-mobile-menu a { position: relative; display: inline-flex; align-items: center; color: #273732; font-size: 14px; font-weight: 700; text-decoration: none; }
.tg-p1-desktop-nav a::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 3px 3px 0 0; background: transparent; content: ""; }
.tg-p1-desktop-nav a:hover, .tg-p1-desktop-nav a.is-active { color: var(--mvp-green); }
.tg-p1-desktop-nav a.is-active::after { background: var(--mvp-green-bright); }
.tg-p1-search { display: flex; align-items: center; gap: 9px; min-width: 240px; max-width: 470px; height: 40px; margin-left: auto; padding: 0 13px; border: 1px solid #d3dcda; border-radius: 6px; background: #f8faf9; color: var(--mvp-muted); }
.tg-p1-search:focus-within { border-color: #91b9ad; background: #fff; box-shadow: 0 0 0 3px rgb(8 120 94 / 9%); }
.tg-p1-search input { min-width: 0; flex: 1 1; border: 0; outline: 0; background: transparent; color: var(--mvp-ink); font: inherit; }
.tg-p1-header-actions { display: flex; align-items: center; gap: 10px; }
.tg-p1-icon-action, .tg-p1-avatar, .tg-p1-mobile-trigger { position: relative; display: grid; place-items: center; width: 39px; height: 39px; border: 0; border-radius: 50%; background: transparent; color: var(--mvp-ink); text-decoration: none; }
.tg-p1-icon-action:hover, .tg-p1-mobile-trigger:hover { background: var(--mvp-soft); }
.tg-p1-icon-action > span { position: absolute; top: -2px; right: -2px; display: grid; min-width: 18px; height: 18px; place-items: center; padding: 0 4px; border: 2px solid #fff; border-radius: 999px; background: var(--mvp-green); color: #fff; font-size: 9px; font-weight: 900; }
.tg-p1-avatar { background: var(--mvp-green); color: #fff; font-size: 12px; font-weight: 850; }
.tg-p1-mobile-trigger, .tg-p1-mobile-menu, .tg-p1-mobile-bottom { display: none; }

/* P1 shared surfaces */
.tg-p1-page { display: grid; grid-gap: 22px; gap: 22px; min-width: 0; }
.tg-p1-workflow { padding: 2px 12px 8px; }
.tg-p1-workflow ol { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 0; gap: 0; margin: 0; padding: 0; list-style: none; }
.tg-p1-workflow li { position: relative; display: flex; align-items: center; gap: 11px; min-width: 0; color: #83908c; }
.tg-p1-workflow li:not(:last-child)::after { position: absolute; top: 16px; right: 14px; left: 52px; height: 1px; background: #cad5d1; content: ""; }
.tg-p1-workflow li > span { position: relative; z-index: 1; display: grid; width: 32px; height: 32px; flex: 0 0 32px; place-items: center; border: 1px solid #cbd6d2; border-radius: 50%; background: #fff; color: #4d5c57; font-size: 12px; font-weight: 850; }
.tg-p1-workflow li > div { position: relative; z-index: 1; display: grid; grid-gap: 2px; gap: 2px; padding-right: 18px; background: var(--mvp-bg); }
.tg-p1-workflow strong { color: #293a35; font-size: 12px; }
.tg-p1-workflow small { font-size: 10px; }
.tg-p1-workflow b { display: none; }
.tg-p1-workflow li.is-active > span, .tg-p1-workflow li.is-complete > span { border-color: var(--mvp-green); background: var(--mvp-green); color: #fff; }
.tg-p1-workflow li.is-active strong, .tg-p1-workflow li.is-complete strong { color: var(--mvp-green); }
.tg-p1-workflow li.is-complete:not(:last-child)::after { background: #7db2a2; }
.tg-p1-page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 5px 6px 2px; }
.tg-p1-page-title > div:first-child > span, .tg-p1-section-heading > div > span, .tg-p1-preferences-head > div > span { color: var(--mvp-green); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.tg-p1-page-title h1 { margin: 5px 0 4px; color: #101d29; font-size: clamp(30px, 3vw, 42px); line-height: 1.04; }
.tg-p1-page-title p, .tg-p1-section-heading p, .tg-p1-preferences-head p { margin: 0; color: var(--mvp-muted); line-height: 1.5; }
.tg-p1-surface { min-width: 0; padding: 21px; border: 0; border-radius: 8px; background: #fff; box-shadow: 0 8px 25px rgb(14 48 39 / 7%); }
.tg-p1-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.tg-p1-section-heading h2 { margin: 3px 0 0; color: var(--mvp-ink); font-size: 21px; }
.tg-p1-section-heading small { align-self: center; color: var(--mvp-muted); }
.tg-p1-primary-action { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 0; border-radius: 5px; background: var(--mvp-yellow); color: #17231f; font-weight: 850; text-decoration: none; }
.tg-p1-primary-action:hover { background: #ffca45; box-shadow: 0 7px 20px rgb(255 189 34 / 22%); transform: translateY(-1px); }
.tg-p1-segmented { display: inline-flex; gap: 3px; padding: 3px; border-radius: 6px; background: #edf2f0; }
.tg-p1-segmented button { min-height: 35px; padding: 7px 17px; border: 0; border-radius: 4px; background: transparent; color: var(--mvp-muted); font: inherit; font-size: 12px; font-weight: 800; }
.tg-p1-segmented button.is-active { background: var(--mvp-green); color: #fff; box-shadow: 0 3px 9px rgb(0 75 60 / 16%); }
.tg-p1-tabs { display: flex; gap: 28px; overflow-x: auto; border-bottom: 1px solid var(--mvp-line); }
.tg-p1-tabs a, .tg-p1-tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; min-height: 45px; padding: 0 3px; border: 0; background: transparent; color: #344640; font: inherit; font-weight: 700; text-decoration: none; }
.tg-p1-tabs a::after, .tg-p1-tabs button::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: transparent; content: ""; }
.tg-p1-tabs a.is-active, .tg-p1-tabs button.is-active { color: var(--mvp-green); }
.tg-p1-tabs a.is-active::after, .tg-p1-tabs button.is-active::after { background: var(--mvp-green); }
.tg-p1-tabs small { display: grid; min-width: 21px; height: 21px; place-items: center; border-radius: 999px; background: var(--mvp-soft); font-size: 10px; }
.tg-p1-notice, .tg-p1-inline-warning, .tg-p1-trust, .tg-p1-method-note { display: flex; align-items: flex-start; gap: 10px; color: var(--mvp-muted); font-size: 12px; line-height: 1.45; }
.tg-p1-notice { padding: 13px 15px; border-left: 2px solid var(--mvp-blue); background: #eef6f7; }
.tg-p1-notice.is-warning { border-color: var(--mvp-yellow-strong); background: var(--mvp-yellow-soft); }
.tg-p1-notice strong, .tg-p1-trust strong { display: block; color: var(--mvp-ink); }
.tg-p1-empty { display: grid; justify-items: start; grid-gap: 7px; gap: 7px; min-height: 150px; align-content: center; padding: 24px; border: 1px dashed #bdcbc6; border-radius: 7px; background: #f9fbfa; color: var(--mvp-muted); }
.tg-p1-empty strong { color: var(--mvp-ink); font-size: 18px; }
.tg-p1-empty p { margin: 0; }
.tg-p1-empty a { color: var(--mvp-green); font-weight: 800; }
.tg-p1-empty.is-compact { min-height: 95px; padding: 14px; }
.tg-p1-loading { min-height: 50vh; display: grid; place-items: center; color: var(--mvp-muted); }

/* Strategy simulator */
.tg-p1-trust { max-width: 390px; padding: 12px 15px; border: 1px solid #dbe6e2; border-radius: 6px; background: #f8fbfa; }
.tg-p1-strategy-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, .72fr); grid-gap: 20px; gap: 20px; align-items: start; }
.tg-p1-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; }
.tg-p1-selection { position: relative; display: grid; grid-template-columns: 18px 32px 42px minmax(180px, 1.5fr) repeat(4, minmax(82px, .55fr)) auto; align-items: center; grid-gap: 12px; gap: 12px; min-height: 76px; padding: 10px 0; border-top: 1px solid #e8eeec; }
.tg-p1-selection.is-unavailable { opacity: .58; }
.tg-p1-rank { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: var(--mvp-green); color: #fff; font-size: 12px; }
.tg-p1-selection-name { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-selection-name > span, .tg-p1-selection-metric span { color: var(--mvp-muted); font-size: 11px; }
.tg-p1-selection-metric { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-selection-metric strong { font-size: 14px; }
.tg-p1-reorder { display: flex; gap: 3px; }
.tg-p1-reorder button { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 4px; background: var(--mvp-soft); color: var(--mvp-muted); }
.tg-p1-reorder button:hover:not(:disabled) { background: var(--mvp-green-soft); color: var(--mvp-green); }
.tg-p1-inline-warning { grid-column: 4 / -1; padding: 8px 10px; background: var(--mvp-red-soft); color: #923e31; }
.tg-p1-simulation { position: -webkit-sticky; position: sticky; top: 91px; }
.tg-p1-stake { display: grid; grid-gap: 7px; gap: 7px; padding-bottom: 18px; color: var(--mvp-muted); font-size: 12px; font-weight: 750; }
.tg-p1-stake > span:last-child { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border: 1px solid #cfdbd7; border-radius: 5px; }
.tg-p1-stake input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; }
.tg-p1-summary-list { display: grid; margin: 0; }
.tg-p1-summary-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid #e5ece9; }
.tg-p1-summary-list dt { color: var(--mvp-muted); }
.tg-p1-summary-list dd { margin: 0; font-weight: 850; }
.tg-p1-summary-list .is-accent dd { color: var(--mvp-green-bright); }
.tg-p1-warning { display: flex; gap: 10px; margin: 17px 0; padding: 14px; border: 1px solid #efaaa3; border-radius: 6px; background: #fff7f5; color: #8c332b; }
.tg-p1-warning strong { display: block; margin-bottom: 3px; }
.tg-p1-simulation .tg-p1-primary-action { width: 100%; }
.tg-p1-microcopy { display: flex; align-items: flex-start; gap: 7px; color: var(--mvp-muted); font-size: 11px; }

/* Tracker workspace */
.tg-p1-changes { display: grid; grid-template-columns: minmax(180px, .7fr) repeat(4, minmax(140px, 1fr)); align-items: center; padding: 16px 20px; border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-p1-changes > span { color: var(--mvp-green); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.tg-p1-changes > div { display: grid; grid-template-columns: 30px auto; grid-column-gap: 8px; column-gap: 8px; align-items: center; border-left: 1px solid var(--mvp-line); padding-left: 18px; }
.tg-p1-changes svg { grid-row: 1 / 3; color: var(--mvp-green-bright); }
.tg-p1-changes strong { font-size: 19px; }
.tg-p1-changes div span { color: var(--mvp-muted); font-size: 11px; }
.tg-p1-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tg-p1-filter-row > span { color: var(--mvp-muted); font-size: 12px; }
.tg-p1-search-field { display: flex; align-items: center; gap: 9px; width: min(440px, 100%); min-height: 42px; padding: 0 12px; border: 1px solid #d4dedb; border-radius: 6px; background: #fff; color: var(--mvp-muted); }
.tg-p1-search-field input { width: 100%; border: 0; outline: 0; background: transparent; font: inherit; }
.tg-p1-tracker-table { padding: 0; overflow-x: auto; }
.tg-p1-tracker-table > header, .tg-p1-tracker-table > article { display: grid; grid-template-columns: minmax(230px, 1.35fr) minmax(135px, .7fr) minmax(145px, .78fr) 90px 100px minmax(230px, auto); align-items: center; grid-gap: 15px; gap: 15px; min-width: 1040px; padding: 13px 17px; }
.tg-p1-tracker-table > header { background: #edf3f0; color: var(--mvp-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-p1-tracker-table > article { border-top: 1px solid #e5ebe9; }
.tg-p1-tracker-table article small { display: block; margin-top: 3px; color: var(--mvp-muted); font-weight: 500; }
.tg-p1-tracker-person { display: flex; align-items: center; gap: 11px; }
.tg-p1-tracker-person > span { min-width: 0; }
.tg-p1-tracker-person strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-tracker-table .is-strong { color: var(--mvp-green); font-weight: 800; }
.tg-p1-tracker-table .is-consider { color: #c57b00; font-weight: 800; }
.tg-p1-tracker-table .is-pass { color: var(--mvp-red); font-weight: 800; }
.tg-p1-tracker-table .is-no-edge { color: #6e7c88; }
.tg-p1-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tg-p1-row-actions a, .tg-p1-row-actions button, .tg-p1-alert-list button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 7px 10px; border: 0; border-radius: 4px; background: var(--mvp-soft); color: var(--mvp-green); font: inherit; font-size: 11px; font-weight: 800; text-decoration: none; }
.tg-p1-alert-list article { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; grid-gap: 14px; gap: 14px; padding: 14px 0; border-top: 1px solid #e5ebe9; }
.tg-p1-alert-list article > svg { color: var(--mvp-green-bright); }
.tg-p1-alert-list p { margin: 4px 0; color: var(--mvp-muted); }
.tg-p1-alert-list small { color: var(--mvp-muted); }
.tg-p1-alert-list a { color: var(--mvp-green); font-weight: 800; text-decoration: none; }

/* Horse profile */
.tg-p1-breadcrumb { display: flex; gap: 9px; color: var(--mvp-muted); font-size: 12px; }
.tg-p1-breadcrumb a { color: var(--mvp-green); text-decoration: none; }
.tg-p1-profile-header { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; grid-gap: 22px; gap: 22px; padding: 4px 6px; }
.tg-p1-profile-header h1 { margin: 3px 0 5px; font-size: clamp(30px, 3vw, 42px); }
.tg-p1-profile-header > div > span { color: var(--mvp-green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-p1-profile-header p { margin: 0; color: var(--mvp-muted); }
.tg-p1-profile-actions { display: flex; gap: 9px; }
.tg-p1-profile-actions button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 9px 15px; border: 1px solid #b9d3ca; border-radius: 5px; background: #fff; color: var(--mvp-green); font: inherit; font-weight: 800; }
.tg-p1-profile-snapshot { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(170px, auto); align-items: stretch; overflow: hidden; border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-p1-profile-snapshot > div { display: grid; align-content: center; grid-gap: 4px; gap: 4px; min-height: 91px; padding: 15px 18px; border-right: 1px solid var(--mvp-line); }
.tg-p1-profile-snapshot span, .tg-p1-profile-snapshot small { color: var(--mvp-muted); font-size: 10px; }
.tg-p1-profile-snapshot strong { font-size: 17px; }
.tg-p1-profile-snapshot > a { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px; border-radius: 5px; background: var(--mvp-green); color: #fff; font-weight: 850; text-decoration: none; }
.tg-p1-profile-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(360px, .92fr) minmax(230px, .56fr); grid-gap: 18px; gap: 18px; }
.tg-p1-spotlight > p { color: #3f514b; line-height: 1.65; }
.tg-p1-evidence-angle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; margin-top: 18px; background: var(--mvp-line); }
.tg-p1-evidence-angle > div { display: grid; grid-template-columns: 24px 1fr; grid-gap: 5px 8px; gap: 5px 8px; padding: 15px; background: #fff; }
.tg-p1-evidence-angle svg { grid-row: 1 / 3; color: var(--mvp-green-bright); }
.tg-p1-evidence-angle span { color: var(--mvp-muted); font-size: 11px; line-height: 1.45; }
.tg-p1-form-table { overflow-x: auto; }
.tg-p1-form-table > header, .tg-p1-form-table > div { display: grid; grid-template-columns: 82px minmax(110px, 1fr) 80px minmax(90px, 1fr) 45px 45px; min-width: 560px; grid-gap: 8px; gap: 8px; padding: 9px 0; border-bottom: 1px solid #e5ebe9; font-size: 11px; }
.tg-p1-form-table > header { color: var(--mvp-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-p1-condition-list { display: grid; margin: 0; }
.tg-p1-condition-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid #e5ebe9; }
.tg-p1-condition-list dt { color: var(--mvp-muted); }
.tg-p1-condition-list dd { margin: 0; font-weight: 800; text-align: right; }
.tg-p1-profile-lower { display: grid; grid-gap: 18px; gap: 18px; grid-template-columns: 1fr 1.25fr .75fr; }
.tg-p1-stat-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.tg-p1-stat-row > div { padding: 6px 14px; border-right: 1px solid var(--mvp-line); }
.tg-p1-stat-row > div:first-child { padding-left: 0; }
.tg-p1-stat-row > div:last-child { border-right: 0; }
.tg-p1-stat-row span { display: block; color: var(--mvp-muted); font-size: 10px; }
.tg-p1-stat-row strong { display: block; margin-top: 5px; font-size: 20px; }
.tg-p1-entry { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(180px, 1.2fr) minmax(120px, .8fr) minmax(110px, .7fr) auto; align-items: center; grid-gap: 12px; gap: 12px; padding: 12px 0; border-top: 1px solid #e5ebe9; font-size: 11px; }
.tg-p1-entry span:first-child { display: grid; grid-gap: 3px; gap: 3px; }
.tg-p1-entry a, .tg-p1-profile-lower > article > a { color: var(--mvp-green); font-weight: 800; text-decoration: none; }
.tg-p1-alert-coverage { display: grid; grid-gap: 12px; gap: 12px; margin-bottom: 18px; }
.tg-p1-alert-coverage span { display: flex; align-items: center; gap: 8px; }
.tg-p1-alert-coverage svg { color: var(--mvp-green-bright); }

/* Account preferences */
.tg-mvp-account-nav button { display: flex; align-items: center; gap: 10px; }
.tg-p1-preferences { display: grid; grid-gap: 0; gap: 0; padding: 4px 0; }
.tg-p1-preferences-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 0 0 18px; border-bottom: 1px solid var(--mvp-line); }
.tg-p1-preferences-head h2 { margin: 4px 0; font-size: 28px; }
.tg-p1-unsaved { display: inline-flex; align-items: center; gap: 7px; color: #b86c00; font-size: 11px; font-weight: 800; }
.tg-p1-unsaved::before { width: 8px; height: 8px; border-radius: 50%; background: #ee9d22; content: ""; }
.tg-p1-preference-group { display: grid; grid-template-columns: minmax(210px, .58fr) minmax(0, 1.45fr); grid-gap: 28px; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--mvp-line); }
.tg-p1-preference-label { display: grid; grid-template-columns: 28px 1fr; grid-gap: 10px; gap: 10px; }
.tg-p1-preference-label > svg { color: var(--mvp-green); }
.tg-p1-preference-label span { display: grid; grid-gap: 5px; gap: 5px; }
.tg-p1-preference-label small { color: var(--mvp-muted); line-height: 1.4; }
.tg-p1-preference-control { display: grid; grid-gap: 13px; gap: 13px; }
.tg-p1-theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 10px; gap: 10px; }
.tg-p1-theme-options button { display: grid; grid-template-columns: 24px 1fr 20px; align-items: center; min-height: 74px; padding: 13px; border: 1px solid var(--mvp-line); border-radius: 6px; background: #fff; color: var(--mvp-ink); font: inherit; text-align: left; }
.tg-p1-theme-options button.is-selected { border-color: var(--mvp-green-bright); background: var(--mvp-green-soft); }
.tg-p1-field-grid { display: grid; grid-template-columns: repeat(4, minmax(130px, 1fr)); grid-gap: 10px; gap: 10px; }
.tg-p1-field-grid label, .tg-p1-number-field { display: grid; grid-gap: 6px; gap: 6px; color: var(--mvp-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tg-p1-field-grid select, .tg-p1-number-field input { min-height: 42px; padding: 9px 11px; border: 1px solid #ced9d5; border-radius: 5px; background: #fff; color: var(--mvp-ink); font: inherit; text-transform: none; }
.tg-p1-toggle-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; grid-gap: 12px; gap: 12px; min-height: 34px; cursor: pointer; }
.tg-p1-toggle-row input { position: absolute; opacity: 0; }
.tg-p1-toggle-row i { position: relative; display: block; width: 38px; height: 21px; border-radius: 999px; background: #cbd5d2; }
.tg-p1-toggle-row i::after { position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / 20%); content: ""; transition: transform 160ms ease; }
.tg-p1-toggle-row input:checked + i { background: var(--mvp-green-bright); }
.tg-p1-toggle-row input:checked + i::after { transform: translateX(17px); }
.tg-p1-checkbox-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.tg-p1-checkbox-row strong { flex-basis: 100%; color: var(--mvp-muted); font-size: 10px; text-transform: uppercase; }
.tg-p1-checkbox-row label { display: inline-flex; align-items: center; gap: 6px; text-transform: capitalize; }
.tg-p1-checkbox-row input { accent-color: var(--mvp-green); }
.tg-p1-preferences-save { position: -webkit-sticky; position: sticky; bottom: 12px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 18px; padding: 13px; border-radius: 7px; background: rgb(255 255 255 / 94%); box-shadow: 0 10px 35px rgb(11 46 37 / 14%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.tg-p1-preferences-save button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 9px 18px; border: 0; border-radius: 5px; background: var(--mvp-green); color: #fff; font: inherit; font-weight: 850; }
.tg-p1-preferences-save button:disabled { opacity: .45; }
.tg-p1-preferences-save > span { display: flex; align-items: center; gap: 6px; color: var(--mvp-green); font-size: 12px; }
.tg-p1-preferences-save small { color: var(--mvp-muted); }

/* Persistent decision actions */
.tg-p1-decision-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.tg-p1-decision-actions > a, .tg-p1-decision-actions > button { display: flex; align-items: center; gap: 12px; min-height: 82px; padding: 14px 16px; border: 1px solid #dce7e2; background: #fff; color: #10231e; font: inherit; text-align: left; text-decoration: none; }
.tg-p1-decision-actions svg { flex: 0 0 auto; width: 25px; height: 25px; color: #00664b; }
.tg-p1-decision-actions span { display: grid; grid-gap: 4px; gap: 4px; color: #5a6964; font-size: 12px; line-height: 1.35; }
.tg-p1-decision-actions strong { color: #10231e; font-size: 15px; }
.tg-p1-decision-actions > :is(a, button):hover, .tg-p1-decision-actions > .is-active { border-color: #4aa98a; box-shadow: 0 8px 24px rgb(0 80 58 / 8%); }
.tg-p1-decision-actions > .is-primary { border-color: #f4b51f; background: #f4b51f; }
.tg-p1-decision-actions > .is-primary :is(svg, span, strong) { color: #18241f; }
.tg-p1-action-message { min-height: 18px; margin: 10px 0 0; color: #45615a; font-size: 13px; }
.tg-selected-race-actions > button { display: inline-flex; align-items: center; gap: 7px; }

/* Home decision shortlist and persisted proof */
.tg-home-opportunities, .tg-home-proof { border: 0; box-shadow: none; }
.tg-home-opportunity-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; border-radius: 7px; background: #fff; box-shadow: var(--mvp-shadow); }
.tg-home-opportunity-row > a { display: grid; grid-template-columns: 26px 38px minmax(0, 1fr) auto; align-items: center; grid-gap: 9px; gap: 9px; min-width: 0; padding: 16px 13px; border-right: 1px solid var(--mvp-line); color: var(--mvp-ink); text-decoration: none; }
.tg-home-opportunity-row > a:last-child { border-right: 0; }
.tg-home-opportunity-row > a:hover { background: var(--mvp-green-soft); }
.tg-home-opportunity-row > a > span:first-child { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--mvp-green); color: #fff; font-size: 11px; font-weight: 850; }
.tg-home-opportunity-row > a > div { display: grid; min-width: 0; grid-gap: 3px; gap: 3px; }
.tg-home-opportunity-row small { color: var(--mvp-muted); font-size: 9px; }
.tg-home-opportunity-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tg-home-opportunity-row em { font-size: 10px; font-style: normal; font-weight: 800; }
.tg-home-opportunity-row em.is-playable { color: var(--mvp-green-bright); }
.tg-home-opportunity-row em.is-caution { color: #b77100; }
.tg-home-opportunity-row em.is-pass { color: var(--mvp-red); }
.tg-home-opportunity-row b { display: grid; justify-items: end; color: var(--mvp-green); font-size: 20px; }
.tg-home-opportunity-row b small { font-size: 8px; }
.tg-home-proof { padding-top: 5px; }

/* Footer */
.tg-footer { border-top: 1px solid var(--mvp-line); background: #eef2f1; color: var(--mvp-ink); }
.tg-footer-responsible, .tg-footer-main, .tg-footer-legal { width: min(1180px, calc(100% - 32px)); }
.tg-footer-responsible { gap: 18px; border-bottom: 1px solid #dce5e1; }
.tg-footer-responsible span { padding: 0; border: 0; border-radius: 0; background: transparent; }
.tg-footer-grid { gap: 36px; }
.tg-footer h2 { color: var(--mvp-green); }
.tg-footer p, .tg-footer a { color: #4f615b; }

@media (max-width: 980px) {
  .tg-p1-header-inner { gap: 17px; }
  .tg-p1-desktop-nav { gap: 16px; }
  .tg-p1-desktop-nav a { font-size: 12px; }
  .tg-p1-header .tg-brand-logo { flex-basis: 156px; width: 156px; }
  .tg-p1-profile-grid { grid-template-columns: 1fr 1fr; }
  .tg-p1-profile-grid > article:first-child { grid-column: 1 / -1; }
  .tg-p1-profile-lower { grid-template-columns: 1fr 1fr; }
  .tg-p1-profile-lower > article:first-child { grid-column: 1 / -1; }
  .tg-brand-logo.is-header { flex-basis: 190px; width: 190px; }
  .tg-logo { min-width: 190px; }
  .tg-masthead-top { gap: 16px; }
  .tg-lightning { grid-template-columns: 1fr 1fr; }
  .tg-lightning-main { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 12%); }
  .tg-experiment-models, .tg-evidence-models, .tg-latest-audit-models { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-home-opportunity-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-home-opportunity-row > a { border-bottom: 1px solid var(--mvp-line); }
}

@media (max-width: 900px) {
  .tg-p1-desktop-nav { display: none; }
  .tg-p1-mobile-trigger { display: grid; }
  .tg-p1-search { max-width: none; }
  .tg-p1-mobile-menu { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1px; gap: 1px; padding: 8px 24px 14px; background: #fff; }
  .tg-p1-mobile-menu a { justify-content: center; min-height: 40px; border-radius: 5px; }
  .tg-p1-mobile-menu a.is-active { background: var(--mvp-green-soft); color: var(--mvp-green); }
  .tg-p1-strategy-layout { grid-template-columns: 1fr; }
  .tg-p1-decision-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-p1-simulation { position: static; }
  .tg-p1-selection { grid-template-columns: 18px 28px 40px minmax(150px, 1fr) repeat(2, minmax(76px, .5fr)) auto; }
  .tg-p1-selection-metric:nth-of-type(3), .tg-p1-selection-metric:nth-of-type(4) { display: none; }
  .tg-p1-changes { grid-template-columns: repeat(4, 1fr); }
  .tg-p1-changes > span { grid-column: 1 / -1; padding-bottom: 10px; }
  .tg-p1-changes > div:first-of-type { border-left: 0; padding-left: 0; }
  .tg-p1-profile-snapshot { grid-template-columns: repeat(2, 1fr); }
  .tg-p1-profile-snapshot > a { min-height: 48px; grid-column: 1 / -1; }
  .tg-p1-field-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-mvp-metrics, .tg-mvp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-mvp-grid-3, .tg-mvp-offer-grid, .tg-mvp-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-mvp-split, .tg-mvp-opportunity { grid-template-columns: 1fr; }
  .tg-mvp-account { grid-template-columns: 1fr; }
  .tg-mvp-account-nav { display: flex; overflow-x: auto; }
  .tg-mvp-account-nav a, .tg-mvp-account-nav button { flex: 0 0 auto; box-shadow: none !important; }
  .tg-mvp-health { grid-template-columns: repeat(2, 1fr); }
  .tg-masthead-top { grid-template-columns: 1fr auto; }
  .tg-site-search { grid-column: 1 / -1; grid-row: 2; width: 100%; }
  .tg-final-evidence { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .tg-main:has(.tg-p1-page) { width: 100%; padding: 17px 14px 92px; }
  .tg-p1-header-inner { width: calc(100% - 24px); min-height: 60px; gap: 10px; }
  .tg-p1-header .tg-brand-logo { flex-basis: 142px; width: 142px; }
  .tg-p1-search { width: 40px; min-width: 40px; height: 40px; margin-left: auto; padding: 0; justify-content: center; border: 0; background: transparent; }
  .tg-p1-search input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .tg-p1-mobile-menu { grid-template-columns: repeat(2, 1fr); padding-inline: 12px; }
  .tg-p1-mobile-bottom { position: fixed; right: 0; bottom: 0; left: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px max(5px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)); border-top: 1px solid var(--mvp-line); background: rgb(255 255 255 / 97%); box-shadow: 0 -8px 28px rgb(9 40 32 / 10%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .tg-p1-mobile-bottom a { display: grid; justify-items: center; grid-gap: 3px; gap: 3px; min-height: 49px; align-content: center; color: #5d6c67; font-size: 9px; font-weight: 750; text-decoration: none; }
  .tg-p1-mobile-bottom a.is-active { color: var(--mvp-green); }
  .tg-p1-page { gap: 17px; }
  .tg-p1-workflow { margin-inline: -4px; padding: 0 0 2px; overflow: hidden; }
  .tg-p1-workflow ol { gap: 4px; }
  .tg-p1-workflow li { display: grid; justify-items: center; grid-gap: 5px; gap: 5px; text-align: center; }
  .tg-p1-workflow li:not(:last-child)::after { top: 14px; right: -14px; left: calc(50% + 20px); }
  .tg-p1-workflow li > span { width: 29px; height: 29px; flex-basis: 29px; }
  .tg-p1-workflow li > div { padding: 0; background: transparent; }
  .tg-p1-workflow strong, .tg-p1-workflow small { display: none; }
  .tg-p1-workflow b { display: block; color: inherit; font-size: 9px; }
  .tg-p1-workflow li.is-active b, .tg-p1-workflow li.is-complete b { color: var(--mvp-green); }
  .tg-p1-page-title { padding-inline: 1px; }
  .tg-p1-page-title h1 { font-size: 30px; }
  .tg-p1-page-title > .tg-p1-trust { display: none; }
  .tg-p1-surface { padding: 16px; border-radius: 7px; }
  .tg-p1-toolbar { align-items: stretch; flex-direction: column; }
  .tg-p1-segmented { display: grid; grid-template-columns: repeat(2, 1fr); }
  .tg-p1-selection { grid-template-columns: 25px 38px minmax(0, 1fr) auto; gap: 9px; padding-block: 13px; }
  .tg-p1-selection > svg:first-child { display: none; }
  .tg-p1-selection-metric { display: none !important; }
  .tg-p1-reorder { grid-column: 4; grid-row: 1; }
  .tg-p1-inline-warning { grid-column: 2 / -1; }
  .tg-p1-changes { grid-template-columns: repeat(2, 1fr); padding: 14px; }
  .tg-p1-changes > div { border-left: 0; padding: 9px 3px; }
  .tg-p1-filter-row { align-items: stretch; flex-direction: column; }
  .tg-p1-filter-row > span { align-self: flex-end; }
  .tg-p1-alert-list article { grid-template-columns: 26px minmax(0, 1fr); }
  .tg-p1-alert-list article a, .tg-p1-alert-list article button { grid-column: 2; justify-self: start; }
  .tg-p1-profile-header { grid-template-columns: 66px minmax(0, 1fr); gap: 14px; }
  .tg-p1-profile-actions { grid-column: 1 / -1; }
  .tg-p1-profile-actions button { flex: 1 1; justify-content: center; }
  .tg-p1-profile-snapshot { grid-template-columns: 1fr 1fr; }
  .tg-p1-profile-snapshot > div { min-height: 78px; padding: 12px; }
  .tg-p1-profile-grid, .tg-p1-profile-lower { grid-template-columns: 1fr; }
  .tg-p1-profile-grid > article:first-child, .tg-p1-profile-lower > article:first-child { grid-column: auto; }
  .tg-p1-evidence-angle { grid-template-columns: 1fr; }
  .tg-p1-stat-row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .tg-p1-stat-row > div { padding: 4px 0; border: 0; }
  .tg-p1-entry { grid-template-columns: 1fr auto; }
  .tg-p1-entry > span:nth-child(2), .tg-p1-entry > span:nth-child(3) { grid-column: 1 / -1; }
  .tg-p1-preference-group { grid-template-columns: 1fr; gap: 16px; }
  .tg-p1-preferences-head { flex-direction: column; }
  .tg-p1-theme-options { grid-template-columns: 1fr; }
  .tg-p1-field-grid { grid-template-columns: 1fr; }
  .tg-p1-preferences-save { align-items: stretch; flex-direction: column; bottom: 74px; }
  .tg-p1-preferences-save button { justify-content: center; order: 2; }
  .tg-main { width: min(100% - 24px, 1180px); padding: 18px 0 48px; }
  .tg-mvp-page { gap: 26px; }
  .tg-mvp-page-head { min-height: 0; align-items: flex-start; flex-direction: column; padding: 24px 20px; }
  .tg-mvp-page-head h1 { font-size: 34px; }
  .tg-mvp-section-head { align-items: flex-start; flex-direction: column; }
  .tg-mvp-grid-2, .tg-mvp-grid-3, .tg-mvp-offer-grid, .tg-mvp-plan-grid, .tg-mvp-eligibility { grid-template-columns: 1fr; }
  .tg-mvp-home-hero { padding: 26px 20px; }
  .tg-mvp-home-hero h1 { font-size: 36px; }
  .tg-mvp-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-mvp-metric { min-height: 88px; padding: 13px; }
  .tg-mvp-metric strong { font-size: 23px; }
  .tg-mvp-opportunity { padding: 19px; }
  .tg-mvp-opportunity-head { flex-direction: column; }
  .tg-mvp-facts { grid-template-columns: repeat(2, 1fr); }
  .tg-mvp-facts div { border-bottom: 1px solid var(--mvp-line); }
  .tg-mvp-health { grid-template-columns: 1fr 1fr; }
  .tg-mvp-empty { align-items: flex-start; flex-wrap: wrap; }
  .tg-mvp-empty a { width: 100%; margin: 4px 0 0 48px; }
  .tg-lightning { grid-template-columns: 1fr; }
  .tg-lightning-main, .tg-lightning-card { grid-column: auto; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 12%); }
  .tg-lightning-card:last-child { border-bottom: 0; }
  .tg-lightning-dialog-grid, .tg-lightning-metrics { grid-template-columns: repeat(2, 1fr); }
  .tg-lightning-actions { grid-template-columns: repeat(2, 1fr); }
  .tg-bookmaker-logo { width: 132px; }
  .tg-experiment-progress { grid-template-columns: 1fr; padding: 18px; }
  .tg-experiment-countdown { flex-wrap: wrap; }
  .tg-experiment-progressbar { grid-column: 1; }
  .tg-proof-overlap, .tg-proof-roi { grid-template-columns: 1fr; }
  .tg-evidence-heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .tg-evidence-model { padding: 16px; }
  .tg-experiment-models, .tg-evidence-models, .tg-latest-audit-models { grid-template-columns: 1fr; }
  .tg-final-evidence { padding: 18px; }
  .tg-final-evidence-scores { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .tg-p1-header-actions { gap: 2px; }
  .tg-p1-header .tg-brand-logo { flex-basis: 132px; width: 132px; }
  .tg-p1-icon-action, .tg-p1-avatar, .tg-p1-mobile-trigger { width: 36px; height: 36px; }
  .tg-p1-profile-snapshot { grid-template-columns: 1fr; }
  .tg-p1-decision-actions { grid-template-columns: 1fr; }
  .tg-p1-profile-snapshot > div { border-right: 0; border-bottom: 1px solid var(--mvp-line); }
  .tg-p1-tabs { gap: 20px; }
  .tg-main { width: min(100% - 18px, 1180px); }
  .tg-mvp-metrics { grid-template-columns: 1fr; }
  .tg-mvp-home-hero p, .tg-mvp-metric > span, .tg-mvp-metric small { overflow-wrap: anywhere; }
  .tg-mvp-page-meta { gap: 10px 16px; }
  .tg-mvp-page-actions { width: 100%; }
  .tg-mvp-page-actions > * { flex: 1 1; }
  .tg-mvp-filter-row, .tg-mvp-select-field { width: 100%; }
  .tg-mvp-traffic-guide { align-items: flex-start; flex-direction: column; }
  .tg-lightning-dialog { padding: 22px 16px; }
  .tg-lightning-dialog-grid, .tg-lightning-metrics, .tg-lightning-actions { grid-template-columns: 1fr; }
  .tg-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .tg-home-opportunity-row { grid-template-columns: 1fr; }
  .tg-home-opportunity-row > a { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/*!********************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/p1.css ***!
  \********************************************************************************************************************************************************************************************************************************************************/
:root {
  --p1-heading: #0b1b4f;
  --p1-ink: #1a2b26;
  --p1-muted: #5d6d67;
  --p1-green: #064e3b;
  --p1-green-dark: #033229;
  --p1-green-bright: #168a61;
  --p1-green-soft: #e9f5f0;
  --p1-amber: #f4b51f;
  --p1-amber-dark: #bb7900;
  --p1-amber-soft: #fff6dc;
  --p1-red: #d83b36;
  --p1-red-soft: #fff0ed;
  --p1-gray-soft: #f1f4f3;
  --p1-line: #dce5e2;
  --p1-page: #f7f9f9;
  --p1-content-max: 1180px;
  --p1-page-gutter: 16px;
  --p1-focus: #f4b51f;
}

/* Internal Genius Constellation control room. */
body .tg-main:has(.tg-admin-page) {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px;
  margin-inline: auto;
  padding: 24px 0 56px;
}

.tg-admin-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 18px;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  color: var(--p1-ink);
}

.tg-admin-page > * { width: 100%; max-width: 100%; min-width: 0; }

.tg-admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 360px);
  grid-gap: 36px;
  gap: 36px;
  align-items: end;
  padding: 30px 32px;
  border-radius: 8px;
  background: var(--p1-green-dark);
  color: #fff;
  box-shadow: inset 0 3px var(--p1-amber), 0 18px 44px rgb(3 50 41 / 15%);
}
.tg-admin-hero > * { min-width: 0; }

.tg-admin-hero > div:first-child > span,
.tg-admin-hero-state em {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a9d6c7;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tg-admin-hero h1 { margin: 8px 0 6px; font-size: clamp(34px, 4vw, 58px); line-height: 1; }
.tg-admin-hero p { max-width: 760px; margin: 0; color: #d3e6df; line-height: 1.55; }
.tg-admin-hero-state { display: grid; grid-gap: 4px; gap: 4px; padding: 18px; border: 1px solid rgb(255 255 255 / 14%); background: rgb(255 255 255 / 6%); }
.tg-admin-hero-state small { color: var(--p1-amber); font-weight: 850; text-transform: uppercase; }
.tg-admin-hero-state strong { font-size: 24px; }
.tg-admin-hero-state > span { color: #d3e6df; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.tg-admin-hero-state em { margin-top: 8px; color: #9ed8c3; font-size: 9px; }

.tg-admin-section-nav {
  position: -webkit-sticky;
  position: sticky;
  z-index: 6;
  top: 0;
  display: flex;
  gap: 3px;
  overflow-x: auto;
  padding: 6px;
  border: 1px solid var(--p1-line);
  border-radius: 6px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 8px 24px rgb(20 48 40 / 8%);
}

.tg-admin-section-nav a { padding: 9px 12px; color: var(--p1-muted); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tg-admin-section-nav a:hover { background: var(--p1-green-soft); color: var(--p1-green); }
.tg-admin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 7px; background: var(--p1-line); }
.tg-admin-kpis article { display: grid; grid-template-columns: auto 1fr; grid-gap: 3px 10px; gap: 3px 10px; padding: 19px; background: #fff; }
.tg-admin-kpis svg { grid-row: 1 / span 3; align-self: start; width: 20px; color: var(--p1-green-bright); }
.tg-admin-kpis span, .tg-admin-kpis small { color: var(--p1-muted); font-size: 10px; }
.tg-admin-kpis span { font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.tg-admin-kpis strong { font-size: 24px; }

.tg-admin-warning-strip { display: flex; gap: 12px; padding: 15px 18px; border-left: 4px solid var(--p1-amber); background: var(--p1-amber-soft); color: #6e4d08; }
.tg-admin-warning-strip > svg { flex: 0 0 auto; }
.tg-admin-warning-strip div { display: grid; grid-gap: 3px; gap: 3px; }
.tg-admin-warning-strip span { font-size: 12px; }

.tg-admin-panel { width: 100%; max-width: 100%; min-width: 0; overflow: hidden; scroll-margin-top: 70px; padding: 24px; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 8px 30px rgb(20 48 40 / 5%); }
.tg-admin-heading { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(360px, 1fr); grid-gap: 24px; gap: 24px; align-items: end; padding-bottom: 18px; border-bottom: 1px solid var(--p1-line); }
.tg-admin-heading > * { min-width: 0; }
.tg-admin-heading span { color: var(--p1-green-bright); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tg-admin-heading h2 { margin: 4px 0 0; font-size: 25px; }
.tg-admin-heading p { margin: 0; color: var(--p1-muted); font-size: 13px; line-height: 1.55; }

.tg-admin-gate-meter { display: grid; grid-gap: 12px; gap: 12px; margin: 20px 0; padding: 20px; background: var(--p1-green-dark); color: #fff; }
.tg-admin-gate-meter > div:first-child { display: flex; align-items: baseline; gap: 9px; }
.tg-admin-gate-meter > div:first-child strong { color: var(--p1-amber); font-size: 34px; }
.tg-admin-gate-meter > div:first-child span { color: #cbe0d9; }
.tg-admin-progress { height: 9px; overflow: hidden; background: rgb(255 255 255 / 13%); }
.tg-admin-progress i { display: block; height: 100%; background: var(--p1-amber); }
.tg-admin-gate-meta { display: flex; justify-content: space-between; color: #a9c9be; font-size: 10px; font-weight: 750; text-transform: uppercase; }

.tg-admin-model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; overflow: hidden; border: 1px solid var(--p1-line); background: var(--p1-line); }
.tg-admin-model-card { display: grid; grid-template-rows: auto auto auto auto 1fr; grid-gap: 10px; gap: 10px; min-width: 0; min-height: 420px; padding: 20px; background: #fff; box-shadow: inset 0 3px #aab8b3; }
.tg-admin-model-card.is-polaris { background: var(--p1-green-soft); box-shadow: inset 0 3px var(--p1-green); }
.tg-admin-model-card.is-mercury { box-shadow: inset 0 3px #1a9b91; }
.tg-admin-model-card.is-sirius { box-shadow: inset 0 3px #5165b5; }
.tg-admin-model-card.is-market { box-shadow: inset 0 3px var(--p1-amber); }
.tg-admin-model-card header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.tg-admin-model-card header span { display: flex; align-items: center; gap: 5px; color: var(--p1-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-admin-model-card header strong { color: var(--p1-green); font-size: 12px; }
.tg-admin-model-card h3 { margin: 2px 0 0; font-size: 19px; }
.tg-admin-model-card > p { margin: 0; color: var(--p1-muted); font-size: 12px; line-height: 1.5; }
.tg-admin-model-version { display: grid; grid-template-columns: 1fr auto; grid-gap: 4px 10px; gap: 4px 10px; padding: 10px; border: 1px solid var(--p1-line); background: rgb(255 255 255 / 72%); }
.tg-admin-model-version span { color: var(--p1-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-admin-model-version strong { grid-column: 1 / -1; overflow: hidden; color: var(--p1-green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tg-admin-model-version small { grid-column: 2; grid-row: 1; color: var(--p1-muted); font-size: 9px; }
.tg-admin-model-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; margin: 0; background: var(--p1-line); }
.tg-admin-model-card dl div { display: grid; grid-gap: 4px; gap: 4px; padding: 10px; background: #fff; }
.tg-admin-model-card dt { color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-admin-model-card dd { margin: 0; overflow: hidden; font-size: 13px; font-weight: 850; text-overflow: ellipsis; }
.tg-admin-model-card footer { color: var(--p1-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }

.tg-admin-orion { margin-top: 20px; overflow: hidden; border: 1px solid #b8d3ca; background: #f8fbfa; box-shadow: inset 0 3px var(--p1-green); }
.tg-admin-orion > header { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(360px, 1fr); grid-gap: 24px; gap: 24px; align-items: end; padding: 20px; border-bottom: 1px solid var(--p1-line); }
.tg-admin-orion > header span { display: flex; align-items: center; gap: 6px; color: var(--p1-green-bright); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tg-admin-orion > header h3 { margin: 5px 0 0; font-size: 25px; }
.tg-admin-orion > header h3 em { color: var(--p1-muted); font-size: 15px; font-style: normal; font-weight: 650; }
.tg-admin-orion > header p { margin: 0; color: var(--p1-muted); font-size: 12px; line-height: 1.55; }
.tg-admin-orion-pending { display: flex; align-items: center; gap: 10px; margin: 16px 20px 0; padding: 12px 14px; border-left: 3px solid var(--p1-amber); background: var(--p1-amber-soft); color: #6e4d08; font-size: 11px; }
.tg-admin-orion-pending svg { flex: 0 0 auto; }
.tg-admin-orion-pending span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-admin-orion-cohort { display: flex; flex-wrap: wrap; gap: 1px; margin: 16px 20px 0; background: var(--p1-line); }
.tg-admin-orion-cohort span { flex: 1 1 160px; padding: 10px 12px; background: #fff; color: var(--p1-muted); font-size: 10px; }
.tg-admin-orion-cohort strong { margin-right: 4px; color: var(--p1-ink); font-size: 15px; }
.tg-admin-orion-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; margin: 1px 20px 20px; background: var(--p1-line); }
.tg-admin-orion-grid > article { padding: 18px; background: #fff; }
.tg-admin-orion-grid > article.is-orion { background: var(--p1-green-soft); }
.tg-admin-orion-grid > article.is-market { box-shadow: inset 0 3px var(--p1-amber); }
.tg-admin-orion-grid article > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tg-admin-orion-grid article > header span { color: var(--p1-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-admin-orion-grid article > header strong { color: var(--p1-green); font-size: 17px; }
.tg-admin-orion-grid dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; margin: 15px 0 0; background: var(--p1-line); }
.tg-admin-orion-grid dl div { display: grid; grid-gap: 4px; gap: 4px; padding: 11px; background: #fff; }
.tg-admin-orion-grid dt { color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-admin-orion-grid dd { margin: 0; font-size: 14px; font-weight: 850; }
.tg-admin-orion > footer { padding: 0 20px 16px; color: var(--p1-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }

.tg-admin-proof { width: 100%; min-width: 0; }
.tg-admin-proof-empty { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 22px; border-left: 4px solid var(--p1-amber); background: var(--p1-amber-soft); color: #6e4d08; }
.tg-admin-proof-empty div { display: grid; grid-gap: 4px; gap: 4px; }
.tg-admin-proof-empty span { font-size: 11px; }
.tg-admin-proof-summary { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 20px; padding: 16px 18px; background: var(--p1-green-dark); color: #fff; }
.tg-admin-proof-summary div { display: grid; grid-gap: 3px; gap: 3px; }
.tg-admin-proof-summary span { color: #a9d6c7; font-size: 9px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.tg-admin-proof-summary strong { font-size: 22px; }
.tg-admin-proof-summary p { margin: 0; color: #cbe0d9; font-size: 11px; text-align: right; }
.tg-admin-proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; margin-top: 1px; overflow: hidden; background: var(--p1-line); }
.tg-admin-proof-card { min-width: 0; padding: 16px; background: #fff; box-shadow: inset 0 3px #9eb4ad; }
.tg-admin-proof-card.is-polaris { background: var(--p1-green-soft); box-shadow: inset 0 3px var(--p1-green); }
.tg-admin-proof-card.is-mercury { box-shadow: inset 0 3px #1a9b91; }
.tg-admin-proof-card.is-sirius { box-shadow: inset 0 3px #5165b5; }
.tg-admin-proof-card.is-market { box-shadow: inset 0 3px var(--p1-amber); }
.tg-admin-proof-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tg-admin-proof-card > header span { color: var(--p1-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-admin-proof-card > header b { color: var(--p1-green); font-size: 23px; }
.tg-admin-proof-card h3 { margin: 8px 0 2px; font-size: 16px; }
.tg-admin-proof-card > p { margin: 0; color: var(--p1-muted); font-size: 10px; }
.tg-admin-proof-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; margin: 14px 0 0; background: var(--p1-line); }
.tg-admin-proof-card dl div { display: grid; grid-gap: 4px; gap: 4px; min-width: 0; padding: 9px; background: #fff; }
.tg-admin-proof-card dt { color: var(--p1-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.tg-admin-proof-card dd { margin: 0; overflow: hidden; font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.tg-admin-proof-table td { min-width: 145px; vertical-align: top; }
.tg-admin-proof-table td:first-child, .tg-admin-proof-table td:nth-child(2) { min-width: 110px; }
.tg-admin-proof-table td strong, .tg-admin-proof-table td small { display: block; }

.tg-admin-results-explorer { width: 100%; min-width: 0; }
.tg-admin-result-filters { display: grid; grid-template-columns: minmax(170px, 1.2fr) minmax(160px, 1fr) minmax(140px, .8fr) minmax(140px, .8fr) auto; grid-gap: 10px; gap: 10px; align-items: end; margin-top: 20px; padding: 16px; border: 1px solid var(--p1-line); background: var(--p1-gray-soft); }
.tg-admin-result-filters label { display: grid; grid-gap: 6px; gap: 6px; min-width: 0; }
.tg-admin-result-filters label > span { color: var(--p1-muted); font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.tg-admin-result-filters :where(select, input, button) { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #c7d6d1; border-radius: 4px; background: #fff; color: var(--p1-ink); font: inherit; font-size: 12px; }
.tg-admin-result-filters :where(select, input) { padding: 0 10px; }
.tg-admin-result-filters button { width: auto; padding: 0 14px; color: var(--p1-green); font-weight: 850; cursor: pointer; }
.tg-admin-results-table { min-width: 1420px; white-space: normal; }
.tg-admin-results-table th { white-space: nowrap; }
.tg-admin-results-table td { min-width: 170px; vertical-align: top; }
.tg-admin-results-table td:first-child { min-width: 190px; }
.tg-admin-results-table td strong, .tg-admin-results-table td small { display: block; }
.tg-admin-results-table td small { margin-top: 4px; white-space: normal; }
.tg-admin-rank-list { display: grid; grid-gap: 4px; gap: 4px; margin: 0; padding: 0; list-style: none; }
.tg-admin-rank-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); grid-gap: 5px; gap: 5px; align-items: baseline; }
.tg-admin-rank-list b { color: var(--p1-muted); font-size: 9px; }
.tg-admin-rank-list span { overflow: hidden; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.tg-admin-results-table .is-positive { color: var(--p1-green-bright); }
.tg-admin-results-table .is-negative { color: var(--p1-red); }
.tg-admin-agreement-pill { display: inline-flex; margin-bottom: 7px; padding: 4px 7px; border-radius: 999px; background: var(--p1-gray-soft); color: var(--p1-muted); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.tg-admin-agreement-pill.is-3-3 { background: var(--p1-green); color: #fff; }
.tg-admin-agreement-pill.is-2-3 { background: var(--p1-green-soft); color: var(--p1-green); }
.tg-admin-agreement-pill.is-skip_veto { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }

.tg-admin-comparison-wrap { width: 100%; max-width: 100%; min-width: 0; margin-top: 20px; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid var(--p1-line); }
.tg-admin-table { width: 100%; border-collapse: collapse; font-size: 11px; white-space: nowrap; }
.tg-admin-table th { padding: 11px 12px; background: var(--p1-gray-soft); color: var(--p1-muted); font-size: 9px; letter-spacing: .03em; text-align: left; text-transform: uppercase; }
.tg-admin-table td { padding: 12px; border-top: 1px solid var(--p1-line); }
.tg-admin-table tr.is-market td { background: var(--p1-amber-soft); }
.tg-admin-table tr.is-incomplete { color: var(--p1-muted); }
.tg-admin-table small { color: var(--p1-muted); font-size: 9px; }
.tg-admin-table code { color: var(--p1-green); font-weight: 800; }

.tg-admin-rule-grid, .tg-admin-agreement-grid, .tg-admin-health-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1px; gap: 1px; margin-top: 20px; overflow: hidden; background: var(--p1-line); }
.tg-admin-rule-grid article { display: flex; gap: 12px; padding: 18px; background: #fff; }
.tg-admin-rule-grid svg { flex: 0 0 auto; color: var(--p1-green-bright); }
.tg-admin-rule-grid p { margin: 5px 0 0; color: var(--p1-muted); font-size: 12px; line-height: 1.45; }
.tg-admin-agreement-grid { grid-template-columns: repeat(4, 1fr); }
.tg-admin-agreement-grid article, .tg-admin-health-grid article { display: grid; grid-gap: 5px; gap: 5px; padding: 18px; background: #fff; }
.tg-admin-agreement-grid span, .tg-admin-health-grid span { color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-admin-agreement-grid strong, .tg-admin-health-grid strong { font-size: 23px; }
.tg-admin-agreement-grid small, .tg-admin-health-grid small { color: var(--p1-muted); font-size: 10px; }
.tg-admin-health-grid { grid-template-columns: repeat(4, 1fr); }
.tg-admin-health-grid svg { color: var(--p1-green-bright); }

.tg-admin-result-counts { display: flex; width: 100%; max-width: 100%; min-width: 0; gap: 1px; margin-top: 20px; overflow-x: auto; overscroll-behavior-inline: contain; background: var(--p1-line); }
.tg-admin-result-counts > div { display: grid; min-width: 130px; grid-gap: 3px; gap: 3px; padding: 15px; background: var(--p1-green-soft); }
.tg-admin-result-counts strong { color: var(--p1-green); font-size: 22px; }
.tg-admin-result-counts span, .tg-admin-result-counts p { color: var(--p1-muted); font-size: 10px; }
.tg-admin-result-counts > p { width: 100%; margin: 0; padding: 16px; background: #fff; }
.tg-admin-meetings-explorer { width: 100%; max-width: 100%; min-width: 0; }
.tg-admin-meeting-filters { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 1fr) minmax(145px, .8fr) minmax(145px, .8fr) auto; grid-gap: 10px; gap: 10px; align-items: end; margin-top: 20px; padding: 16px; border: 1px solid var(--p1-line); background: var(--p1-gray-soft); }
.tg-admin-meeting-filters label { display: grid; grid-gap: 6px; gap: 6px; min-width: 0; }
.tg-admin-meeting-filters label > span { color: var(--p1-muted); font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.tg-admin-meeting-filters :where(select, input, button) { width: 100%; min-width: 0; min-height: 40px; border: 1px solid #c7d6d1; border-radius: 4px; background: #fff; color: var(--p1-ink); font: inherit; font-size: 12px; }
.tg-admin-meeting-filters :where(select, input) { padding: 0 10px; }
.tg-admin-meeting-filters button { display: inline-flex; width: auto; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; color: var(--p1-green); font-weight: 850; cursor: pointer; }
.tg-admin-meeting-filters button:hover { background: var(--p1-green-soft); }
.tg-admin-filter-summary { display: flex; align-items: baseline; gap: 7px; padding: 13px 2px 0; }
.tg-admin-filter-summary strong { color: var(--p1-green); font-size: 22px; }
.tg-admin-filter-summary span { font-size: 12px; font-weight: 800; }
.tg-admin-filter-summary small { margin-left: auto; color: var(--p1-muted); font-size: 10px; }
.tg-admin-empty { height: 90px; color: var(--p1-muted); text-align: center; }
.tg-admin-footer-note { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 13px; background: var(--p1-green-soft); color: var(--p1-green); font-size: 11px; }
.tg-admin-footer-note span { flex: 1 1; }
.tg-admin-footer-note a { color: var(--p1-green); font-weight: 850; }
.tg-admin-access { width: min(620px, calc(100% - 32px)); margin: 80px auto; padding: 32px; border: 1px solid var(--p1-line); background: #fff; text-align: center; }
.tg-admin-access > span { color: var(--p1-red); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.tg-admin-access a { display: inline-flex; margin-top: 14px; color: var(--p1-green); font-weight: 850; }

@media (max-width: 1100px) {
  .tg-admin-kpis, .tg-admin-model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-admin-proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-admin-agreement-grid, .tg-admin-health-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-admin-meeting-filters, .tg-admin-result-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-admin-meeting-filters button, .tg-admin-result-filters button { width: 100%; }
}

@media (max-width: 720px) {
  body .tg-main:has(.tg-admin-page) { width: 100%; max-width: 100%; padding: 10px 10px 92px; }
  .tg-admin-hero, .tg-admin-heading { grid-template-columns: 1fr; gap: 16px; }
  .tg-admin-hero { padding: 22px; }
  .tg-admin-kpis, .tg-admin-model-grid, .tg-admin-rule-grid, .tg-admin-agreement-grid, .tg-admin-health-grid { grid-template-columns: 1fr; }
  .tg-admin-proof-grid { grid-template-columns: 1fr; }
  .tg-admin-panel { padding: 17px; }
  .tg-admin-gate-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .tg-admin-orion > header, .tg-admin-orion-grid, .tg-admin-meeting-filters, .tg-admin-result-filters { grid-template-columns: 1fr; }
  .tg-admin-orion > header { gap: 12px; }
  .tg-admin-orion-cohort, .tg-admin-orion-grid { margin-inline: 12px; }
  .tg-admin-proof-summary { align-items: flex-start; flex-direction: column; }
  .tg-admin-proof-summary p { text-align: left; }
  .tg-admin-filter-summary { align-items: flex-start; flex-direction: column; }
  .tg-admin-filter-summary small { margin-left: 0; }
}

/* RaceCards Pro: protected P1 evidence workspace. */
.tg-racecards-view-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, auto));
  overflow: hidden;
  border: 1px solid #c7d6d1;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 6px 18px rgb(20 48 40 / 5%);
}

.tg-p1-page-title .tg-racecards-view-switch :where(a, span) {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 13px;
  border-left: 1px solid var(--p1-line);
  color: var(--p1-green);
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.tg-p1-page-title .tg-racecards-view-switch :where(a, span):first-child { border-left: 0; }
.tg-p1-page-title .tg-racecards-view-switch a:hover { background: var(--p1-green-soft); }
.tg-p1-page-title .tg-racecards-view-switch .is-active { background: var(--p1-green); color: #fff; }
.tg-p1-page-title .tg-racecards-view-switch svg { color: var(--p1-amber-dark); }
.tg-p1-page-title .tg-racecards-view-switch .is-active svg { color: var(--p1-amber); }

.tg-p1-racecards-pro-page > .tg-p1-page-title h1 {
  max-width: 820px;
  font-size: clamp(35px, 3.7vw, 48px);
  line-height: 1.02;
}

.tg-p1-racecards-pro-page > .tg-p1-page-title p {
  max-width: 800px;
  font-size: 14px;
}

.tg-p1-pro-access-retry {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #cbd9d5;
  border-radius: 4px;
  background: #fff;
}

.tg-p1-pro-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(520px, 1.35fr);
  align-items: stretch;
  overflow: hidden;
  border-radius: 7px;
  background: var(--p1-green-dark);
  color: #fff;
  box-shadow: inset 0 3px var(--p1-amber), 0 14px 34px rgb(3 50 41 / 12%);
}

.tg-p1-pro-hero > div:first-child {
  align-self: center;
  padding: 28px 30px;
}

.tg-p1-pro-hero > div:first-child > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #e9bf55;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tg-p1-pro-hero h2 {
  max-width: 460px;
  margin: 10px 0 8px;
  color: #fff;
  font-size: clamp(23px, 2.1vw, 31px);
  line-height: 1.08;
}

.tg-p1-pro-hero p {
  max-width: 500px;
  margin: 0;
  color: #b9d1c8;
  font-size: 12px;
  line-height: 1.55;
}

.tg-p1-pro-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: rgb(255 255 255 / 7%);
}

.tg-p1-pro-overview-metrics > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 25px 18px;
  border-left: 1px solid rgb(255 255 255 / 12%);
}

.tg-p1-pro-overview-metrics span {
  color: #a9c4ba;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.tg-p1-pro-overview-metrics strong {
  margin: 6px 0 3px;
  color: #fff;
  font-size: clamp(25px, 2.5vw, 35px);
  line-height: 1;
}

.tg-p1-pro-overview-metrics small { color: #8fada2; font-size: 9px; }

.tg-p1-pro-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1.35fr) minmax(230px, 1fr) repeat(5, minmax(112px, .7fr)) auto;
  grid-gap: 8px;
  gap: 8px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--p1-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(20 48 40 / 4%);
}

.tg-p1-pro-date-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #cbd9d5;
  border-radius: 4px;
}

.tg-p1-pro-date-tabs button {
  display: grid;
  grid-gap: 1px;
  gap: 1px;
  min-height: 50px;
  padding: 7px 10px;
  border: 0;
  border-left: 1px solid #dbe4e1;
  border-radius: 0;
  background: #fff;
  color: var(--p1-ink);
  cursor: pointer;
}

.tg-p1-pro-date-tabs button:first-child { border-left: 0; }
.tg-p1-pro-date-tabs button:hover { background: var(--p1-gray-soft); }
.tg-p1-pro-date-tabs button.is-active { background: var(--p1-green); color: #fff; }
.tg-p1-pro-date-tabs strong { font-size: 11px; }
.tg-p1-pro-date-tabs span { color: inherit; font-size: 9px; opacity: .75; }

.tg-p1-pro-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 11px;
  border: 1px solid #cbd9d5;
  border-radius: 4px;
  color: var(--p1-muted);
}

.tg-p1-pro-search:focus-within { border-color: var(--p1-green-bright); box-shadow: 0 0 0 3px rgb(22 138 97 / 10%); }
.tg-p1-pro-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--p1-ink); font-size: 11px; }
.tg-p1-pro-search input::placeholder { color: #84938e; }

.tg-p1-pro-controls > label:not(.tg-p1-pro-search) { display: grid; grid-gap: 5px; gap: 5px; }
.tg-p1-pro-controls > label > span { color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-p1-pro-controls select { min-width: 0; width: 100%; height: 32px; border: 1px solid #cbd9d5; background: #fff; color: var(--p1-ink); font-size: 10px; }

.tg-p1-pro-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid #cbd9d5;
  background: #fff;
  color: var(--p1-green);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.tg-p1-pro-reset:disabled { color: #9eaaa6; cursor: default; opacity: .65; }

.tg-p1-pro-list-head {
  display: flex;
  min-height: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--p1-muted);
  font-size: 10px;
  font-weight: 750;
}

.tg-p1-pro-list-head span:last-child { color: var(--p1-green); text-align: right; }
.tg-p1-pro-race-list { display: grid; grid-gap: 12px; gap: 12px; }

.tg-p1-pro-race {
  overflow: hidden;
  border: 1px solid #d4e0dc;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 7px 24px rgb(20 48 40 / 4%);
}

.tg-p1-pro-race.is-expanded { border-color: #b7cdc5; box-shadow: inset 0 3px var(--p1-green), 0 12px 30px rgb(20 48 40 / 7%); }

.tg-p1-pro-race > header {
  display: grid;
  grid-template-columns: 104px minmax(260px, 1fr) minmax(116px, auto) 310px;
  align-items: center;
  grid-gap: 20px;
  gap: 20px;
  min-height: 96px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--p1-line);
}

.tg-p1-pro-race-time { display: grid; grid-gap: 2px; gap: 2px; padding-right: 17px; border-right: 1px solid var(--p1-line); }
.tg-p1-pro-race-time strong { color: var(--p1-green); font-size: 27px; line-height: 1; }
.tg-p1-pro-race-time span { overflow: hidden; font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-pro-race-time small { color: var(--p1-green-bright); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-p1-pro-race-title { min-width: 0; }
.tg-p1-pro-race-title > span { display: block; overflow: hidden; color: var(--p1-green-bright); font-size: 9px; font-weight: 850; letter-spacing: .04em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.tg-p1-pro-race-title h2 { margin: 5px 0 4px; overflow: hidden; color: var(--p1-ink); font-size: 17px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-pro-race-title p { margin: 0; color: var(--p1-muted); font-size: 10px; }

.tg-p1-pro-race-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--p1-line);
  border-radius: 4px;
}

.tg-p1-pro-race-scores > span { display: grid; grid-gap: 4px; gap: 4px; min-width: 0; padding: 9px 10px; border-left: 1px solid var(--p1-line); }
.tg-p1-pro-race-scores > span:first-child { border-left: 0; }
.tg-p1-pro-race-scores small { color: var(--p1-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.tg-p1-pro-race-scores strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }

.tg-p1-pro-top-runner {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) repeat(3, minmax(92px, .48fr)) minmax(430px, 1.7fr);
  align-items: center;
  grid-gap: 13px;
  gap: 13px;
  padding: 13px 18px;
  background: #fbfcfc;
}

.tg-p1-pro-top-runner > span:nth-child(2) { display: grid; min-width: 0; }
.tg-p1-pro-top-runner > span:nth-child(2) small { color: var(--p1-green-bright); font-size: 8px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.tg-p1-pro-top-runner > span:nth-child(2) strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-pro-top-runner > span:nth-child(2) em { overflow: hidden; color: var(--p1-muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-pro-top-runner > span:nth-child(n+3) { display: grid; grid-gap: 2px; gap: 2px; min-width: 0; padding-left: 12px; border-left: 1px solid var(--p1-line); }
.tg-p1-pro-top-runner > span:nth-child(n+3) small { color: var(--p1-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.tg-p1-pro-top-runner > span:nth-child(n+3) strong { font-size: 14px; }

.tg-p1-pro-race-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.tg-p1-pro-race-actions :where(button, a) { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 5px; padding: 0 9px; border: 1px solid #cbd9d5; border-radius: 4px; background: #fff; color: var(--p1-green); font-size: 9px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tg-p1-pro-race-actions :where(button, a):hover { border-color: #95b1a7; background: var(--p1-green-soft); }
.tg-p1-pro-race-actions button:disabled { cursor: default; opacity: .5; }
.tg-p1-pro-race-actions .tg-p1-pro-expand { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-p1-pro-race-actions .tg-p1-pro-expand:hover { background: var(--p1-green-dark); color: #fff; }

.tg-p1-pro-evidence-panel { display: grid; grid-gap: 1px; gap: 1px; padding: 1px 0 0; background: var(--p1-line); }
.tg-p1-pro-angles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; background: var(--p1-line); }
.tg-p1-pro-angles > section { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 11px; gap: 11px; min-width: 0; padding: 18px; background: #fff; }
.tg-p1-pro-angles svg { width: 18px; color: var(--p1-green-bright); }
.tg-p1-pro-angles span { display: grid; min-width: 0; }
.tg-p1-pro-angles small { color: var(--p1-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.tg-p1-pro-angles strong { margin-top: 2px; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-pro-angles p { margin: 5px 0 0; color: var(--p1-muted); font-size: 10px; line-height: 1.45; }

.tg-p1-pro-context-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; background: var(--p1-line); }
.tg-p1-pro-context-grid > section { min-width: 0; padding: 16px 18px; background: #f8faf9; }
.tg-p1-pro-context-grid span { display: flex; align-items: center; gap: 7px; color: var(--p1-green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-p1-pro-context-grid strong { display: block; margin-top: 7px; font-size: 14px; }
.tg-p1-pro-context-grid p { margin: 4px 0 0; color: var(--p1-muted); font-size: 9px; line-height: 1.45; }

.tg-p1-pro-runner-table-wrap { max-width: 100%; overflow-x: auto; background: #fff; }
.tg-p1-pro-runner-table { width: 100%; min-width: 820px; border-collapse: collapse; font-size: 10px; }
.tg-p1-pro-runner-table th { padding: 9px 12px; background: #eef4f1; color: var(--p1-muted); font-size: 8px; text-align: left; text-transform: uppercase; }
.tg-p1-pro-runner-table td { padding: 11px 12px; border-top: 1px solid var(--p1-line); color: var(--p1-muted); }
.tg-p1-pro-runner-table td strong { display: block; color: var(--p1-ink); font-size: 11px; }
.tg-p1-pro-runner-table td small { display: block; margin-top: 2px; color: var(--p1-muted); font-size: 8px; }
.tg-p1-pro-runner-table tbody tr:hover { background: #fbfcfc; }

.tg-p1-pro-access-page { max-width: 820px; min-height: 46vh; align-content: start; padding-top: 18px; }
.tg-p1-pro-access-page > .tg-p1-page-title h1 { font-size: clamp(34px, 3.5vw, 44px); line-height: 1.05; }
.tg-p1-pro-access-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tg-p1-pro-access-actions a { display: inline-flex; min-height: 40px; align-items: center; padding: 0 14px; border-radius: 4px; background: var(--p1-green); color: #fff; font-size: 11px; font-weight: 800; text-decoration: none; }
.tg-p1-pro-access-actions a:last-child { border: 1px solid #cbd9d5; background: #fff; color: var(--p1-green); }

@media (max-width: 1180px) {
  .tg-p1-pro-controls { grid-template-columns: minmax(280px, 1.2fr) minmax(220px, 1fr) repeat(3, minmax(120px, .6fr)); }
  .tg-p1-pro-controls > label:nth-of-type(5),
  .tg-p1-pro-controls > label:nth-of-type(6) { grid-column: span 2; }
  .tg-p1-pro-race > header { grid-template-columns: 95px minmax(230px, 1fr) auto 285px; gap: 14px; }
  .tg-p1-pro-top-runner { grid-template-columns: auto minmax(170px, 1fr) repeat(3, minmax(85px, .5fr)); }
  .tg-p1-pro-race-actions { grid-column: 1 / -1; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--p1-line); }
}

@media (max-width: 980px) {
  .tg-p1-pro-hero { grid-template-columns: 1fr; }
  .tg-p1-pro-overview-metrics { border-top: 1px solid rgb(255 255 255 / 12%); }
  .tg-p1-pro-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tg-p1-pro-date-tabs,
  .tg-p1-pro-search { grid-column: span 3; }
  .tg-p1-pro-controls > label:nth-of-type(5),
  .tg-p1-pro-controls > label:nth-of-type(6) { grid-column: auto; }
  .tg-p1-pro-race > header { grid-template-columns: 90px minmax(220px, 1fr) auto; }
  .tg-p1-pro-race-scores { grid-column: 2 / -1; width: 100%; }
  .tg-p1-pro-context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .tg-racecards-view-switch { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-p1-racecards-pro-page > .tg-p1-page-title h1 { font-size: 33px; }
  .tg-p1-pro-hero > div:first-child { padding: 24px 20px; }
  .tg-p1-pro-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-p1-pro-overview-metrics > div { padding: 18px; border-top: 1px solid rgb(255 255 255 / 12%); }
  .tg-p1-pro-overview-metrics > div:nth-child(odd) { border-left: 0; }
  .tg-p1-pro-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 11px; }
  .tg-p1-pro-date-tabs,
  .tg-p1-pro-search { grid-column: span 2; }
  .tg-p1-pro-controls > label:nth-of-type(5),
  .tg-p1-pro-controls > label:nth-of-type(6) { grid-column: auto; }
  .tg-p1-pro-reset { width: 100%; }
  .tg-p1-pro-list-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .tg-p1-pro-list-head span:last-child { text-align: left; }
  .tg-p1-pro-race > header { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 15px; }
  .tg-p1-pro-race > header > .tg-decision-signal { grid-column: 2; }
  .tg-p1-pro-race-scores { grid-column: 1 / -1; }
  .tg-p1-pro-race-time strong { font-size: 22px; }
  .tg-p1-pro-race-title h2 { white-space: normal; }
  .tg-p1-pro-top-runner { grid-template-columns: auto minmax(0, 1fr) repeat(3, 1fr); padding: 13px 15px; }
  .tg-p1-pro-top-runner > span:nth-child(n+3) { padding: 9px 4px 0; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-p1-pro-top-runner > span:nth-child(3) { grid-column: 1 / 3; }
  .tg-p1-pro-top-runner > span:nth-child(4) { grid-column: 3 / 5; }
  .tg-p1-pro-top-runner > span:nth-child(5) { grid-column: 5 / 6; }
  .tg-p1-pro-race-actions { overflow-x: auto; }
  .tg-p1-pro-race-actions :where(button, a) { flex: 0 0 auto; }
  .tg-p1-pro-angles,
  .tg-p1-pro-context-grid { grid-template-columns: 1fr; }
  .tg-p1-pro-access-actions { align-items: stretch; flex-direction: column; }
  .tg-p1-pro-access-actions a { justify-content: center; }
}

/* Desktop navigation and monitoring hub */
.tg-p1-mega-wrap { display: flex; align-self: stretch; }

.tg-p1-mega-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #273732;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tg-p1-mega-trigger::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.tg-p1-mega-trigger:hover,
.tg-p1-mega-trigger.is-active { color: var(--p1-green); }
.tg-p1-mega-trigger.is-active::after { background: var(--p1-green-bright); }
.tg-p1-mega-trigger > svg { transition: transform 160ms ease; }
.tg-p1-mega-trigger > svg.is-open { transform: rotate(180deg); }
.tg-p1-mega-trigger > span {
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding-inline: 4px;
  border-radius: 9px;
  background: var(--p1-red);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.tg-p1-mega-menu {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  z-index: 80;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 84px);
  overflow: hidden;
  transform: translateX(-50%);
  border: 1px solid #cddad6;
  border-top: 3px solid var(--p1-green-bright);
  border-radius: 0 0 8px 8px;
  background: #fff;
  color: var(--p1-ink);
  box-shadow: 0 26px 70px rgb(3 37 29 / 22%);
}

.tg-p1-mega-menu :where(button, input, select) { font: inherit; }
.tg-p1-mega-menu a::after { display: none; }

.tg-p1-mega-head {
  display: grid;
  grid-template-columns: auto minmax(360px, 560px) auto;
  align-items: center;
  grid-gap: 26px;
  gap: 26px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--p1-line);
  background: #fbfcfc;
}

.tg-p1-mega-head > div:first-child { min-width: 145px; }
.tg-p1-mega-head > div:first-child > span,
.tg-p1-mega-alerts > header > div > span {
  display: block;
  color: var(--p1-green-bright);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tg-p1-mega-head h2,
.tg-p1-mega-alerts h2 { margin: 3px 0 0; color: var(--p1-ink); font-size: 21px; line-height: 1.15; }

.tg-p1-mega-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #cbd8d4;
  border-radius: 5px;
  background: #fff;
  color: var(--p1-muted);
}

.tg-p1-mega-search:focus-within { border-color: #77aa99; box-shadow: 0 0 0 3px rgb(22 138 97 / 10%); }
.tg-p1-mega-search input { flex: 1 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--p1-ink); font-size: 12px; }
.tg-p1-mega-search > button,
.tg-p1-mega-close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--p1-muted);
  cursor: pointer;
}
.tg-p1-mega-search > button:hover,
.tg-p1-mega-close:hover { background: var(--p1-gray-soft); color: var(--p1-ink); }

.tg-p1-mega-filters {
  display: grid;
  grid-template-columns: auto minmax(132px, 1fr) minmax(120px, .85fr) minmax(132px, .9fr) auto auto;
  align-items: end;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--p1-line);
  background: #f6f9f8;
}

.tg-p1-mega-day-filter { display: inline-flex; min-height: 37px; padding: 3px; border-radius: 4px; background: #e6eeeb; }
.tg-p1-mega-day-filter button { min-width: 68px; padding: 7px 10px; border: 0; border-radius: 3px; background: transparent; color: var(--p1-muted); font-size: 10px; font-weight: 800; cursor: pointer; }
.tg-p1-mega-day-filter button.is-active { background: #fff; color: var(--p1-green); box-shadow: 0 2px 8px rgb(10 50 40 / 10%); }

.tg-p1-mega-filters > label { display: grid; grid-gap: 4px; gap: 4px; min-width: 0; }
.tg-p1-mega-filters > label > span { color: var(--p1-muted); font-size: 8px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.tg-p1-mega-filters select { width: 100%; min-height: 37px; padding: 7px 28px 7px 9px; border: 1px solid #cad7d3; border-radius: 4px; background: #fff; color: var(--p1-ink); font-size: 10px; }

.tg-p1-mega-followed,
.tg-p1-mega-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 37px;
  padding: 8px 11px;
  border: 1px solid #cad7d3;
  border-radius: 4px;
  background: #fff;
  color: var(--p1-green);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.tg-p1-mega-followed > span { color: var(--p1-muted); }
.tg-p1-mega-followed.is-active { border-color: var(--p1-green-bright); background: var(--p1-green-soft); }
.tg-p1-mega-reset { border-color: transparent; background: transparent; color: var(--p1-muted); }
.tg-p1-mega-reset:not(:disabled):hover { color: var(--p1-green); }
.tg-p1-mega-reset:disabled { opacity: .4; cursor: default; }

.tg-p1-mega-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 355px;
  min-height: 0;
  height: min(575px, calc(100vh - 224px));
}

.tg-p1-mega-discovery { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.tg-p1-mega-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--p1-line); }
.tg-p1-mega-tabs button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border: 0;
  border-left: 1px solid var(--p1-line);
  border-bottom: 2px solid transparent;
  background: #fff;
  color: var(--p1-muted);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.tg-p1-mega-tabs button:first-child { border-left: 0; }
.tg-p1-mega-tabs button:hover { background: #f8fbfa; color: var(--p1-green); }
.tg-p1-mega-tabs button.is-active { border-bottom-color: var(--p1-green-bright); background: var(--p1-green-soft); color: var(--p1-green); }
.tg-p1-mega-tabs small { display: grid; min-width: 19px; height: 19px; place-items: center; padding-inline: 4px; border-radius: 10px; background: #e8efed; color: var(--p1-muted); font-size: 8px; }
.tg-p1-mega-tabs button.is-active small { background: #fff; color: var(--p1-green); }

.tg-p1-mega-inline-note { display: flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 16px; border-bottom: 1px solid #f1dfb4; background: #fff9e9; color: #785d19; font-size: 9px; }
.tg-p1-mega-inline-note svg { flex: 0 0 auto; }
.tg-p1-mega-results { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #b7c8c2 transparent; }

.tg-p1-mega-entity-list { display: grid; align-content: start; padding: 8px 16px 14px; }
.tg-p1-mega-entity-list > small { padding: 12px 4px 4px; color: var(--p1-muted); font-size: 9px; text-align: center; }
.tg-p1-mega-menu .tg-p1-mega-entity {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 108px auto 15px;
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  min-height: 57px;
  padding: 8px 4px;
  border-bottom: 1px solid #e8eeec;
  color: var(--p1-ink);
  font-size: 11px;
  text-decoration: none;
}
.tg-p1-mega-menu .tg-p1-mega-entity:hover { background: #f8fbfa; color: var(--p1-green); }
.tg-p1-mega-menu .tg-p1-mega-entity:last-child { border-bottom: 0; }
.tg-p1-mega-entity-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-p1-mega-entity-icon.is-race { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-p1-mega-entity-copy,
.tg-p1-mega-entity-race { display: grid; min-width: 0; grid-gap: 3px; gap: 3px; }
.tg-p1-mega-entity-copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-mega-entity-copy small,
.tg-p1-mega-entity-race small { overflow: hidden; color: var(--p1-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-mega-entity-race { justify-items: end; }
.tg-p1-mega-entity-race > small { display: inline-flex; align-items: center; gap: 3px; max-width: 105px; }
.tg-p1-mega-following { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 3px; background: var(--p1-green-soft); color: var(--p1-green); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.tg-p1-mega-entity > svg { color: #8ca29a; }

.tg-p1-mega-search-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; padding: 14px 16px; }
.tg-p1-mega-search-groups > section { min-width: 0; padding: 0 10px 5px; border: 1px solid var(--p1-line); border-radius: 5px; }
.tg-p1-mega-search-groups > section > header { display: flex; align-items: center; justify-content: space-between; min-height: 37px; border-bottom: 1px solid var(--p1-line); }
.tg-p1-mega-search-groups h3 { margin: 0; color: var(--p1-green); font-size: 10px; text-transform: uppercase; }
.tg-p1-mega-search-groups header > span { color: var(--p1-muted); font-size: 9px; }
.tg-p1-mega-search-groups .tg-p1-mega-entity { grid-template-columns: 28px minmax(0, 1fr) 14px; min-height: 51px; padding-inline: 0; }
.tg-p1-mega-search-groups .tg-p1-mega-entity-icon { width: 27px; height: 27px; }
.tg-p1-mega-search-groups .tg-p1-mega-entity-race,
.tg-p1-mega-search-groups .tg-p1-mega-following { display: none; }

.tg-p1-mega-discovery-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 43px; padding: 8px 16px; border-top: 1px solid var(--p1-line); background: #fbfcfc; }
.tg-p1-mega-discovery-foot > span { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-muted); font-size: 8px; }
.tg-p1-mega-menu .tg-p1-mega-discovery-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-size: 9px; font-weight: 850; text-decoration: none; }

.tg-p1-mega-alerts { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; border-left: 1px solid #ded9cc; background: #f8f6f0; }
.tg-p1-mega-alerts > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-bottom: 1px solid #ded9cc; }
.tg-p1-mega-alerts > header > strong { display: grid; justify-items: center; min-width: 48px; color: var(--p1-green); font-size: 19px; line-height: 1; }
.tg-p1-mega-alerts > header > strong small { margin-top: 4px; color: var(--p1-muted); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tg-p1-mega-alert-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid #ded9cc; }
.tg-p1-mega-alert-counts > span { display: grid; justify-items: center; grid-gap: 3px; gap: 3px; min-width: 0; padding: 8px 3px; border-left: 1px solid #ded9cc; color: var(--p1-muted); font-size: 7px; overflow-wrap: anywhere; text-align: center; }
.tg-p1-mega-alert-counts > span:first-child { border-left: 0; }
.tg-p1-mega-alert-counts strong { color: var(--p1-ink); font-size: 12px; }
.tg-p1-mega-alert-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.tg-p1-mega-menu .tg-p1-mega-alert {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  align-items: start;
  grid-gap: 9px;
  gap: 9px;
  padding: 11px 13px;
  border-bottom: 1px solid #e2ded3;
  border-left: 3px solid transparent;
  color: var(--p1-ink);
  text-decoration: none;
}
.tg-p1-mega-menu .tg-p1-mega-alert:hover { background: #fff; color: var(--p1-green); }
.tg-p1-mega-menu .tg-p1-mega-alert.is-material { border-left-color: var(--p1-amber); }
.tg-p1-mega-alert-icon { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #fff; color: var(--p1-green); }
.tg-p1-mega-alert > span:nth-child(2) { min-width: 0; }
.tg-p1-mega-alert > span:nth-child(2) > strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-mega-alert p { display: -webkit-box; margin: 3px 0; overflow: hidden; color: var(--p1-muted); font-size: 9px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tg-p1-mega-alert > span:nth-child(2) > small { color: #71837c; font-size: 8px; }
.tg-p1-mega-alert-meta { display: grid; justify-items: end; grid-gap: 5px; gap: 5px; }
.tg-p1-mega-alert-meta em { padding: 3px 5px; border-radius: 3px; background: #e8eeec; color: var(--p1-muted); font-size: 7px; font-style: normal; font-weight: 850; text-transform: uppercase; }
.tg-p1-mega-alert.is-material .tg-p1-mega-alert-meta em { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-p1-mega-alert-meta small { color: var(--p1-muted); font-size: 7px; }
.tg-p1-mega-alerts > footer { display: grid; grid-gap: 5px; gap: 5px; padding: 10px 13px; border-top: 1px solid #ded9cc; background: #f2efe7; }
.tg-p1-mega-alerts > footer > span { color: var(--p1-muted); font-size: 8px; }
.tg-p1-mega-menu .tg-p1-mega-alerts > footer a { display: inline-flex; align-items: center; gap: 5px; color: var(--p1-green); font-size: 9px; font-weight: 850; text-decoration: none; }

.tg-p1-mega-empty { display: grid; justify-items: center; align-content: center; min-height: 180px; padding: 24px; color: var(--p1-muted); text-align: center; }
.tg-p1-mega-empty > span { display: grid; width: 38px; height: 38px; margin-bottom: 10px; place-items: center; border-radius: 50%; background: #edf3f1; color: var(--p1-green); }
.tg-p1-mega-empty > span svg { width: 19px; }
.tg-p1-mega-empty > strong { color: var(--p1-ink); font-size: 13px; }
.tg-p1-mega-empty p { max-width: 310px; margin: 5px 0 0; font-size: 10px; line-height: 1.45; }
.tg-p1-mega-menu .tg-p1-mega-empty a { margin-top: 10px; color: var(--p1-green); font-size: 10px; font-weight: 850; text-decoration: none; }
.tg-p1-mega-loading { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 180px; color: var(--p1-muted); font-size: 10px; }
.tg-p1-mega-loading .is-spinning { animation: tg-p1-spin 850ms linear infinite; }
@keyframes tg-p1-spin { to { transform: rotate(360deg); } }

.tg-p1-mega-menu :where(button, a, input, select):focus-visible { outline: 3px solid rgb(244 181 31 / 38%); outline-offset: 2px; }

@media (max-width: 1080px) {
  .tg-p1-mega-trigger { font-size: 12px; }
  .tg-p1-mega-head { grid-template-columns: auto minmax(300px, 1fr) auto; }
  .tg-p1-mega-filters { grid-template-columns: auto repeat(3, minmax(100px, 1fr)) auto; }
  .tg-p1-mega-reset { display: none; }
  .tg-p1-mega-body { grid-template-columns: minmax(0, 1fr) 325px; }
}

@media (max-width: 900px) {
  .tg-p1-mega-wrap { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tg-p1-mega-loading .is-spinning { animation-duration: 1ms; }
}

/* Premium P1 footer */
.tg-footer {
  display: block;
  margin-top: 28px;
  border-top: 4px solid var(--p1-amber);
  background: #032d25;
  color: #fff;
}

.tg-footer-top,
.tg-footer-main,
.tg-footer-resources,
.tg-footer-bottom {
  width: min(var(--p1-content-max), calc(100% - (var(--p1-page-gutter) * 2)));
  margin-inline: auto;
}

.tg-footer-top { padding: 28px 0 24px; }

.tg-footer-racing-story {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
  min-height: 270px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 8px;
  background: #0a4236;
  box-shadow: 0 22px 54px rgb(0 14 11 / 28%);
}

.tg-footer-racing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 50px);
}

.tg-footer-kicker,
.tg-footer-resources-heading > span,
.tg-footer-bookmakers > div:first-child > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #82e1bc;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tg-footer-racing-copy h2 {
  max-width: 540px;
  margin: 13px 0 12px;
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.tg-footer-racing-copy > p {
  max-width: 520px;
  margin: 0;
  color: #c5d8d1;
  font-size: 14px;
  line-height: 1.65;
}

.tg-footer-story-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.tg-footer .tg-footer-story-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
}

.tg-footer .tg-footer-story-actions a:first-child {
  padding: 10px 15px;
  border-radius: 4px;
  background: var(--p1-amber);
  color: #14231f;
}

.tg-footer .tg-footer-story-actions a:first-child:hover { background: #ffc945; }
.tg-footer .tg-footer-story-actions a:last-child { border-bottom: 1px solid rgb(255 255 255 / 35%); }
.tg-footer .tg-footer-story-actions a:last-child:hover { border-color: #82e1bc; color: #82e1bc; }

.tg-footer-racing-visual {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  background-image: linear-gradient(90deg, #0a4236 0%, rgb(10 66 54 / 30%) 28%, rgb(3 17 14 / 12%) 100%), url("/images/auth/horse-racing-auth-bg.png");
  background-position: center 56%;
  background-size: cover;
}

.tg-footer-racing-visual::after {
  position: absolute;
  inset: auto 24px 22px auto;
  width: 72px;
  height: 3px;
  background: var(--p1-amber);
  content: "";
}

.tg-footer-racing-visual > span {
  position: absolute;
  right: 24px;
  bottom: 31px;
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .16em;
  text-shadow: 0 2px 14px #000;
  text-transform: uppercase;
}

.tg-footer-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  grid-gap: clamp(36px, 7vw, 82px);
  gap: clamp(36px, 7vw, 82px);
  padding: 48px 0 42px;
  border-top: 1px solid rgb(255 255 255 / 11%);
}

.tg-footer-brand .tg-brand-logo.is-footer {
  width: min(100%, 196px);
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 5px;
  background: #fff;
}

.tg-footer-brand > p {
  max-width: 255px;
  margin: 0;
  color: #adc5bc;
  font-size: 12px;
  line-height: 1.6;
}

.tg-footer-brand-proof {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 22px;
}

.tg-footer-brand-proof > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #82e1bc;
}

.tg-footer-brand-proof strong { color: #e8f2ee; font-size: 11px; }

.tg-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 34px;
  gap: 34px;
}

.tg-footer-grid section { min-width: 0; }

.tg-footer-grid h3 {
  margin: 0 0 15px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.tg-footer .tg-footer-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 32px;
  border-bottom: 1px solid transparent;
  color: #adc5bc;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.tg-footer-grid a svg {
  flex: 0 0 auto;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.tg-footer .tg-footer-grid a:hover,
.tg-footer .tg-footer-grid a:focus-visible { border-color: rgb(130 225 188 / 32%); color: #fff; }
.tg-footer-grid a:hover svg,
.tg-footer-grid a:focus-visible svg { opacity: 1; transform: translateX(0); }

.tg-footer-resources {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  align-items: center;
  grid-gap: 38px;
  gap: 38px;
  padding: 28px 0;
  border-top: 1px solid rgb(255 255 255 / 11%);
}

.tg-footer-resources-heading > span { color: #82e1bc; }
.tg-footer-resources-heading h2,
.tg-footer-bookmakers h2 {
  margin: 7px 0 5px;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.tg-footer-resources-heading p,
.tg-footer-bookmakers p {
  margin: 0;
  color: #adc5bc;
  font-size: 11px;
  line-height: 1.55;
}

.tg-footer-support-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.tg-footer .tg-footer-support-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 14px 15px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 5px;
  background: rgb(255 255 255 / 5%);
  color: #fff;
  text-decoration: none;
}

.tg-footer-support-links a:hover {
  border-color: rgb(130 225 188 / 58%);
  background: rgb(255 255 255 / 9%);
  transform: translateY(-2px);
}

.tg-footer-support-links a > span { display: grid; grid-gap: 4px; gap: 4px; }
.tg-footer-support-links strong { color: #fff; font-size: 13px; }
.tg-footer-support-links small { color: #9db7ae; font-size: 10px; }
.tg-footer-support-links svg { flex: 0 0 auto; color: #82e1bc; }

.tg-footer-bookmakers {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  align-items: center;
  grid-gap: 38px;
  gap: 38px;
  margin-bottom: 30px;
  padding: 24px;
  border-radius: 7px;
  background: #eef3f1;
}

.tg-footer-bookmakers > div:first-child > span { color: var(--p1-green-bright); }
.tg-footer-bookmakers h2 { color: var(--p1-ink); }
.tg-footer-bookmakers p { color: var(--p1-muted); }

.tg-footer-bookmaker-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-gap: 8px;
  gap: 8px;
}

.tg-footer .tg-footer-bookmaker-logos > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 6px;
  border: 1px solid #d7e1de;
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
}

.tg-footer .tg-footer-bookmaker-logos > a:hover {
  border-color: #8eaaa0;
  box-shadow: 0 7px 18px rgb(10 47 38 / 10%);
  transform: translateY(-2px);
}

.tg-footer-bookmaker-logos .tg-bookmaker-logo {
  width: 100%;
  height: auto;
  aspect-ratio: 220 / 56;
  border-radius: 3px;
}

.tg-footer-bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  grid-gap: 18px;
  gap: 18px;
  padding: 22px 0 28px;
  border-top: 1px solid rgb(255 255 255 / 11%);
}

.tg-footer-age {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid #ff7770;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.tg-footer-bottom > p {
  max-width: 570px;
  margin: 0;
  color: #9fb8af;
  font-size: 10px;
  line-height: 1.55;
}

.tg-footer-bottom > p strong { color: #fff; }
.tg-footer-bottom nav { display: flex; align-items: center; gap: 14px; }

.tg-footer .tg-footer-bottom a {
  color: #c3d6cf;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
}

.tg-footer .tg-footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.tg-footer-bottom > small { color: #79988d; font-size: 9px; white-space: nowrap; }

@media (max-width: 960px) {
  .tg-footer-racing-story { grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr); }
  .tg-footer-main { grid-template-columns: 1fr; gap: 34px; }
  .tg-footer-brand { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-gap: 8px 28px; gap: 8px 28px; align-items: start; }
  .tg-footer-brand .tg-brand-logo.is-footer { grid-row: 1 / 3; }
  .tg-footer-brand > p { max-width: 520px; }
  .tg-footer-brand-proof { grid-template-columns: repeat(2, minmax(0, max-content)); margin-top: 8px; }
  .tg-footer-resources,
  .tg-footer-bookmakers { grid-template-columns: 1fr; gap: 18px; }
  .tg-footer-bookmaker-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tg-footer-bottom { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tg-footer-bottom > small { grid-column: 2; }
}

@media (max-width: 720px) {
  .tg-footer-racing-story { grid-template-columns: 1fr; }
  .tg-footer-racing-visual { min-height: 190px; background-position: center 62%; }
  .tg-footer-racing-copy { padding: 30px 24px; }
  .tg-footer-racing-copy h2 { font-size: 34px; }
  .tg-footer-main { padding-block: 36px; }
  .tg-footer-brand { display: block; }
  .tg-footer-brand > p { max-width: 420px; }
  .tg-footer-brand-proof { grid-template-columns: 1fr; }
  .tg-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
  .tg-footer-support-links { grid-template-columns: 1fr; }
  .tg-footer-bottom { grid-template-columns: auto minmax(0, 1fr); }
  .tg-footer-bottom nav { grid-column: 1 / -1; }
  .tg-footer-bottom > small { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .tg-footer-top,
  .tg-footer-main,
  .tg-footer-resources,
  .tg-footer-bookmakers,
  .tg-footer-bottom { width: min(100% - 20px, 1180px); }
  .tg-footer-top { padding-top: 18px; }
  .tg-footer-racing-story { min-height: 0; }
  .tg-footer-racing-copy { padding: 26px 20px; }
  .tg-footer-racing-copy h2 { font-size: 30px; }
  .tg-footer-story-actions { align-items: stretch; flex-direction: column; gap: 4px; }
  .tg-footer .tg-footer-story-actions a:last-child { align-self: flex-start; }
  .tg-footer-racing-visual { min-height: 165px; }
  .tg-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .tg-footer-bookmakers { padding: 18px; }
  .tg-footer-bookmaker-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-footer-bottom nav { flex-wrap: wrap; }
}

/* Model Centre and subscription migration to the P1 V2 visual contract. */
.tg-p1-model-section { display: grid; grid-gap: 18px; gap: 18px; }
.tg-p1-model-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--p1-line);
}
.tg-p1-model-metrics > div { min-width: 0; padding: 18px; border-left: 1px solid var(--p1-line); }
.tg-p1-model-metrics > div:first-child { padding-left: 0; border-left: 0; }
.tg-p1-model-eyebrow { color: var(--p1-green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-p1-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--p1-line); border-radius: 5px; }
.tg-p1-table-wrap .tg-p1-data-table { min-width: 760px; }
.tg-p1-gate-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; overflow: hidden; border-radius: 5px; background: var(--p1-line); }
.tg-p1-gate { min-width: 0; padding: 18px; background: #fff; }
.tg-p1-gate h3 { margin: 0 0 7px; font-size: 16px; }
.tg-p1-gate p { margin: 0; color: var(--p1-muted); font-size: 12px; line-height: 1.5; }
.tg-p1-model-center .tg-experiment-progress,
.tg-p1-model-center .tg-final-evidence { border-radius: 5px; background: var(--p1-green-dark); box-shadow: none; }
.tg-p1-model-center .tg-experiment-progressbar i,
.tg-p1-model-center .tg-experiment-model-progress i { background: var(--p1-amber); }
.tg-p1-model-center .tg-experiment-models,
.tg-p1-model-center .tg-evidence-models,
.tg-p1-model-center .tg-latest-audit-models { gap: 1px; overflow: hidden; border-radius: 5px; background: var(--p1-line); }
.tg-p1-model-center :is(.tg-experiment-model, .tg-evidence-model, .tg-latest-audit-model) {
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}
.tg-p1-model-center :is(.tg-experiment-model, .tg-evidence-model, .tg-latest-audit-model).is-production { background: var(--p1-green-soft); box-shadow: inset 0 3px var(--p1-green); }
.tg-p1-model-center :is(.tg-experiment-model, .tg-evidence-model, .tg-latest-audit-model).is-candidate { box-shadow: inset 0 3px var(--p1-green-bright); }
.tg-p1-model-center .tg-latest-audit-model.is-benchmark { box-shadow: inset 0 3px var(--p1-amber); }
.tg-p1-model-center .tg-evidence-method { border-color: var(--p1-amber); color: var(--p1-muted); }
.tg-p1-model-center :is(.tg-evidence-heading, .tg-experiment-model, .tg-evidence-model, .tg-latest-audit-model) p { color: var(--p1-muted); }

.tg-p1-subscription-billing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(20 48 40 / 5%);
}
.tg-p1-subscription-billing > div:first-child { display: flex; align-items: center; gap: 11px; color: var(--p1-green); }
.tg-p1-subscription-billing > div:first-child span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-p1-subscription-billing small { color: var(--p1-muted); font-size: 10px; }
.tg-p1-subscription-toggle { display: inline-flex; padding: 3px; border-radius: 4px; background: var(--p1-gray-soft); }
.tg-p1-subscription-toggle button { min-height: 38px; padding: 8px 14px; border: 0; background: transparent; color: var(--p1-muted); font: inherit; font-size: 12px; font-weight: 800; }
.tg-p1-subscription-toggle button.is-active { background: #fff; color: var(--p1-green); box-shadow: 0 2px 8px rgb(20 48 40 / 9%); }
.tg-p1-subscription-toggle button span { margin-left: 5px; color: var(--p1-green-bright); font-size: 9px; }
.tg-p1-subscription-plans { display: grid; grid-gap: 16px; gap: 16px; }
.tg-p1-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; }
.tg-p1-plan { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; padding: 22px; border-top: 3px solid #c7d6d1; border-radius: 5px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-plan.is-featured { border-top-color: var(--p1-amber); }
.tg-p1-plan > header { position: relative; }
.tg-p1-plan > header > span { color: var(--p1-green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-p1-plan > header > strong { position: absolute; top: -8px; right: 0; display: inline-flex; align-items: center; gap: 5px; color: var(--p1-amber-dark); font-size: 10px; text-transform: uppercase; }
.tg-p1-plan h2 { margin: 7px 0; font-size: 28px; }
.tg-p1-plan p { min-height: 72px; margin: 0; color: var(--p1-muted); font-size: 12px; line-height: 1.55; }
.tg-p1-plan-price { display: grid; grid-template-columns: auto 1fr; align-items: baseline; grid-gap: 4px; gap: 4px; margin: 19px 0; padding-block: 17px; border-block: 1px solid var(--p1-line); }
.tg-p1-plan-price strong { color: var(--p1-green); font-size: 31px; line-height: 1; }
.tg-p1-plan-price > span { color: var(--p1-muted); font-size: 11px; }
.tg-p1-plan-price small { grid-column: 1 / -1; margin-top: 5px; color: var(--p1-green-bright); font-size: 10px; }
.tg-p1-plan ul { display: grid; align-content: start; grid-gap: 10px; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.tg-p1-plan li { display: flex; align-items: flex-start; gap: 8px; color: #40534d; font-size: 12px; line-height: 1.4; }
.tg-p1-plan li svg { flex: 0 0 auto; color: var(--p1-green-bright); }
.tg-p1-plan-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--p1-green); border-radius: 4px; color: var(--p1-green); font-weight: 850; text-decoration: none; }
.tg-p1-plan.is-featured .tg-p1-plan-action { border-color: var(--p1-amber); background: var(--p1-amber); color: #17241f; }
.tg-p1-plan-compare { display: grid; grid-gap: 16px; gap: 16px; }
.tg-p1-plan-table { overflow: hidden; border: 1px solid var(--p1-line); border-radius: 5px; }
.tg-p1-plan-table-head,
.tg-p1-plan-table-row { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); }
.tg-p1-plan-table-head { background: #eef4f1; color: var(--p1-muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-p1-plan-table-head span,
.tg-p1-plan-table-row > * { min-width: 0; padding: 12px 14px; border-left: 1px solid var(--p1-line); }
.tg-p1-plan-table-head span:first-child,
.tg-p1-plan-table-row > *:first-child { border-left: 0; }
.tg-p1-plan-table-row { border-top: 1px solid var(--p1-line); font-size: 12px; }
.tg-p1-plan-table-row strong { color: var(--p1-ink); }
.tg-p1-plan-table-row span { color: var(--p1-muted); }
.tg-p1-subscription-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; overflow: hidden; border-radius: 5px; background: var(--p1-line); }
.tg-p1-subscription-trust > div { display: flex; align-items: flex-start; gap: 11px; padding: 17px; background: #fff; }
.tg-p1-subscription-trust svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-p1-subscription-trust span { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-subscription-trust small { color: var(--p1-muted); line-height: 1.4; }

@media (max-width: 900px) {
  .tg-p1-model-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-p1-model-metrics > div:nth-child(3) { border-left: 0; }
  .tg-p1-plan-grid { grid-template-columns: 1fr; }
  .tg-p1-plan { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .tg-p1-plan > header, .tg-p1-plan-price { grid-column: 1; }
  .tg-p1-plan ul, .tg-p1-plan-action { grid-column: 2; }
  .tg-p1-plan ul { grid-row: 1 / 3; }
}

@media (max-width: 700px) {
  .tg-p1-model-metrics { grid-template-columns: 1fr; border-top: 0; }
  .tg-p1-model-metrics > div { padding: 13px 0; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-p1-model-metrics > div:first-child { padding-top: 13px; }
  .tg-p1-gate-grid { grid-template-columns: 1fr; }
  .tg-p1-subscription-billing { align-items: stretch; flex-direction: column; }
  .tg-p1-subscription-toggle { display: grid; grid-template-columns: 1fr 1fr; }
  .tg-p1-plan { display: grid; grid-template-columns: 1fr; padding: 18px; }
  .tg-p1-plan > header, .tg-p1-plan-price, .tg-p1-plan ul, .tg-p1-plan-action { grid-column: 1; grid-row: auto; }
  .tg-p1-plan p { min-height: 0; }
  .tg-p1-plan-table-head { display: none; }
  .tg-p1-plan-table-row { grid-template-columns: repeat(3, 1fr); padding: 13px; }
  .tg-p1-plan-table-row strong { grid-column: 1 / -1; padding: 0 0 10px; border-left: 0; }
  .tg-p1-plan-table-row span { display: grid; grid-gap: 4px; gap: 4px; padding: 8px; border-left: 1px solid var(--p1-line); }
  .tg-p1-plan-table-row span:first-of-type { border-left: 0; }
  .tg-p1-plan-table-row span::before { color: var(--p1-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; content: attr(data-plan); }
  .tg-p1-subscription-trust { grid-template-columns: 1fr; }
}

body { background: var(--p1-page); color: var(--p1-ink); }

.tg-main,
.tg-main:has(.tg-p1-page) {
  width: min(var(--p1-content-max), calc(100% - (var(--p1-page-gutter) * 2)));
  margin-inline: auto;
  padding: 24px 0 48px;
}

.tg-p1-header-inner,
.tg-footer-top,
.tg-footer-main,
.tg-footer-bottom {
  width: min(var(--p1-content-max), calc(100% - (var(--p1-page-gutter) * 2)));
}

.tg-p1-page { display: grid; grid-gap: 20px; gap: 20px; min-width: 0; }
.tg-p1-page :where(h1, h2, h3, p) { letter-spacing: 0; }
.tg-p1-page h1 { font-size: 42px; }

.tg-p1-page-title { padding: 4px 0 8px; }
.tg-p1-page-title h1 { margin: 4px 0 5px; }
.tg-p1-page-title > div:first-child > span,
.tg-p1-section-heading > div > span { color: var(--p1-green); }

.tg-p1-surface {
  padding: 20px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 28px rgb(20 48 40 / 5%);
}

.tg-p1-section-heading { margin-bottom: 16px; }
.tg-p1-section-heading h2 { color: var(--p1-ink); font-size: 21px; }

.tg-p1-primary-action {
  min-height: 44px;
  border-radius: 4px;
  background: var(--p1-amber);
  color: #17241f;
}
.tg-p1-primary-action:hover { background: #ffc438; }

.tg-p1-metric { min-width: 0; }
.tg-p1-metric > span { color: var(--p1-muted); font-size: 11px; }
.tg-p1-metric > strong { display: block; margin-top: 4px; font-size: 24px; }
.tg-p1-metric > small { display: block; margin-top: 3px; color: var(--p1-muted); }

.tg-p1-notice { border: 0; border-left: 2px solid #27798a; border-radius: 0; }
.tg-p1-empty { border: 0; border-radius: 5px; background: #f7faf9; }

/* Evidence signals are labels, not call-to-action pills. */
.tg-decision-signal,
.tg-mvp-signal,
.tg-p1-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--p1-muted);
  font-size: 11px;
  font-weight: 800;
}
.is-strong :where(.tg-decision-signal, .tg-mvp-signal, .tg-p1-signal),
:where(.tg-decision-signal, .tg-mvp-signal, .tg-p1-signal).is-strong { color: var(--p1-green-bright); }
.is-consider :where(.tg-decision-signal, .tg-mvp-signal, .tg-p1-signal),
:where(.tg-decision-signal, .tg-mvp-signal, .tg-p1-signal).is-consider { color: var(--p1-amber-dark); }
.is-pass :where(.tg-decision-signal, .tg-mvp-signal, .tg-p1-signal),
:where(.tg-decision-signal, .tg-mvp-signal, .tg-p1-signal).is-pass { color: var(--p1-red); }

/* P1 home */
.tg-p1-intelligence {
  display: grid;
  grid-template-columns: 126px repeat(4, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--p1-line);
  border-radius: 6px;
  background: #fff;
}
.tg-p1-intelligence > h1 {
  align-self: center;
  margin: 0;
  padding: 20px;
  color: var(--p1-green);
  font-size: 12px;
  line-height: 1.45;
  text-transform: uppercase;
}
.tg-p1-snapshot-metric {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  min-height: 88px;
  padding: 16px 20px;
  border-left: 1px solid var(--p1-line);
}
.tg-p1-snapshot-metric svg { grid-row: 1 / 3; align-self: center; color: var(--p1-green); }
.tg-p1-snapshot-metric strong { font-size: 22px; }
.tg-p1-snapshot-metric span { color: var(--p1-muted); font-size: 11px; }
.tg-p1-snapshot-metric.is-score { background: var(--p1-green); color: #fff; }
.tg-p1-snapshot-metric.is-score svg,
.tg-p1-snapshot-metric.is-score span { color: #dff5ed; }

.tg-p1-home-primary {
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr);
  grid-gap: 20px;
  gap: 20px;
  align-items: flex-start;
}
.tg-p1-top-opportunity { min-height: 100%; }
.tg-p1-top-opportunity > header,
.tg-p1-home-racing-head,
.tg-p1-opportunity-strip > header,
.tg-p1-proof-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.tg-p1-top-opportunity > header > span,
.tg-p1-home-racing-head > div:first-child > span,
.tg-p1-opportunity-strip > header > span,
.tg-p1-proof-card > header > span {
  color: var(--p1-green);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.tg-p1-top-opportunity h2 { margin: 13px 0 5px; font-size: 27px; }
.tg-p1-top-opportunity > p { margin: 0; color: var(--p1-muted); }
.tg-p1-top-runner { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tg-p1-top-runner > div { display: grid; grid-gap: 3px; gap: 3px; }
.tg-p1-top-runner strong { font-size: 20px; }
.tg-p1-top-runner span { color: var(--p1-muted); font-size: 12px; }
.tg-p1-opportunity-facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 20px 0;
  border-block: 1px solid var(--p1-line);
}
.tg-p1-opportunity-facts > div { padding: 14px 9px; border-left: 1px solid var(--p1-line); text-align: center; }
.tg-p1-opportunity-facts > div:first-child { border-left: 0; }
.tg-p1-opportunity-facts strong { display: block; font-size: 19px; }
.tg-p1-opportunity-facts span { display: block; margin-top: 3px; color: var(--p1-muted); font-size: 9px; text-transform: uppercase; }
.tg-p1-opportunity-reasons { display: grid; grid-gap: 9px; gap: 9px; padding: 0; list-style: none; }
.tg-p1-opportunity-reasons li { display: flex; gap: 8px; color: #42534d; font-size: 12px; }
.tg-p1-opportunity-reasons svg { flex: 0 0 auto; color: var(--p1-green-bright); }
.tg-p1-opportunity-actions { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; margin-top: 18px; }
.tg-p1-opportunity-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #b9ccc6; border-radius: 4px; color: var(--p1-green); font-weight: 800; text-decoration: none; }
.tg-p1-opportunity-actions a:first-child { border-color: var(--p1-amber); background: var(--p1-amber); color: #17241f; }

.tg-p1-home-racing { overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-home-racing-head { min-height: 62px; padding: 12px 16px; border-bottom: 1px solid var(--p1-line); }
.tg-p1-home-racing-head > div:first-child { display: grid; grid-gap: 3px; gap: 3px; }
.tg-p1-home-racing-head a { color: var(--p1-green); font-size: 11px; font-weight: 800; text-decoration: none; }
.tg-p1-day-tabs { display: inline-flex; gap: 3px; padding: 3px; border-radius: 5px; background: var(--p1-gray-soft); }
.tg-p1-day-tabs button { min-height: 32px; padding: 7px 12px; border: 0; border-radius: 3px; background: transparent; color: var(--p1-muted); font: inherit; font-size: 10px; font-weight: 800; }
.tg-p1-day-tabs button.is-active { background: #fff; color: var(--p1-green); box-shadow: 0 1px 5px rgb(15 52 42 / 10%); }
.tg-p1-racing-state { margin: 0; padding: 11px 16px; color: var(--p1-muted); font-size: 12px; }
.tg-p1-racing-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); min-height: 84px; border-top: 1px solid var(--p1-line); }
.tg-p1-racing-row:first-child { border-top: 0; }
.tg-p1-racing-course { display: grid; align-content: center; grid-gap: 4px; gap: 4px; padding: 14px 16px; }
.tg-p1-racing-course span { color: var(--p1-muted); font-size: 11px; }
.tg-p1-racing-times { display: grid; grid-auto-columns: minmax(82px, 1fr); grid-auto-flow: column; overflow-x: auto; }
.tg-p1-racing-times a { display: grid; align-content: center; justify-items: center; grid-gap: 3px; gap: 3px; min-width: 82px; padding: 10px 7px; border-left: 1px solid var(--p1-line); color: var(--p1-ink); text-align: center; text-decoration: none; }
.tg-p1-racing-times a small { color: var(--p1-muted); font-size: 9px; font-weight: 800; }
.tg-p1-racing-times a strong { font-size: 16px; }
.tg-p1-racing-times a span { max-width: 90px; overflow: hidden; color: var(--p1-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-racing-times a.is-strong { background: var(--p1-green-soft); }
.tg-p1-racing-times a.is-strong small,
.tg-p1-racing-times a.is-strong span { color: var(--p1-green); }
.tg-p1-racing-times a.is-consider small,
.tg-p1-racing-times a.is-consider span { color: var(--p1-amber-dark); }
.tg-p1-racing-times a.is-pass small { color: var(--p1-red); }
.tg-p1-racing-times a.is-result { background: #fafbfb; }
.tg-p1-racing-times a.is-locked { opacity: .65; }

.tg-p1-opportunity-strip,
.tg-p1-proof-card { padding: 18px 20px; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-opportunity-strip {
  display: grid;
  grid-template-columns: 140px repeat(5, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
}
.tg-p1-opportunity-strip-title {
  align-self: center;
  justify-content: flex-start;
  padding-right: 14px;
}
.tg-p1-opportunity-strip-title > span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-p1-opportunity-strip-title small { color: var(--p1-muted); font-size: 10px; }
.tg-p1-opportunity-strip > header a,
.tg-p1-proof-card > header a { color: var(--p1-green); font-size: 11px; font-weight: 800; text-decoration: none; }
.tg-p1-opportunity-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 14px; }
.tg-p1-opportunity-list a { display: grid; grid-gap: 5px; gap: 5px; min-width: 0; padding: 5px 16px; border-left: 1px solid var(--p1-line); color: var(--p1-ink); text-decoration: none; }
.tg-p1-opportunity-list a:first-child { border-left: 0; padding-left: 0; }
.tg-p1-opportunity-list small { color: var(--p1-muted); }
.tg-p1-opportunity-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-opportunity-list span { color: var(--p1-green); font-size: 11px; font-weight: 800; }
.tg-p1-home-commercial { display: grid; grid-template-columns: minmax(0, 1fr) 270px; grid-gap: 20px; gap: 20px; }
.tg-p1-home-offers { min-width: 0; }
.tg-p1-offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; }
.tg-p1-offer { overflow: hidden; border-radius: 5px; background: #fff; box-shadow: 0 6px 22px rgb(20 48 40 / 5%); }
.tg-p1-offer > header { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 9px 13px; background: var(--p1-green); color: #fff; }
.tg-p1-offer > div { display: grid; grid-gap: 12px; gap: 12px; padding: 15px; }
.tg-p1-offer h3 { margin: 0; font-size: 17px; }
.tg-p1-offer p { margin: 0; color: var(--p1-muted); font-size: 11px; line-height: 1.45; }
.tg-p1-offer a { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border-radius: 3px; background: var(--p1-green); color: #fff; font-size: 12px; font-weight: 850; text-decoration: none; }
.tg-p1-proof-card { display: grid; align-content: start; }
.tg-p1-proof-score { margin-top: 24px; color: var(--p1-green); font-size: 35px; font-weight: 900; }
.tg-p1-proof-card p { color: var(--p1-muted); }

/* Shared P1 data surfaces */
.tg-p1-data-table { width: 100%; border-collapse: collapse; }
.tg-p1-data-table th { padding: 11px 12px; background: #eef4f1; color: var(--p1-muted); font-size: 10px; text-align: left; text-transform: uppercase; }
.tg-p1-data-table td { padding: 13px 12px; border-top: 1px solid var(--p1-line); vertical-align: top; }
.tg-p1-data-table tbody tr:hover { background: #fafcfb; }

/* Neutralise legacy MVP chrome when a screen is progressively migrated. */
.tg-p1-page .tg-mvp-section,
.tg-p1-page .tg-mvp-card,
.tg-p1-page .tg-mvp-page-head {
  border: 0;
  border-radius: 6px;
  box-shadow: 0 8px 28px rgb(20 48 40 / 5%);
}

@media (max-width: 980px) {
  .tg-p1-intelligence { grid-template-columns: repeat(4, 1fr); }
  .tg-p1-intelligence > .tg-p1-intelligence-label { grid-column: 1 / -1; padding: 15px 18px 6px; }
  .tg-p1-snapshot-metric { border-top: 1px solid var(--p1-line); }
  .tg-p1-snapshot-metric:first-of-type { border-left: 0; }
  .tg-p1-home-primary { grid-template-columns: 1fr; }
  .tg-p1-home-commercial { grid-template-columns: 1fr; }
  .tg-p1-lightning { grid-template-columns: 1fr 1.25fr; }
  .tg-p1-lightning-pick { grid-column: 1 / -1; margin-top: 22px; padding: 20px 0 0; border-top: 1px solid rgb(255 255 255 / 14%); }
  .tg-p1-home .tg-p1-proof-card { grid-template-columns: 1fr auto; }
  .tg-p1-home .tg-p1-proof-card-metrics { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 700px) {
  .tg-p1-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .tg-main,
  .tg-main:has(.tg-p1-page) { width: 100%; padding: 14px 14px 92px; }
  .tg-p1-header-inner { width: 100%; padding-inline: 14px; }
  .tg-p1-page { gap: 14px; }
  .tg-p1-surface { padding: 16px; box-shadow: none; }
  .tg-p1-intelligence { grid-template-columns: repeat(2, 1fr); border: 0; box-shadow: 0 5px 18px rgb(20 48 40 / 5%); }
  .tg-p1-intelligence > .tg-p1-intelligence-label { grid-column: 1 / -1; }
  .tg-p1-snapshot-metric { min-height: 78px; padding: 13px; }
  .tg-p1-snapshot-metric:nth-of-type(odd) { border-left: 0; }
  .tg-p1-home-primary { display: contents; }
  .tg-p1-top-opportunity { order: 1; min-width: 0; overflow: hidden; }
  .tg-p1-home-racing { order: 2; box-shadow: none; }
  .tg-p1-opportunity-strip { order: 3; box-shadow: none; }
  .tg-p1-home-commercial { order: 4; }
  .tg-p1-top-opportunity-head { align-items: flex-start; flex-direction: column; }
  .tg-p1-opportunity-facts { width: 100%; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-p1-opportunity-facts > div { min-width: 0; border-top: 1px solid var(--p1-line); }
  .tg-p1-opportunity-facts > div:nth-child(odd) { border-left: 0; }
  .tg-p1-opportunity-facts > div:nth-child(-n + 2) { border-top: 0; }
  .tg-p1-opportunity-facts > div:last-child { grid-column: 1 / -1; }
  .tg-p1-opportunity-actions { grid-template-columns: 1fr; }
  .tg-p1-home-racing-head { align-items: flex-start; flex-direction: column; }
  .tg-p1-day-tabs { width: 100%; }
  .tg-p1-day-tabs button { flex: 1 1; }
  .tg-p1-racing-row { grid-template-columns: 105px minmax(0, 1fr); }
  .tg-p1-racing-course { padding: 12px 10px; }
  .tg-p1-racing-times { scroll-snap-type: x proximity; }
  .tg-p1-racing-times a { scroll-snap-align: start; }
  .tg-p1-opportunity-list { grid-auto-columns: minmax(150px, 75vw); grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; }
  .tg-p1-offer-grid { grid-auto-columns: minmax(250px, 82vw); grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; }
  .tg-p1-page-title { display: grid; grid-gap: 12px; gap: 12px; }
  .tg-p1-lightning { grid-template-columns: 1fr; padding: 20px 17px; }
  .tg-p1-lightning-intro { padding: 0 0 18px; }
  .tg-p1-lightning-list { padding: 17px 0; border-block: 1px solid rgb(255 255 255 / 14%); border-inline: 0; }
  .tg-p1-lightning-list li { grid-template-columns: 28px minmax(0, 1fr) 34px; }
  .tg-p1-lightning-list em { grid-column: 2 / -1; text-align: left; }
  .tg-p1-lightning-pick { grid-column: auto; margin-top: 0; padding-top: 18px; }
  .tg-p1-home .tg-p1-proof-card { grid-template-columns: 1fr; }
  .tg-p1-home .tg-p1-proof-card-metrics { grid-column: auto; grid-row: auto; grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tg-p1-page *, .tg-p1-page *::before, .tg-p1-page *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* P1 journey: approved desktop system, constrained to the TrackGenius canvas. */
.tg-p1-page :where(button, input, select, textarea) { font: inherit; letter-spacing: 0; }
.tg-p1-page :where(button, a) { -webkit-tap-highlight-color: transparent; }
.tg-p1-page :where(button, select, input) { border-radius: 4px; }
.tg-p1-page :where(button, a):focus-visible { outline: 3px solid rgb(244 181 31 / 32%); outline-offset: 2px; }
.tg-p1-page .is-positive { color: var(--p1-green-bright); }
.tg-p1-page .is-negative { color: var(--p1-red); }
.tg-p1-back-link,
.tg-p1-page-title a,
.tg-p1-section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--p1-green);
  font-weight: 800;
  text-decoration: none;
}
.tg-p1-page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.tg-p1-page-title > div:first-child { min-width: 0; }
.tg-p1-page-title h1 { color: var(--p1-ink); }
.tg-p1-page-title p { max-width: 720px; margin: 0; color: var(--p1-muted); line-height: 1.55; }
.tg-p1-page-title > div:first-child > div { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 13px; color: var(--p1-muted); font-size: 12px; }
.tg-p1-page-title > div:first-child > div span { display: inline-flex; align-items: center; gap: 6px; }
.tg-p1-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tg-p1-section-heading h2 { margin: 3px 0 0; }
.tg-p1-section-heading p { max-width: 700px; margin: 4px 0 0; color: var(--p1-muted); line-height: 1.45; }
.tg-p1-notice { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; background: #edf6f8; color: #28535c; }
.tg-p1-notice.is-warning { border-color: var(--p1-amber); background: var(--p1-amber-soft); color: #70500d; }
.tg-p1-notice.is-danger { border-color: var(--p1-red); background: var(--p1-red-soft); color: #8c2d28; }
.tg-p1-notice.is-success { border-color: var(--p1-green-bright); background: var(--p1-green-soft); color: var(--p1-green); }
.tg-p1-notice strong { display: block; }
.tg-p1-empty { display: grid; justify-items: start; grid-gap: 7px; gap: 7px; padding: 26px; }
.tg-p1-empty strong { font-size: 18px; }
.tg-p1-empty p { margin: 0; color: var(--p1-muted); }
.tg-p1-empty a { color: var(--p1-green); font-weight: 800; }

/* Home selector corrections. */
.tg-p1-intelligence-label {
  align-self: center;
  margin: 0;
  padding: 20px;
  color: var(--p1-green);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  text-transform: uppercase;
}
.tg-p1-snapshot-metric.is-featured { background: var(--p1-green); color: #fff; }
.tg-p1-snapshot-metric.is-featured svg,
.tg-p1-snapshot-metric.is-featured span { color: #dff5ed; }
.tg-p1-top-opportunity-head,
.tg-p1-opportunity-strip-title,
.tg-p1-proof-card > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tg-p1-top-opportunity-head > span,
.tg-p1-opportunity-strip-title > span,
.tg-p1-proof-card > header > span { color: var(--p1-green); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.tg-p1-top-opportunity-runner { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.tg-p1-top-opportunity-runner > div { display: grid; grid-gap: 3px; gap: 3px; }
.tg-p1-top-opportunity-runner strong { font-size: 20px; }
.tg-p1-top-opportunity-runner span { color: var(--p1-muted); font-size: 12px; }
.tg-p1-opportunity-reasons > strong { display: block; margin-bottom: 9px; color: var(--p1-green); font-size: 11px; text-transform: uppercase; }
.tg-p1-opportunity-reasons ul { display: grid; grid-gap: 8px; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tg-p1-top-opportunity-actions { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px; gap: 10px; margin-top: 18px; }
.tg-p1-top-opportunity-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #b9ccc6; border-radius: 4px; color: var(--p1-green); font-weight: 800; text-decoration: none; }
.tg-p1-top-opportunity-actions a:first-child { border-color: var(--p1-amber); background: var(--p1-amber); color: #17241f; }
.tg-p1-opportunity-strip-title a { color: var(--p1-green); font-size: 11px; font-weight: 800; text-decoration: none; }
.tg-p1-opportunity-strip > a { display: grid; grid-gap: 4px; gap: 4px; padding: 10px 14px; border-left: 1px solid var(--p1-line); color: var(--p1-ink); text-decoration: none; }
.tg-p1-opportunity-strip > a:first-of-type { border-left: 0; }
.tg-p1-opportunity-strip > a > span { color: var(--p1-green); font-size: 11px; font-weight: 850; }
.tg-p1-opportunity-strip > a > div { display: grid; grid-gap: 3px; gap: 3px; min-width: 0; }
.tg-p1-opportunity-strip > a small { overflow: hidden; color: var(--p1-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-opportunity-strip > a strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-opportunity-strip > a em { font-size: 10px; font-style: normal; font-weight: 800; }
.tg-p1-opportunity-strip > a em.is-strong { color: var(--p1-green-bright); }
.tg-p1-opportunity-strip > a em.is-consider { color: var(--p1-amber-dark); }
.tg-p1-opportunity-strip > a em.is-pass { color: var(--p1-red); }
.tg-p1-proof-card-metrics { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 14px; gap: 14px; margin-top: 18px; }
.tg-p1-proof-card-metrics small { display: block; color: var(--p1-muted); font-size: 11px; }
.tg-p1-proof-card-metrics strong { display: block; margin-top: 4px; color: var(--p1-green); font-size: 24px; }

/* Approved Home hierarchy from P1-UX-Concepts-v2. */
.tg-p1-home {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.tg-p1-home > * {
  min-width: 0;
}
.tg-p1-home .tg-p1-intelligence,
.tg-p1-home .tg-p1-lightning,
.tg-p1-home-offers,
.tg-p1-home .tg-p1-proof-card {
  grid-column: 1;
}
.tg-p1-home .tg-p1-top-opportunity {
  grid-column: 1;
}
.tg-p1-home .tg-p1-home-racing {
  grid-column: 1;
}
.tg-p1-home .tg-p1-top-opportunity,
.tg-p1-home-offers,
.tg-p1-home .tg-p1-proof-card {
  padding: 22px;
  border: 0;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(20 48 40 / 6%);
}
.tg-p1-home .tg-p1-top-opportunity {
  padding: 22px;
}
.tg-p1-top-opportunity-head > div:first-child > span,
.tg-p1-home-offers .tg-p1-section-heading > div > span {
  color: var(--p1-green);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}
.tg-p1-top-opportunity-head h2 {
  margin: 6px 0 3px;
  font-size: 26px;
  line-height: 1.1;
}
.tg-p1-top-opportunity-head p {
  margin: 0;
  color: var(--p1-muted);
}
.tg-p1-opportunity-race { display: grid; grid-gap: 3px; gap: 3px; margin-top: 10px !important; }
.tg-p1-opportunity-race strong { color: var(--p1-ink); font-size: 17px; }
.tg-p1-opportunity-race small { color: var(--p1-muted); font-size: 11px; }
.tg-p1-top-opportunity-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); grid-gap: 0; gap: 0; margin: 20px -22px -22px; border-top: 1px solid var(--p1-line); }
.tg-p1-opportunity-statistics { min-width: 0; padding: 20px 22px 22px; }
.tg-p1-opportunity-rationale { display: grid; grid-template-rows: auto 1fr auto; grid-gap: 18px; gap: 18px; min-width: 0; padding: 22px; border-left: 1px solid var(--p1-line); background: #f8fbfa; }
.tg-p1-opportunity-rationale > div:first-child { display: grid; grid-gap: 5px; gap: 5px; }
.tg-p1-opportunity-rationale > div:first-child > span,
.tg-p1-statistics-heading > span { color: var(--p1-green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-p1-opportunity-rationale h3 { margin: 0; font-size: 21px; line-height: 1.16; }
.tg-p1-opportunity-rationale p { margin: 0; color: var(--p1-muted); font-size: 11px; line-height: 1.5; }
.tg-p1-statistics-heading { display: grid; grid-gap: 3px; gap: 3px; margin-top: 18px; }
.tg-p1-statistics-heading > strong { font-size: 14px; }
.tg-p1-opportunity-reasons li::before {
  content: "\2713";
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid #77b6a1;
  border-radius: 50%;
  color: var(--p1-green);
  font-size: 10px;
  font-weight: 900;
}
.tg-p1-home-racing {
  border: 1px solid var(--p1-line);
  box-shadow: none;
}
.tg-p1-home .tg-p1-home-racing-head { min-height: 86px; padding: 15px 18px; }
.tg-p1-home-racing-head h2 { margin: 1px 0 0; font-size: 23px; line-height: 1.1; }
.tg-p1-home-racing-head p { margin: 1px 0 0; color: var(--p1-muted); font-size: 11px; }
.tg-p1-home-racing-actions { display: flex; align-items: center; gap: 16px; }
.tg-p1-home .tg-p1-top-opportunity-runner {
  margin-top: 0;
}
.tg-p1-home .tg-p1-top-opportunity-runner h3 {
  margin: 0;
  font-size: 19px;
}
.tg-p1-home .tg-p1-opportunity-facts {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 12px 0 0;
  border: 1px solid var(--p1-line);
  background: var(--p1-line);
}
.tg-p1-home .tg-p1-opportunity-facts > div {
  grid-column: span 2;
  padding: 17px 10px;
  border: 0;
  background: #fff;
}
.tg-p1-home .tg-p1-opportunity-facts > div:nth-child(n + 4) { grid-column: span 3; }
.tg-p1-home .tg-p1-opportunity-facts strong {
  color: var(--p1-green);
  font-size: 26px;
  line-height: 1;
}
.tg-p1-home .tg-p1-opportunity-facts > div:nth-child(n + 4) strong { color: var(--p1-ink); font-size: 21px; }
.tg-p1-home .tg-p1-opportunity-facts span { margin-top: 7px; font-size: 9px; letter-spacing: .04em; }
.tg-p1-home .tg-p1-opportunity-reasons {
  margin-top: 0;
}
.tg-p1-home .tg-p1-opportunity-reasons ul {
  gap: 6px;
}
.tg-p1-home .tg-p1-opportunity-reasons li {
  font-size: 11px;
  line-height: 1.35;
}
.tg-p1-home .tg-p1-top-opportunity-actions {
  grid-template-columns: 1fr;
  margin-top: auto;
  padding-top: 2px;
}
.tg-p1-home .tg-p1-top-opportunity-actions a {
  min-height: 40px;
  padding-inline: 8px;
  font-size: 11px;
}
.tg-p1-home-offers .tg-p1-section-heading {
  margin-bottom: 18px;
}
.tg-p1-home-offers .tg-p1-section-heading a {
  white-space: nowrap;
}
.tg-p1-home .tg-p1-proof-card {
  grid-template-columns: minmax(270px, .7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: 18px 24px;
}
.tg-p1-home .tg-p1-proof-card > span {
  color: var(--p1-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.tg-p1-home .tg-p1-proof-card > h2,
.tg-p1-home .tg-p1-proof-card > p {
  margin: 0;
}
.tg-p1-home .tg-p1-proof-card > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--p1-green);
  font-weight: 850;
}
.tg-p1-home .tg-p1-proof-card-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.tg-p1-home .tg-p1-proof-card > header {
  align-items: flex-start;
}
.tg-p1-proof-heading { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-proof-heading > span { color: var(--p1-green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-p1-proof-heading h2 { margin: 0; font-size: 20px; line-height: 1.15; }
.tg-p1-proof-heading p { margin: 0; color: var(--p1-muted); font-size: 10px; line-height: 1.45; }
.tg-p1-home-proof-signal {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--p1-green-soft);
  color: var(--p1-green);
  font-size: 10px;
  text-transform: uppercase;
}
.tg-p1-home-proof-signal.is-poor {
  background: var(--p1-red-soft);
  color: var(--p1-red);
}
.tg-p1-home-proof-signal.is-developing {
  background: var(--p1-amber-soft);
  color: var(--p1-amber-dark);
}
.tg-p1-home .tg-p1-proof-card-metrics > div {
  padding: 2px 18px;
  border-left: 1px solid var(--p1-line);
}
.tg-p1-home .tg-p1-proof-card-metrics > div:first-child {
  padding-left: 0;
  border-left: 0;
}
.tg-p1-home .tg-p1-proof-card > footer {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--p1-line);
}
.tg-p1-home .tg-p1-proof-card > footer span,
.tg-p1-offer footer small {
  color: var(--p1-muted);
  font-size: 10px;
}
.tg-p1-home .tg-p1-proof-card > footer span,
.tg-p1-home .tg-p1-proof-card > footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tg-p1-home .tg-p1-proof-card > footer a {
  color: var(--p1-green);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.tg-p1-offer footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--p1-line);
}
.tg-p1-offer footer small {
  line-height: 1.4;
}
.tg-p1-offer footer a {
  min-height: 0;
  flex: 0 0 auto;
  background: transparent;
  color: var(--p1-green);
  font-size: 10px;
  text-decoration: underline;
}

.tg-p1-lightning {
  display: grid;
  grid-template-columns: minmax(220px, .85fr) minmax(390px, 1.65fr) minmax(230px, .8fr);
  grid-gap: 0;
  gap: 0;
  overflow: hidden;
  padding: 26px;
  border-radius: 7px;
  background: var(--p1-green);
  color: #fff;
  box-shadow: 0 14px 34px rgb(0 61 48 / 14%);
}
.tg-p1-lightning-intro {
  display: flex;
  gap: 14px;
  padding-right: 24px;
}
.tg-p1-lightning-intro > svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  flex: 0 0 auto;
  border: 1px solid rgb(244 181 31 / 42%);
  border-radius: 6px;
  color: var(--p1-amber);
  background: rgb(244 181 31 / 8%);
}
.tg-p1-lightning span {
  color: var(--p1-amber);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.tg-p1-lightning h2 {
  margin: 7px 0 12px;
  color: #fff;
  font-size: 25px;
  line-height: 1.12;
}
.tg-p1-lightning p {
  margin: 0;
  color: #d5e7e1;
  font-size: 12px;
  line-height: 1.55;
}
.tg-p1-lightning-list {
  display: grid;
  align-content: center;
  grid-gap: 2px;
  gap: 2px;
  margin: 0;
  padding: 0 28px;
  border-inline: 1px solid rgb(255 255 255 / 14%);
  list-style: none;
}
.tg-p1-lightning-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 38px minmax(78px, auto);
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
  min-height: 40px;
}
.tg-p1-lightning-list li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--p1-amber);
  border-radius: 4px;
}
.tg-p1-lightning-list a {
  display: grid;
  min-width: 0;
  color: #fff;
}
.tg-p1-lightning-list a strong,
.tg-p1-lightning-list a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tg-p1-lightning-list a small {
  color: #bcd6cd;
  font-size: 10px;
}
.tg-p1-lightning-list b {
  color: var(--p1-amber);
  font-size: 18px;
}
.tg-p1-lightning-list em {
  color: #d5e7e1;
  font-size: 11px;
  font-style: normal;
  text-align: right;
}
.tg-p1-lightning-pick {
  display: grid;
  align-content: center;
  grid-gap: 5px;
  gap: 5px;
  padding-left: 28px;
}
.tg-p1-lightning-pick > strong {
  color: var(--p1-amber);
  font-size: 36px;
  line-height: 1;
}
.tg-p1-lightning-pick h3 {
  margin: 3px 0 8px;
  color: #fff;
  font-size: 19px;
}
.tg-p1-lightning-pick a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 43px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--p1-amber);
  color: var(--p1-ink);
  font-weight: 900;
}

/* Four-step decision workflow. */
.tg-p1-workflow { padding: 8px 0 2px; }
.tg-p1-workflow ol { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.tg-p1-workflow li { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.tg-p1-workflow li:not(:last-child)::after { content: ""; position: absolute; top: 17px; right: 14px; width: calc(100% - 150px); height: 1px; background: #cad6d2; }
.tg-p1-workflow li > span { display: grid; z-index: 1; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 1px solid #b8c7c2; border-radius: 50%; background: #fff; font-weight: 850; }
.tg-p1-workflow li.is-active > span,
.tg-p1-workflow li.is-complete > span { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-p1-workflow li div { display: grid; min-width: 0; }
.tg-p1-workflow strong { font-size: 12px; }
.tg-p1-workflow small { color: var(--p1-muted); font-size: 10px; }
.tg-p1-workflow b { display: none; }

/* Racecards */
.tg-racecards-controls { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 18px; gap: 18px; align-items: flex-end; padding: 16px; background: #fff; border-radius: 6px; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-racecards-date-tabs { display: flex; gap: 4px; }
.tg-racecards-date-tabs button { display: grid; grid-gap: 2px; gap: 2px; min-width: 86px; padding: 10px 13px; border: 0; background: var(--p1-gray-soft); color: var(--p1-muted); }
.tg-racecards-date-tabs button.is-active { background: var(--p1-green); color: #fff; }
.tg-racecards-date-tabs span { font-size: 10px; }
.tg-racecards-filterbar { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)) auto; grid-gap: 10px; gap: 10px; align-items: flex-end; }
.tg-racecards-filterbar label { display: grid; grid-gap: 5px; gap: 5px; color: var(--p1-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tg-racecards-filterbar select { width: 100%; min-height: 42px; padding: 8px 34px 8px 11px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-ink); }
.tg-racecards-reset { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-green); font-weight: 800; }
.tg-racecards-reset:disabled { opacity: .4; }
.tg-racecards-board { overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-racecards-board-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--p1-line); }
.tg-racecards-board-head h2 { margin: 3px 0 0; font-size: 18px; }
.tg-racecards-legend { display: flex; gap: 17px; color: var(--p1-muted); font-size: 11px; }
.tg-racecards-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #8e9a96; }
.tg-racecards-legend .is-result::before { background: #66726e; }
.tg-racecards-legend .is-live::before { background: var(--p1-red); }
.tg-racecards-legend .is-upcoming::before { background: var(--p1-green-bright); }
.tg-racecards-meeting { display: grid; grid-template-columns: 155px minmax(0, 1fr); border-top: 1px solid var(--p1-line); }
.tg-racecards-meeting:first-of-type { border-top: 0; }
.tg-racecards-meeting > header { display: grid; align-content: center; grid-gap: 5px; gap: 5px; padding: 17px; background: #fbfcfc; }
.tg-racecards-meeting > header strong { font-size: 17px; }
.tg-racecards-meeting > header span { color: var(--p1-muted); font-size: 11px; }
.tg-racecards-races { display: grid; grid-auto-columns: minmax(116px, 1fr); grid-auto-flow: column; overflow-x: auto; }
.tg-racecards-cell { position: relative; min-width: 116px; border-left: 1px solid var(--p1-line); background: #fff; }
.tg-racecards-cell.is-selected { box-shadow: inset 0 0 0 2px var(--p1-green); background: var(--p1-green-soft); }
.tg-racecards-race { display: grid; align-content: center; grid-gap: 7px; gap: 7px; min-width: 116px; min-height: 104px; padding: 12px 10px; border: 0; border-left: 1px solid var(--p1-line); background: #fff; color: var(--p1-ink); text-align: left; }
.tg-racecards-cell .tg-racecards-race { border-left: 0; background: transparent; text-decoration: none; }
.tg-racecards-race:hover { background: #f8fbfa; }
.tg-racecards-quick-select { position: absolute; right: 7px; bottom: 7px; display: grid; width: 28px; height: 28px; place-items: center; border: 0; background: transparent; color: var(--p1-green); opacity: 0; transition: background .16s ease, opacity .16s ease; }
.tg-racecards-cell:hover .tg-racecards-quick-select,
.tg-racecards-quick-select:focus-visible,
.tg-racecards-quick-select[aria-pressed="true"] { opacity: 1; }
.tg-racecards-quick-select:hover,
.tg-racecards-quick-select[aria-pressed="true"] { background: var(--p1-green-soft); }
.tg-racecards-race.is-live strong,
.tg-racecards-race.is-live em { color: var(--p1-red); }
.tg-racecards-race.is-result { background: #fafafa; }
.tg-racecards-race-topline { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tg-racecards-race-topline strong { font-size: 16px; }
.tg-racecards-race-topline em { color: var(--p1-muted); font-size: 9px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.tg-racecards-race > b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tg-racecards-open { color: var(--p1-green); font-size: 9px; font-weight: 850; text-transform: uppercase; opacity: 0; transform: translateY(2px); transition: opacity .16s ease, transform .16s ease; }
.tg-racecards-race:hover .tg-racecards-open,
.tg-racecards-race:focus-visible .tg-racecards-open { opacity: 1; transform: translateY(0); }
.tg-racecards-score { color: var(--p1-muted); font-size: 10px; }
.tg-selected-race { position: -webkit-sticky; position: sticky; z-index: 9; bottom: 16px; display: grid; grid-template-columns: minmax(0, 1.4fr) .8fr auto; grid-gap: 18px; gap: 18px; align-items: center; padding: 16px 18px; border-left: 4px solid var(--p1-green); border-radius: 6px; background: #fff; box-shadow: 0 16px 38px rgb(20 48 40 / 16%); }
.tg-selected-race .tg-eyebrow { color: var(--p1-muted); }
.tg-selected-race-copy h2 { margin: 3px 0; color: var(--p1-green); font-size: 18px; }
.tg-selected-race-copy p { margin: 0; color: var(--p1-muted); }
.tg-selected-race-facts { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 8px; color: var(--p1-muted); font-size: 10px; }
.tg-selected-race-core-metrics { display: flex; gap: 0; margin-top: 10px; border-top: 1px solid var(--p1-line); }
.tg-selected-race-core-metrics > span { display: grid; grid-gap: 2px; gap: 2px; min-width: 94px; padding: 9px 13px 0; border-left: 1px solid var(--p1-line); }
.tg-selected-race-core-metrics > span:first-child { padding-left: 0; border-left: 0; }
.tg-selected-race-core-metrics small { color: var(--p1-muted); font-size: 8px; text-transform: uppercase; }
.tg-selected-race-core-metrics strong { color: var(--p1-muted); font-size: 12px; }
.tg-selected-race-signal { display: grid; grid-gap: 3px; gap: 3px; padding-left: 18px; border-left: 1px solid var(--p1-line); }
.tg-selected-race-signal span,
.tg-selected-race-signal small { color: var(--p1-muted); font-size: 10px; }
.tg-selected-race-signal > span { color: var(--p1-muted); }
.tg-selected-race-signal > strong { color: var(--p1-green); }
.tg-selected-race-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.tg-selected-race-actions > a,
.tg-selected-race-actions > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 8px 11px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-green); font-weight: 800; text-decoration: none; }
.tg-selected-race-actions > a:first-child { border-color: var(--p1-amber); background: var(--p1-amber); color: var(--p1-ink); }
/* Selected-race button colours: edit these three rules to test alternatives. */
.tg-selected-race-actions > .tg-selected-race-add { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-selected-race-actions > .tg-selected-race-track { border-color: #b9cec7; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-selected-race-actions > .tg-selected-race-track.is-tracked { border-color: var(--p1-green-bright); background: var(--p1-green-bright); color: #fff; }
.tg-selected-race-actions > .tg-selected-race-clear { width: 38px; padding: 0 !important; border-color: var(--p1-line); background: var(--p1-gray-soft); color: var(--p1-green); }
.tg-selected-race-message { flex-basis: 100%; color: var(--p1-muted); font-size: 10px; text-align: right; }
.tg-racecards-state { display: flex; align-items: flex-start; gap: 12px; padding: 24px; background: #fff; }
.tg-racecards-state > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-racecards-state p { margin: 4px 0 0; color: var(--p1-muted); }

/* Race decision and Pro evidence */
.tg-p1-race-decision { display: grid; grid-gap: 18px; gap: 18px; }
.tg-p1-race-pagination { display: flex; align-items: center; justify-content: space-between; min-height: 38px; }
.tg-p1-race-pagination a { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-size: 11px; font-weight: 800; text-decoration: none; }
.tg-p1-race-pagination > span:not(:empty) { color: var(--p1-muted); font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tg-p1-evidence-tabs { display: flex; gap: 24px; overflow-x: auto; border-bottom: 1px solid var(--p1-line); }
.tg-p1-evidence-tabs button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; min-height: 42px; padding: 0 2px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--p1-muted); font-weight: 750; }
.tg-p1-evidence-tabs button.is-active { border-bottom-color: var(--p1-green); color: var(--p1-green); }
.tg-p1-race-quality-metrics { display: grid; grid-template-columns: repeat(5, 1fr); }
.tg-p1-race-quality-metrics > * { min-height: 84px; padding: 10px 18px; border-left: 1px solid var(--p1-line); }
.tg-p1-race-quality-metrics > *:first-child { border-left: 0; }
.tg-p1-race-quality,
.tg-p1-runner-evidence,
.tg-p1-decision-next,
.tg-p1-post-race { min-width: 0; }
.tg-p1-runner-evidence { overflow: hidden; }
.tg-p1-decision-next { display: grid; grid-gap: 14px; gap: 14px; }
.tg-p1-post-race { display: grid; grid-gap: 16px; gap: 16px; }
.tg-p1-race-signal { display: grid; align-content: center; grid-gap: 8px; gap: 8px; }
.tg-p1-race-signal > span { color: var(--p1-muted); font-size: 11px; }
.tg-p1-race-page > .tg-p1-page-title { align-items: flex-start; padding: 13px 0 4px; border-bottom: 1px solid var(--p1-line); }
.tg-p1-race-page > .tg-p1-page-title h1 { margin-top: 7px; font-size: clamp(30px, 3vw, 40px); }
.tg-p1-race-page > .tg-p1-page-title > div:first-child > span { font-size: 11px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.tg-p1-decision-summary { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); grid-gap: 24px; gap: 24px; }
.tg-p1-runner-identity { display: flex; align-items: center; gap: 11px; }
.tg-p1-runner-identity > div { display: grid; grid-gap: 3px; gap: 3px; }
.tg-p1-runner-identity > div > span { color: var(--p1-muted); font-size: 11px; }
.tg-p1-runner-identity.is-compact strong { font-size: 12px; }
.tg-p1-runner-facts { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 18px; border-block: 1px solid var(--p1-line); }
.tg-p1-runner-facts > div { padding: 12px 10px; border-left: 1px solid var(--p1-line); text-align: center; }
.tg-p1-runner-facts > div:first-child { border-left: 0; }
.tg-p1-runner-facts strong { display: block; font-size: 18px; }
.tg-p1-runner-facts span { color: var(--p1-muted); font-size: 9px; text-transform: uppercase; }
.tg-p1-spotlight-summary { padding: 18px; border-left: 3px solid var(--p1-green); background: var(--p1-green-soft); }
.tg-p1-spotlight-summary.is-consider { border-color: var(--p1-amber); background: var(--p1-amber-soft); }
.tg-p1-spotlight-summary.is-pass { border-color: var(--p1-red); background: var(--p1-red-soft); }
.tg-p1-spotlight-summary h3 { margin: 14px 0; }
.tg-p1-spotlight-summary p { display: flex; gap: 9px; color: #3f514b; font-size: 12px; line-height: 1.45; }
.tg-p1-spotlight-summary p svg { flex: 0 0 auto; }
.tg-p1-spotlight-summary p span { display: grid; }
.tg-p1-signal-guide { display: flex; align-items: center; gap: 18px; padding: 10px 0 15px; }
.tg-p1-signal-guide p { margin: 0 0 0 auto; color: var(--p1-muted); font-size: 11px; }
.tg-p1-table-wrap { overflow-x: auto; }
.tg-p1-runner-table { min-width: 920px; }
.tg-p1-runner-table tr.is-top { background: #f5fbf8; }
.tg-p1-runner-table tr.is-open { background: var(--p1-green-soft); }
.tg-p1-rank-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--p1-ink); color: #fff; }
.tg-p1-scorebar { display: flex; align-items: center; gap: 8px; }
.tg-p1-scorebar > span { width: 72px; height: 5px; overflow: hidden; background: #dbe3e0; }
.tg-p1-scorebar i { display: block; height: 100%; background: var(--p1-green-bright); }
.tg-p1-runner-filters { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 4px 0 12px; }
.tg-p1-runner-filters > span { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; margin-right: 5px; color: var(--p1-green); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.tg-p1-runner-filters button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-muted); font-size: 11px; font-weight: 750; }
.tg-p1-runner-filters button b { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 10px; background: var(--p1-gray-soft); color: var(--p1-ink); font-size: 9px; }
.tg-p1-runner-filters button.is-active { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-p1-runner-filters button.is-active b { background: rgb(255 255 255 / 18%); color: #fff; }
.tg-p1-spotlight-toggle { display: inline-flex; align-items: center; gap: 5px; min-width: 34px; min-height: 34px; padding: 5px 7px; border: 1px solid transparent; background: transparent; color: var(--p1-green); font-size: 10px; font-weight: 850; }
.tg-p1-spotlight-toggle svg { width: 15px; }
.tg-p1-spotlight-toggle:hover { border-color: #b7cec7; background: #fff; }
.tg-p1-runner-spotlight-row > td { padding: 0 !important; background: #fff; }
.tg-p1-runner-spotlight-row:hover { background: #fff !important; }
.tg-p1-runner-spotlight { display: grid; grid-gap: 15px; gap: 15px; margin: 0 8px 10px; padding: 18px; border: 1px solid var(--p1-line); border-left: 3px solid var(--p1-green-bright); background: #fbfdfc; }
.tg-p1-runner-spotlight.is-consider { border-left-color: var(--p1-amber); }
.tg-p1-runner-spotlight.is-pass { border-left-color: var(--p1-red); }
.tg-p1-runner-spotlight > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.tg-p1-runner-spotlight > header > div:first-child { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-runner-spotlight > header span { color: var(--p1-green); font-size: 10px; font-weight: 800; }
.tg-p1-runner-spotlight > header strong { font-size: 18px; }
.tg-p1-runner-spotlight > p { max-width: 780px; margin: 0; color: #41534d; font-size: 12px; line-height: 1.55; }
.tg-p1-reading-modes { display: inline-flex; border-bottom: 1px solid var(--p1-line); }
.tg-p1-reading-modes button { min-height: 32px; padding: 5px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--p1-muted); font-size: 10px; text-transform: capitalize; }
.tg-p1-reading-modes button.is-active { border-bottom-color: var(--p1-green); color: var(--p1-green); font-weight: 850; }
.tg-p1-spotlight-angles { display: grid; grid-template-columns: repeat(3, 1fr); }
.tg-p1-spotlight-angles > div { display: flex; gap: 10px; min-width: 0; padding: 4px 18px; border-left: 1px solid var(--p1-line); }
.tg-p1-spotlight-angles > div:first-child { padding-left: 0; border-left: 0; }
.tg-p1-spotlight-angles svg { flex: 0 0 auto; color: var(--p1-green-bright); }
.tg-p1-spotlight-angles > div:last-child svg { color: var(--p1-amber-dark); }
.tg-p1-spotlight-angles span { display: grid; grid-gap: 4px; gap: 4px; color: var(--p1-muted); font-size: 10px; line-height: 1.45; }
.tg-p1-spotlight-angles strong { color: var(--p1-ink); font-size: 11px; }
.tg-p1-runner-spotlight > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 12px; border-top: 1px solid var(--p1-line); }
.tg-p1-runner-spotlight > footer small { color: var(--p1-muted); }
.tg-p1-runner-spotlight > footer button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 13px; border: 0; background: var(--p1-amber); color: var(--p1-ink); font-weight: 850; }
.tg-p1-runner-spotlight > footer button:disabled { opacity: .55; }
.tg-p1-race-angles { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 12px; gap: 12px; margin-top: 18px; }
.tg-p1-race-angles article { display: flex; gap: 11px; min-height: 128px; padding: 15px; border: 1px solid var(--p1-line); background: #fff; }
.tg-p1-race-angles article > svg { flex: 0 0 auto; color: var(--p1-green-bright); }
.tg-p1-race-angles article:last-child > svg { color: var(--p1-amber-dark); }
.tg-p1-race-angles article > span { display: grid; align-content: start; grid-gap: 3px; gap: 3px; }
.tg-p1-race-angles small { color: var(--p1-green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-p1-race-angles p { margin: 2px 0 8px; color: var(--p1-muted); font-size: 10px; }
.tg-p1-race-angles button { display: inline-flex; align-items: center; gap: 4px; width: -moz-fit-content; width: fit-content; padding: 0; border: 0; background: transparent; color: var(--p1-green); font-size: 10px; font-weight: 850; }
.tg-p1-decision-actions { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 10px; gap: 10px; }
.tg-p1-decision-actions :where(a, button) { display: flex; align-items: center; gap: 11px; min-height: 82px; padding: 14px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-ink); text-align: left; text-decoration: none; }
.tg-p1-decision-actions svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-p1-decision-actions span { display: grid; grid-gap: 3px; gap: 3px; color: var(--p1-muted); font-size: 10px; }
.tg-p1-decision-actions strong { color: var(--p1-ink); font-size: 12px; }
.tg-p1-decision-actions .is-primary { border-color: var(--p1-amber); background: var(--p1-amber); }
.tg-p1-action-message { min-height: 18px; margin: 10px 0 0; color: var(--p1-green); font-size: 11px; }
.tg-p1-result-order { display: grid; grid-gap: 8px; gap: 8px; }
.tg-p1-result-order > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--p1-line); }
.tg-p1-result-order > div > span { display: flex; align-items: center; gap: 8px; }
.tg-p1-result-order small { color: var(--p1-green); }
.tg-p1-condition-grid { display: grid; grid-template-columns: repeat(6, 1fr); margin: 18px 0; border-block: 1px solid var(--p1-line); }
.tg-p1-condition-grid > div { padding: 15px; border-left: 1px solid var(--p1-line); text-align: center; }
.tg-p1-condition-grid > div:first-child { border-left: 0; }
.tg-p1-condition-grid strong { display: block; font-size: 18px; }
.tg-p1-condition-grid span { color: var(--p1-muted); font-size: 9px; text-transform: uppercase; }
.tg-p1-evidence-overview { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0; border-block: 1px solid var(--p1-line); }
.tg-p1-evidence-overview > div { min-width: 0; padding: 14px 18px; border-left: 1px solid var(--p1-line); }
.tg-p1-evidence-overview > div:first-child { padding-left: 0; border-left: 0; }
.tg-p1-evidence-overview strong { display: block; overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-evidence-overview span { display: block; margin-top: 4px; color: var(--p1-muted); font-size: 9px; text-transform: uppercase; }
.tg-p1-form-evidence { display: grid; grid-gap: 14px; gap: 14px; }
.tg-p1-form-list { display: grid; grid-gap: 10px; gap: 10px; }
.tg-p1-form-list article { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(220px, 1fr) minmax(390px, 1.25fr); grid-gap: 18px; gap: 18px; align-items: center; padding: 14px 16px; border: 1px solid var(--p1-line); background: #fff; }
.tg-p1-form-list article > header { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-gap: 10px; gap: 10px; align-items: center; }
.tg-p1-form-list article > header > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--p1-green); color: #fff; font-size: 11px; font-weight: 850; }
.tg-p1-form-list article > header > div { display: grid; min-width: 0; grid-gap: 3px; gap: 3px; }
.tg-p1-form-list article > header small { overflow: hidden; color: var(--p1-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-form-list article > header .tg-decision-signal { grid-column: 2; }
.tg-p1-form-string { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-form-string > span { color: var(--p1-muted); font-size: 9px; text-transform: uppercase; }
.tg-p1-form-string > strong { font-size: 16px; letter-spacing: .08em; }
.tg-p1-form-string p { margin: 0; color: var(--p1-muted); font-size: 10px; line-height: 1.45; }
.tg-p1-form-list dl { display: grid; grid-template-columns: repeat(5, minmax(58px, 1fr)); margin: 0; }
.tg-p1-form-list dl > div { padding: 4px 10px; border-left: 1px solid var(--p1-line); text-align: center; }
.tg-p1-form-list dt { color: var(--p1-muted); font-size: 8px; text-transform: uppercase; }
.tg-p1-form-list dd { margin: 4px 0 0; font-size: 13px; font-weight: 850; }
.tg-p1-condition-status { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1px; gap: 1px; margin: 18px 0; background: var(--p1-line); }
.tg-p1-condition-status > div { display: flex; gap: 11px; min-height: 104px; padding: 16px; background: #f9fbfa; }
.tg-p1-condition-status svg { flex: 0 0 auto; color: var(--p1-green-bright); }
.tg-p1-condition-status span { display: grid; align-content: start; grid-gap: 5px; gap: 5px; color: var(--p1-muted); font-size: 10px; line-height: 1.45; }
.tg-p1-condition-status strong { color: var(--p1-ink); font-size: 12px; }
.tg-p1-market-table td:first-child small { display: block; margin-top: 4px; color: var(--p1-muted); font-size: 9px; }
.tg-p1-pro-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 1px; gap: 1px; margin-top: 18px; background: var(--p1-line); }
.tg-p1-pro-grid > div { min-height: 118px; padding: 18px; background: #fff; }
.tg-p1-pro-grid strong { color: var(--p1-green); }
.tg-p1-pro-grid p { margin: 7px 0 0; color: var(--p1-muted); line-height: 1.55; }

/* AI Bet Slip / strategy simulator */
.tg-p1-strategy .tg-p1-page-title { align-items: flex-start; }
.tg-p1-strategy .tg-p1-page-title h1 { max-width: 780px; font-size: clamp(32px, 3.3vw, 43px); line-height: 1.04; }
.tg-p1-strategy .tg-p1-page-title p { max-width: 790px; font-size: 14px; line-height: 1.55; }
.tg-p1-trust { display: flex; gap: 10px; max-width: 390px; padding: 12px 14px; border: 1px solid var(--p1-line); background: #fff; }
.tg-p1-trust svg { color: var(--p1-green); }
.tg-p1-trust span { display: grid; color: var(--p1-muted); font-size: 10px; }
.tg-p1-trust strong { color: var(--p1-ink); font-size: 12px; }
.tg-p1-strategy-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); grid-gap: 18px; gap: 18px; align-items: flex-start; }
.tg-p1-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 1px solid var(--p1-line); }
.tg-p1-toolbar-options { display: flex; flex-wrap: wrap; gap: 10px; }
.tg-p1-segmented { display: inline-flex; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 4px; }
.tg-p1-segmented :where(button, a) { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 7px 17px; border: 0; border-left: 1px solid var(--p1-line); background: #fff; color: var(--p1-muted); text-decoration: none; }
.tg-p1-segmented :where(button, a):first-child { border-left: 0; }
.tg-p1-segmented button.is-active { background: var(--p1-green); color: #fff; }
.tg-p1-currency-filter { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 7px; gap: 7px; align-items: center; min-height: 38px; padding: 0 9px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-green); }
.tg-p1-currency-filter > span { display: none; }
.tg-p1-currency-filter select { max-width: 215px; border: 0; outline: 0; background: transparent; color: var(--p1-ink); font-size: 11px; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.tg-p1-builder-heading { margin: 19px 0 8px; }
.tg-p1-builder-heading > div:last-child { display: grid; justify-items: end; grid-gap: 8px; gap: 8px; }
.tg-p1-clear-choices { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 9px; border: 1px solid #e8b5b0; background: #fff; color: var(--p1-red); font-size: 11px; font-weight: 800; }
.tg-p1-clear-choices:disabled { opacity: .5; }
.tg-p1-inline-error { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; padding: 10px 12px; background: var(--p1-red-soft); color: var(--p1-red); font-size: 11px; }
.tg-p1-selection { position: relative; display: grid; grid-template-columns: auto auto minmax(210px, .9fr) minmax(340px, 1.2fr) auto; grid-gap: 12px; gap: 12px; align-items: center; min-height: 76px; padding: 13px 0; border-top: 1px solid var(--p1-line); }
.tg-p1-selection.is-unavailable { opacity: .55; }
.tg-p1-rank { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--p1-green); color: #fff; }
.tg-p1-selection-horse { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 10px; gap: 10px; align-items: center; min-width: 0; }
.tg-p1-selection-name { display: grid; }
.tg-p1-selection-name > strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-selection-name span,
.tg-p1-selection-metric span { color: var(--p1-muted); font-size: 10px; }
.tg-p1-selection-name b { justify-self: start; margin-top: 4px; padding: 3px 6px; border: 1px solid var(--p1-line); border-radius: 3px; color: var(--p1-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.tg-p1-selection-name b.is-strong { border-color: #a9d4c5; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-p1-selection-name b.is-consider { border-color: #ead29b; background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-p1-selection-metrics { display: grid; grid-template-columns: repeat(4, minmax(68px, 1fr)); }
.tg-p1-selection-metric { min-width: 0; padding: 3px 10px; border-left: 1px solid var(--p1-line); text-align: center; }
.tg-p1-selection-metric:first-child { border-left: 0; }
.tg-p1-selection-metric strong { display: block; margin-top: 3px; }
.tg-p1-reorder { display: flex; }
.tg-p1-reorder button { width: 30px; height: 30px; border: 1px solid var(--p1-line); background: #fff; }
.tg-p1-inline-warning { grid-column: 3 / -1; display: flex; align-items: center; gap: 7px; color: var(--p1-red); font-size: 11px; }
.tg-p1-selection-insight { grid-column: 3 / -1; border: 1px solid var(--p1-line); background: #fbfdfc; }
.tg-p1-selection-insight > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 7px 11px; color: var(--p1-green); cursor: pointer; font-size: 10px; font-weight: 850; list-style: none; }
.tg-p1-selection-insight > summary::-webkit-details-marker { display: none; }
.tg-p1-selection-insight > summary > span { display: inline-flex; align-items: center; gap: 6px; }
.tg-p1-selection-insight > summary > b { margin-left: auto; color: var(--p1-muted); font-size: 9px; text-transform: uppercase; }
.tg-p1-selection-insight[open] > summary > svg { rotate: 180deg; }
.tg-p1-selection-insight > div { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--p1-line); }
.tg-p1-selection-insight > div > div { display: flex; gap: 9px; min-width: 0; padding: 12px; border-left: 1px solid var(--p1-line); }
.tg-p1-selection-insight > div > div:first-child { border-left: 0; }
.tg-p1-selection-insight > div > div > svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-p1-selection-insight > div > div.is-warning > svg { color: var(--p1-red); }
.tg-p1-selection-insight > div span { display: grid; align-content: start; grid-gap: 4px; gap: 4px; }
.tg-p1-selection-insight > div small { color: var(--p1-muted); font-size: 9px; line-height: 1.45; }
.tg-p1-simulation { position: -webkit-sticky; position: sticky; top: 84px; }
.tg-p1-stake { display: grid; grid-gap: 7px; gap: 7px; margin: 16px 0; color: var(--p1-muted); font-size: 11px; }
.tg-p1-stake > span:last-child { display: flex; align-items: center; border: 1px solid var(--p1-line); }
.tg-p1-stake b { padding-left: 12px; font-size: 18px; }
.tg-p1-stake input { width: 100%; min-height: 44px; border: 0; padding: 10px; }
.tg-p1-summary-list { margin: 0; }
.tg-p1-summary-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--p1-line); }
.tg-p1-summary-list dt { color: var(--p1-muted); }
.tg-p1-summary-list dd { margin: 0; font-weight: 800; }
.tg-p1-warning { display: flex; gap: 10px; margin: 15px 0; padding: 13px; border-left: 2px solid var(--p1-red); background: var(--p1-red-soft); color: #7e312b; }
.tg-p1-warning span { display: grid; grid-gap: 3px; gap: 3px; }
.tg-p1-simulation .tg-p1-primary-action { display: flex; align-items: center; justify-content: center; width: 100%; text-decoration: none; }
.tg-p1-microcopy { display: flex; gap: 7px; color: var(--p1-muted); font-size: 10px; }
.tg-p1-strategy-comparison,
.tg-p1-strategy-offers { overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-strategy-comparison > header,
.tg-p1-strategy-offers > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--p1-line); }
.tg-p1-strategy-comparison > header > div,
.tg-p1-strategy-offers > header > div { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-strategy-comparison > header span,
.tg-p1-strategy-offers > header span { color: var(--p1-green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-p1-strategy-comparison h2,
.tg-p1-strategy-offers h2 { margin: 0; font-size: 20px; }
.tg-p1-strategy-comparison header p,
.tg-p1-strategy-offers header p { margin: 0; color: var(--p1-muted); font-size: 11px; }
.tg-p1-comparison-table { display: grid; grid-template-columns: .8fr 1fr 1fr; }
.tg-p1-comparison-table > div { display: grid; grid-template-rows: repeat(6, minmax(42px, auto)); }
.tg-p1-comparison-table > div > :where(strong, span) { display: flex; align-items: center; padding: 10px 14px; border-top: 1px solid var(--p1-line); }
.tg-p1-comparison-table > div > :first-child { border-top: 0; color: var(--p1-green); }
.tg-p1-comparison-labels { background: #fbfcfc; color: var(--p1-muted); font-size: 10px; }
.tg-p1-comparison-column { border-left: 1px solid var(--p1-line); }
.tg-p1-comparison-column.is-accumulator { background: #f7fbf9; }
.tg-p1-comparison-column span { font-size: 11px; }
.tg-p1-comparison-column span i { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--p1-green-bright); }
.tg-p1-comparison-column.is-accumulator span i { background: var(--p1-red); }
.tg-p1-strategy-comparison > p { display: flex; align-items: center; gap: 7px; margin: 0; padding: 11px 15px; border-top: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 10px; }
.tg-p1-strategy-offers > header > a { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-size: 11px; font-weight: 850; white-space: nowrap; }
.tg-p1-strategy-offers > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); grid-gap: 1px; gap: 1px; background: var(--p1-line); }
.tg-p1-strategy-offers article,
.tg-p1-strategy-offers aside { display: grid; align-content: start; grid-gap: 8px; gap: 8px; min-height: 150px; padding: 14px; background: #fff; }
.tg-p1-strategy-offers article > strong { font-size: 12px; }
.tg-p1-strategy-offers article > small { color: var(--p1-muted); font-size: 9px; line-height: 1.4; }
.tg-p1-strategy-offers article > a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; margin-top: auto; border: 1px solid var(--p1-green); color: var(--p1-green); font-size: 10px; font-weight: 850; text-decoration: none; }
.tg-p1-strategy-offers aside { grid-template-columns: auto 1fr; align-content: center; color: var(--p1-green); }
.tg-p1-strategy-offers aside span { display: grid; grid-gap: 4px; gap: 4px; color: var(--p1-muted); font-size: 9px; }
.tg-p1-strategy-offers aside strong { color: var(--p1-green); font-size: 11px; }
.tg-p1-strategy-offers .tg-p1-strategy-offers-empty { display: grid; grid-template-columns: 1fr; grid-gap: 4px; gap: 4px; padding: 24px 20px; background: #fff; color: var(--p1-muted); }
.tg-p1-strategy-offers-empty strong { color: var(--p1-ink); }
.tg-p1-strategy-notes { display: grid; grid-template-columns: repeat(3, 1fr) minmax(180px, .75fr); grid-gap: 1px; gap: 1px; background: var(--p1-line); }
.tg-p1-strategy-notes > :where(div, button) { display: flex; align-items: flex-start; gap: 11px; min-height: 80px; padding: 16px; border: 0; background: #fff; color: var(--p1-green); text-align: left; }
.tg-p1-strategy-notes span { display: grid; grid-gap: 4px; gap: 4px; color: var(--p1-muted); font-size: 9px; line-height: 1.4; }
.tg-p1-strategy-notes strong { color: var(--p1-ink); font-size: 11px; }
.tg-p1-strategy-notes button { color: var(--p1-red); }
.tg-p1-strategy-notes button strong { color: var(--p1-red); }

/* Results */
.tg-p1-results-page > .tg-p1-page-title h1,
.tg-p1-proof-page > .tg-p1-page-title h1 { font-size: clamp(34px, 3.4vw, 44px); line-height: 1.05; }
.tg-p1-results-page > .tg-p1-page-title p,
.tg-p1-proof-page > .tg-p1-page-title p { max-width: 790px; font-size: 14px; }
.tg-p1-proof-action { display: inline-flex !important; align-items: center; gap: 11px; min-height: 50px; padding: 8px 14px !important; border: 1px solid var(--p1-amber) !important; background: #fffaf0; color: var(--p1-ink) !important; transition: background .18s ease, box-shadow .18s ease, translate .18s ease; }
.tg-p1-proof-action:hover { background: var(--p1-amber-soft); box-shadow: 0 8px 22px rgb(80 60 8 / 10%); translate: 0 -1px; }
.tg-p1-proof-action > svg:first-child { color: var(--p1-amber-dark); }
.tg-p1-proof-action span { display: grid; grid-gap: 1px; gap: 1px; }
.tg-p1-proof-action small { color: var(--p1-muted); font-size: 9px; }
.tg-p1-results-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tg-p1-results-toolbar :where(a, button) { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-ink); text-decoration: none; }
.tg-p1-results-toolbar form { display: flex; align-items: center; gap: 6px; padding-left: 11px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; }
.tg-p1-results-toolbar input { min-height: 38px; border: 0; }
.tg-p1-results-toolbar form button { border-block: 0; border-right: 0; background: var(--p1-green); color: #fff; }
.tg-p1-results-toolbar > span { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-muted); font-size: 11px; }
.tg-p1-results-toolbar > span:first-of-type { margin-left: auto; }
.tg-p1-results-summary { display: grid; grid-template-columns: repeat(4, 1fr); padding: 18px 0; border-block: 1px solid var(--p1-line); background: #fff; }
.tg-p1-results-summary > div { padding: 0 22px; border-left: 1px solid var(--p1-line); }
.tg-p1-results-summary > div:first-child { border-left: 0; }
.tg-p1-results-filters { display: grid; grid-template-columns: repeat(4, minmax(135px, 1fr)); grid-gap: 10px; gap: 10px; align-items: end; padding: 14px 16px; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-results-filter-title { grid-column: 1 / -1; display: flex; align-items: center; gap: 7px; color: var(--p1-green); font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.tg-p1-results-filters label { display: grid; grid-gap: 5px; gap: 5px; color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-p1-results-filters select { min-height: 38px; padding: 7px 30px 7px 10px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-ink); text-transform: none; }
.tg-p1-results-filters :where(button, a) { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 8px 13px; border: 0; background: var(--p1-green); color: #fff; font-weight: 800; text-decoration: none; }
.tg-p1-results-filters a { background: transparent; color: var(--p1-green); }
.tg-p1-results-list { overflow-x: auto; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-results-list > header { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid var(--p1-line); }
.tg-p1-results-list > header div { display: grid; }
.tg-p1-results-list > header span { color: var(--p1-muted); font-size: 11px; }
.tg-p1-result-row { border-bottom: 1px solid var(--p1-line); }
.tg-p1-result-row:last-child { border-bottom: 0; }
.tg-p1-results-columns,
.tg-p1-result-row > summary { display: grid; grid-template-columns: 100px minmax(130px, .75fr) minmax(210px, 1.15fr) minmax(230px, 1.25fr) minmax(130px, .7fr) minmax(130px, .65fr); grid-gap: 14px; gap: 14px; min-width: 1120px; }
.tg-p1-results-columns { padding: 10px 18px; background: #eef4f1; color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-p1-result-row > summary { align-items: center; min-height: 116px; padding: 13px 18px; cursor: pointer; list-style: none; transition: background .18s ease, box-shadow .18s ease; }
.tg-p1-result-row > summary::-webkit-details-marker { display: none; }
.tg-p1-result-row > summary:hover { background: #f8fbfa; box-shadow: inset 3px 0 var(--p1-green-bright); }
.tg-p1-result-row[open] > summary { background: #f6fbf8; box-shadow: inset 3px 0 var(--p1-green); }
.tg-p1-result-row > summary > span { display: grid; grid-gap: 3px; gap: 3px; }
.tg-p1-result-row > summary small { color: var(--p1-muted); }
.tg-p1-result-race > strong { font-size: 17px; }
.tg-p1-result-race > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-result-row > summary .tg-p1-result-order { grid-template-columns: 1fr; gap: 4px; }
.tg-p1-result-row > summary .tg-p1-result-order > span { display: grid; grid-template-columns: auto 1fr; grid-gap: 3px 7px; gap: 3px 7px; align-items: center; min-width: 0; }
.tg-p1-result-row > summary .tg-p1-result-order b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-result-row > summary .tg-p1-result-order small { grid-column: 2; }
.tg-p1-result-found { grid-template-columns: auto 1fr; align-items: center; font-weight: 850; }
.tg-p1-result-found svg { grid-row: 1 / 3; width: 18px; }
.tg-p1-result-found small { grid-column: 2; font-weight: 500; }
.tg-p1-result-review { grid-template-columns: 1fr auto; align-items: center; }
.tg-p1-result-review a { color: var(--p1-green); font-size: 10px; font-weight: 850; text-decoration: none; }
.tg-p1-result-review svg { color: var(--p1-green); transition: rotate .2s ease; }
.tg-p1-result-row[open] .tg-p1-result-review svg { rotate: 180deg; }
.tg-p1-result-comparison { display: grid; grid-template-columns: 1fr 1fr 1.4fr auto; grid-gap: 0; gap: 0; padding: 18px; background: #f8fbfa; }
.tg-p1-result-comparison > div { display: grid; align-content: start; grid-gap: 5px; gap: 5px; padding: 0 18px; border-left: 1px solid var(--p1-line); }
.tg-p1-result-comparison > div:first-child { padding-left: 0; border-left: 0; }
.tg-p1-result-comparison span,
.tg-p1-result-comparison small { color: var(--p1-muted); font-size: 10px; }
.tg-p1-result-comparison p { margin: 0; color: #40514b; font-size: 11px; line-height: 1.45; }
.tg-p1-result-comparison > a { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-weight: 800; text-decoration: none; }
.tg-p1-race-summary { display: grid; grid-template-columns: 180px 1fr .8fr 1fr .8fr 1.45fr; min-width: 1120px; padding: 19px 18px; border-top: 1px solid var(--p1-line); background: #fbfdfc; animation: tg-p1-summary-in .22s ease-out both; }
.tg-p1-race-summary > div { display: grid; align-content: start; grid-gap: 5px; gap: 5px; min-width: 0; padding: 0 16px; border-left: 1px solid var(--p1-line); }
.tg-p1-race-summary > div:first-child { padding-left: 0; border-left: 0; }
.tg-p1-race-summary :where(span, small) { color: var(--p1-muted); font-size: 9px; }
.tg-p1-race-summary > div > span:first-child { font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-p1-race-summary-title { display: flex !important; flex-direction: row; gap: 9px !important; }
.tg-p1-race-summary-title svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-p1-race-summary-title span { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-race-summary-title strong { color: var(--p1-ink); font-size: 13px; }
.tg-p1-race-summary .tg-decision-signal { margin-top: 3px; }
.tg-p1-race-summary strong small { font-weight: 500; }
.tg-p1-what-happened p { margin: 0; color: #40514b; font-size: 10px; line-height: 1.5; }
.tg-p1-what-happened a { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--p1-green); font-size: 10px; font-weight: 850; text-decoration: none; }
@keyframes tg-p1-summary-in { from { opacity: 0; translate: 0 -4px; } to { opacity: 1; translate: 0 0; } }
.tg-p1-method-note { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--p1-muted); font-size: 11px; }

/* Daily Proof */
.tg-p1-proof-overview,
.tg-p1-proof-performance,
.tg-p1-proof-benchmark,
.tg-p1-proof-history,
.tg-p1-proof-takeaways { border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-proof-date { display: inline-flex; align-items: center; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; }
.tg-p1-proof-date svg { margin-left: 10px; color: var(--p1-green); }
.tg-p1-proof-date select { min-height: 38px; border: 0; padding: 7px 8px; background: #fff; }
.tg-p1-proof-date button { min-height: 38px; border: 0; background: var(--p1-green); color: #fff; font-weight: 800; }
.tg-p1-proof-table-wrap a { color: var(--p1-green); text-decoration: none; }
.tg-p1-proof-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 20px; padding: 15px 18px; border-bottom: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 11px; }
.tg-p1-proof-scale { display: grid; grid-template-columns: 220px minmax(0, 1fr) 230px; grid-gap: 24px; gap: 24px; align-items: center; padding: 22px; }
.tg-p1-proof-scale > div:first-child { display: grid; grid-gap: 5px; gap: 5px; }
.tg-p1-proof-scale > div:first-child > span { display: flex; align-items: center; gap: 5px; }
.tg-p1-proof-scale > div:first-child strong { font-size: 34px; }
.tg-p1-proof-band { display: inline-flex; width: -moz-fit-content; width: fit-content; align-items: center; min-height: 22px; padding: 3px 8px; border: 1px solid var(--p1-line); border-radius: 11px; color: var(--p1-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-p1-proof-band.is-solid { border-color: #79b89e; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-p1-proof-band.is-strong { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-p1-proof-band.is-developing { border-color: var(--p1-amber); background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-p1-proof-band.is-poor { border-color: #efaaa5; background: var(--p1-red-soft); color: var(--p1-red); }
.tg-p1-proof-scale small,
.tg-p1-proof-scale p { color: var(--p1-muted); }
.tg-p1-proof-scale p { margin: 0; font-size: 11px; line-height: 1.5; }
.tg-p1-proof-scale p strong { display: block; color: var(--p1-ink); }
.tg-p1-proof-gauge { position: relative; height: 8px; margin-top: 5px; background: linear-gradient(90deg, #e76760 0 25%, #f4b51f 25% 50%, #7dc7a9 50% 75%, #0c8b65 75%); }
.tg-p1-proof-gauge > i { display: none; }
.tg-p1-proof-gauge > b { position: absolute; top: -36px; translate: -50% 0; padding: 5px 8px; border-radius: 3px; background: var(--p1-green); color: #fff; }
.tg-p1-proof-gauge > b::after { content: ""; position: absolute; left: 50%; bottom: -5px; border: 5px solid transparent; border-top-color: var(--p1-green); border-bottom: 0; translate: -50% 0; }
.tg-p1-proof-gauge > span { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; color: var(--p1-muted); font-size: 10px; text-align: center; }
.tg-p1-proof-gauge em { font-style: normal; }
.tg-p1-proof-performance { display: grid; grid-template-columns: 230px repeat(4, 1fr); padding: 22px 0; }
.tg-p1-proof-performance > header,
.tg-p1-proof-performance > div { padding: 0 20px; border-left: 1px solid var(--p1-line); }
.tg-p1-proof-performance > header { display: grid; align-content: start; border-left: 0; }
.tg-p1-proof-performance > header span { color: var(--p1-muted); font-size: 11px; }
.tg-p1-proof-benchmark { display: grid; grid-template-columns: 230px repeat(4, 1fr) 220px; padding: 22px 0; }
.tg-p1-proof-benchmark > header,
.tg-p1-proof-benchmark > div,
.tg-p1-proof-benchmark > p { padding: 0 18px; border-left: 1px solid var(--p1-line); }
.tg-p1-proof-benchmark > header { display: flex; justify-content: space-between; border-left: 0; }
.tg-p1-proof-benchmark > header div { display: grid; }
.tg-p1-proof-benchmark > header span { color: var(--p1-muted); font-size: 10px; }
.tg-p1-proof-benchmark > p { margin: 0; color: var(--p1-muted); font-size: 11px; line-height: 1.45; }
.tg-p1-proof-benchmark > p strong { display: block; color: var(--p1-ink); }
.tg-p1-proof-benchmark > p b { display: block; margin: 5px 0; font-size: 16px; }
.tg-p1-proof-history > header { display: flex; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--p1-line); }
.tg-p1-proof-history > header div { display: grid; }
.tg-p1-proof-history > header span { color: var(--p1-muted); font-size: 11px; }
.tg-p1-proof-trend { display: flex; align-items: flex-end; gap: 12px; height: 160px; padding: 25px 22px 18px; border-bottom: 1px solid var(--p1-line); }
.tg-p1-proof-trend > div { position: relative; display: grid; flex: 1 1; justify-items: center; align-items: flex-end; height: 100%; }
.tg-p1-proof-trend i { width: min(32px, 70%); min-height: 4px; background: var(--p1-green); transition: height .25s ease, background .2s ease; }
.tg-p1-proof-trend i.is-solid { background: var(--p1-green-bright); }
.tg-p1-proof-trend i.is-developing { background: var(--p1-amber); }
.tg-p1-proof-trend i.is-poor { background: var(--p1-red); }
.tg-p1-proof-trend span { margin-top: 5px; color: var(--p1-muted); font-size: 9px; }
.tg-p1-proof-trend b { position: absolute; top: -2px; font-size: 10px; }
.tg-p1-proof-table-wrap { overflow-x: auto; padding: 0 18px 18px; }
.tg-p1-proof-audits { padding: 0 18px 18px; }
.tg-p1-proof-audit-columns,
.tg-p1-published-audit > summary { display: grid; grid-template-columns: minmax(180px, 1.3fr) .45fr .7fr .8fr .9fr .6fr 22px; grid-gap: 12px; gap: 12px; align-items: center; }
.tg-p1-proof-audit-columns { padding: 10px 12px; background: #eef4f1; color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-p1-published-audit { border-bottom: 1px solid var(--p1-line); }
.tg-p1-published-audit > summary { min-height: 62px; padding: 9px 12px; cursor: pointer; list-style: none; transition: background .18s ease; }
.tg-p1-published-audit > summary::-webkit-details-marker { display: none; }
.tg-p1-published-audit > summary:hover,
.tg-p1-published-audit[open] > summary { background: #f7fbf9; }
.tg-p1-published-audit > summary > span { display: grid; grid-gap: 3px; gap: 3px; }
.tg-p1-published-audit > summary small { color: var(--p1-muted); font-size: 9px; }
.tg-p1-published-audit > summary .tg-p1-proof-band { min-height: 18px; padding: 2px 6px; }
.tg-p1-published-audit > summary > svg { color: var(--p1-green); transition: rotate .2s ease; }
.tg-p1-published-audit[open] > summary > svg { rotate: 180deg; }
.tg-p1-published-audit > div { display: grid; grid-template-columns: repeat(4, 1fr) auto; grid-gap: 0; gap: 0; align-items: center; padding: 15px 12px; background: #fbfdfc; animation: tg-p1-summary-in .22s ease-out both; }
.tg-p1-published-audit > div > :where(div, a) { padding: 0 16px; border-left: 1px solid var(--p1-line); }
.tg-p1-published-audit > div > :first-child { padding-left: 0; border-left: 0; }
.tg-p1-published-audit > div > a { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-size: 10px; font-weight: 850; text-decoration: none; }
.tg-p1-proof-actions { display: flex; justify-content: flex-end; gap: 9px; }
.tg-p1-proof-actions a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-green); font-weight: 850; text-decoration: none; }
.tg-p1-proof-actions a:first-child { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-p1-proof-takeaways { display: grid; grid-template-columns: repeat(3, 1fr); padding: 18px; }
.tg-p1-proof-takeaways > div { display: flex; gap: 12px; padding: 0 18px; border-left: 1px solid var(--p1-line); }
.tg-p1-proof-takeaways > div:first-child { border-left: 0; }
.tg-p1-proof-takeaways svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-p1-proof-takeaways span { display: grid; color: var(--p1-muted); font-size: 11px; line-height: 1.45; }
.tg-p1-proof-takeaways strong { color: var(--p1-ink); }

/* Trackers hub */
.tg-p1-tabs { display: flex; gap: 22px; overflow-x: auto; border-bottom: 1px solid var(--p1-line); }
.tg-p1-tabs :where(button, a) { display: inline-flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 4px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--p1-muted); text-decoration: none; white-space: nowrap; }
.tg-p1-tabs :where(button, a).is-active { border-bottom-color: var(--p1-green); color: var(--p1-green); font-weight: 800; }
.tg-p1-tabs small { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 50%; background: var(--p1-gray-soft); }
.tg-p1-changes { display: grid; grid-template-columns: auto repeat(4, 1fr); align-items: center; grid-gap: 0; gap: 0; padding: 16px 20px; border-radius: 6px; background: #fff; }
.tg-p1-changes > span:first-child { color: var(--p1-green); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.tg-p1-changes > div { display: flex; align-items: center; gap: 10px; padding-left: 20px; border-left: 1px solid var(--p1-line); }
.tg-p1-changes svg { color: var(--p1-green); }
.tg-p1-changes > div span { display: grid; color: var(--p1-muted); font-size: 10px; }
.tg-p1-changes > div strong { color: var(--p1-ink); font-size: 19px; }
.tg-p1-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tg-p1-search-field { display: flex; align-items: center; gap: 8px; width: min(360px, 100%); min-height: 42px; padding: 0 12px; border: 1px solid var(--p1-line); background: #fff; }
.tg-p1-search-field input { width: 100%; border: 0; outline: 0; }
.tg-p1-filter-row > span { color: var(--p1-muted); font-size: 11px; }
.tg-p1-tracker-table { padding: 0; overflow: hidden; }
.tg-p1-tracker-table > header,
.tg-p1-tracker-table > article { display: grid; grid-template-columns: 1.25fr .8fr .72fr .42fr .58fr 1.28fr; grid-gap: 15px; gap: 15px; align-items: center; padding: 13px 17px; }
.tg-p1-tracker-table > header { grid-template-columns: 1.25fr .8fr .72fr .42fr .58fr 1.28fr; }
.tg-p1-tracker-table > header { background: #eef4f1; color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-p1-tracker-table > article { border-top: 1px solid var(--p1-line); }
.tg-p1-tracker-person { display: flex; align-items: center; gap: 10px; }
.tg-p1-tracker-person span { display: grid; }
.tg-p1-tracker-person small { color: var(--p1-muted); }
.tg-p1-row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.tg-p1-row-actions :where(a, button) { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 7px 9px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-green); text-decoration: none; }
.tg-p1-alert-list article { display: grid; grid-template-columns: auto 1fr auto auto; grid-gap: 12px; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--p1-line); }
.tg-p1-alert-list article > div { display: grid; }
.tg-p1-alert-list p { margin: 2px 0; color: var(--p1-muted); }
.tg-p1-alert-list a,
.tg-p1-alert-list button { border: 0; background: transparent; color: var(--p1-green); text-decoration: none; }

/* Horse profile */
.tg-p1-breadcrumb { display: flex; gap: 8px; color: var(--p1-muted); font-size: 11px; }
.tg-p1-breadcrumb a { color: var(--p1-green); text-decoration: none; }
.tg-p1-profile-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 18px; gap: 18px; align-items: center; padding: 6px 0; }
.tg-p1-profile-identity-media { display: grid; width: 68px; height: 68px; place-items: center; border-radius: 6px; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-p1-profile-identity-media .tg-live-silk { width: 58px; height: 58px; }
.tg-p1-profile-identity > span { color: var(--p1-green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-p1-profile-header h1 { margin: 0 0 5px; font-size: 32px; }
.tg-p1-profile-header p { margin: 0; color: var(--p1-muted); }
.tg-p1-profile-actions { display: flex; gap: 8px; }
.tg-p1-profile-actions button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-green); }
.tg-p1-profile-snapshot { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr) auto; align-items: center; padding: 16px 18px; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-profile-snapshot > div { padding: 0 18px; border-left: 1px solid var(--p1-line); }
.tg-p1-profile-snapshot > div:first-child { padding-left: 0; border-left: 0; }
.tg-p1-profile-snapshot span { color: var(--p1-muted); font-size: 10px; }
.tg-p1-profile-snapshot strong { display: block; margin-top: 4px; }
.tg-p1-profile-snapshot a { display: inline-flex; align-items: center; min-height: 42px; padding: 10px 18px; background: var(--p1-green); color: #fff; text-decoration: none; }
.tg-p1-profile-grid { display: grid; grid-template-columns: 1.35fr 1fr .65fr; grid-gap: 16px; gap: 16px; }
.tg-p1-spotlight { grid-row: span 2; }
.tg-p1-evidence-angle { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1px; gap: 1px; margin-top: 18px; background: var(--p1-line); }
.tg-p1-evidence-angle > div { display: grid; grid-gap: 5px; gap: 5px; padding: 14px; background: #fff; }
.tg-p1-evidence-angle svg { color: var(--p1-green); }
.tg-p1-evidence-angle span { color: var(--p1-muted); font-size: 10px; }
.tg-p1-form-table { overflow-x: auto; }
.tg-p1-form-table > header,
.tg-p1-form-table > div { display: grid; grid-template-columns: 90px 1fr 85px 90px 45px 45px; grid-gap: 8px; gap: 8px; min-width: 560px; padding: 9px 0; border-top: 1px solid var(--p1-line); font-size: 10px; }
.tg-p1-form-table > header { color: var(--p1-muted); font-weight: 800; text-transform: uppercase; }
.tg-p1-condition-list { margin: 0; }
.tg-p1-condition-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--p1-line); }
.tg-p1-condition-list dt { color: var(--p1-muted); }
.tg-p1-condition-list dd { margin: 0; font-weight: 800; }
.tg-p1-profile-lower { display: grid; grid-template-columns: 1fr 1.2fr .8fr; grid-gap: 16px; gap: 16px; }
.tg-p1-stat-row { display: grid; grid-template-columns: repeat(5, 1fr); }
.tg-p1-stat-row > div { padding: 10px; border-left: 1px solid var(--p1-line); text-align: center; }
.tg-p1-stat-row > div:first-child { border-left: 0; }
.tg-p1-stat-row span { color: var(--p1-muted); font-size: 9px; text-transform: uppercase; }
.tg-p1-stat-row strong { display: block; margin-top: 4px; font-size: 19px; }
.tg-p1-entry { display: grid; grid-template-columns: 1fr 1.5fr 1fr .7fr auto; grid-gap: 10px; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--p1-line); font-size: 10px; }
.tg-p1-entry > span { display: grid; color: var(--p1-muted); }
.tg-p1-entry a { color: var(--p1-green); font-weight: 800; }
.tg-p1-alert-coverage { display: grid; grid-gap: 10px; gap: 10px; }
.tg-p1-alert-coverage span { display: flex; align-items: center; gap: 8px; }
.tg-p1-alert-coverage svg { color: var(--p1-green-bright); }

/* Account and preferences */
.tg-p1-account-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); grid-gap: 24px; gap: 24px; align-items: flex-start; }
.tg-p1-account-nav { display: grid; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-account-nav button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border: 0; border-left: 3px solid transparent; background: transparent; color: var(--p1-muted); text-align: left; }
.tg-p1-account-nav button.is-active { border-left-color: var(--p1-green); background: var(--p1-green-soft); color: var(--p1-green); font-weight: 800; }
.tg-p1-account-content { min-width: 0; }
.tg-p1-account-metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.tg-p1-account-metrics > div { padding: 0 18px; border-left: 1px solid var(--p1-line); }
.tg-p1-account-metrics > div:first-child { padding-left: 0; border-left: 0; }
.tg-p1-account-form { display: grid; grid-gap: 14px; gap: 14px; }
.tg-p1-account-form label { display: grid; grid-gap: 5px; gap: 5px; color: var(--p1-muted); font-size: 11px; }
.tg-p1-account-form input { min-height: 42px; padding: 9px 11px; border: 1px solid var(--p1-line); }
.tg-p1-subscription-panel > div:last-child { display: grid; grid-template-columns: 1fr auto; grid-gap: 18px; gap: 18px; align-items: center; }
.tg-p1-preferences { display: grid; grid-gap: 0; gap: 0; padding: 0 20px; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-preferences-head { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--p1-line); }
.tg-p1-preferences-head h2 { margin: 3px 0; }
.tg-p1-preferences-head p { margin: 0; color: var(--p1-muted); }
.tg-p1-unsaved { align-self: start; color: var(--p1-amber-dark); font-size: 11px; }
.tg-p1-preference-group { display: grid; grid-template-columns: 250px minmax(0, 1fr); grid-gap: 25px; gap: 25px; padding: 18px 0; border-bottom: 1px solid var(--p1-line); }
.tg-p1-preference-label { display: grid; grid-template-columns: auto 1fr; grid-gap: 12px; gap: 12px; align-content: start; }
.tg-p1-preference-label > svg { color: var(--p1-green); }
.tg-p1-preference-label p { margin: 3px 0 0; color: var(--p1-muted); font-size: 11px; }
.tg-p1-preference-control { min-width: 0; }
.tg-p1-theme-options { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 10px; gap: 10px; }
.tg-p1-theme-options button { display: flex; align-items: center; gap: 8px; min-height: 64px; padding: 12px; border: 1px solid var(--p1-line); background: #fff; }
.tg-p1-theme-options button.is-active,
.tg-p1-theme-options button.is-selected { border-color: var(--p1-green); background: var(--p1-green-soft); color: var(--p1-green); }
.tg-p1-field-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 10px; gap: 10px; }
.tg-p1-field-grid label { display: grid; grid-gap: 5px; gap: 5px; color: var(--p1-muted); font-size: 10px; }
.tg-p1-field-grid select,
.tg-p1-number-field input { min-height: 40px; padding: 8px 10px; border: 1px solid var(--p1-line); background: #fff; }
.tg-p1-checkbox-row,
.tg-p1-toggle-row { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.tg-p1-checkbox-row label,
.tg-p1-toggle-row label { display: flex; align-items: center; gap: 7px; }
.tg-p1-number-field { display: flex; align-items: center; gap: 10px; }
.tg-p1-preferences-save { position: -webkit-sticky; position: sticky; bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 18px -4px; padding: 14px; border-radius: 5px; background: #f2f8f5; box-shadow: 0 10px 25px rgb(20 48 40 / 10%); }
.tg-p1-preferences-save button { padding-inline: 24px; }
.tg-p1-loading { display: grid; min-height: 320px; place-items: center; color: var(--p1-muted); font-weight: 750; }

/* Partner offers */
.tg-p1-offers-page > .tg-p1-page-title h1 { font-size: clamp(36px, 3.7vw, 46px); line-height: 1.04; }
.tg-p1-offers-page > .tg-p1-page-title p { max-width: 830px; font-size: 14px; line-height: 1.6; }
.tg-p1-offer-safety { overflow: hidden; border: 1px solid #b8d4ca; border-radius: 7px; background: #fff; box-shadow: 0 10px 30px rgb(20 48 40 / 6%); }
.tg-p1-offer-safety > header { display: flex; align-items: flex-start; gap: 14px; padding: 21px 22px; }
.tg-p1-offer-safety > header > svg { width: 43px; height: 43px; padding: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-p1-offer-safety > header > div { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-offer-safety > header span,
.tg-p1-offers-empty > header span,
.tg-p1-offer-responsibility > div > span { color: var(--p1-green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-p1-offer-safety h2 { margin: 0; font-size: 24px; line-height: 1.12; }
.tg-p1-offer-safety > header p { max-width: 830px; margin: 0; color: var(--p1-muted); font-size: 12px; line-height: 1.55; }
.tg-p1-offer-safety > div { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1px; gap: 1px; background: var(--p1-line); border-top: 1px solid var(--p1-line); }
.tg-p1-offer-safety article { display: flex; align-items: flex-start; gap: 11px; min-height: 105px; padding: 17px 20px; background: #fbfdfc; }
.tg-p1-offer-safety article > svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-p1-offer-safety article span { display: grid; grid-gap: 5px; gap: 5px; }
.tg-p1-offer-safety article strong { font-size: 13px; }
.tg-p1-offer-safety article small { color: var(--p1-muted); font-size: 11px; line-height: 1.5; }
.tg-p1-offer-safety > footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 20px; border-top: 1px solid var(--p1-line); background: var(--p1-green-soft); }
.tg-p1-offer-safety > footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-size: 11px; font-weight: 850; }
.tg-p1-offer-guidance,
.tg-p1-offer-catalogue { display: grid; grid-gap: 17px; gap: 17px; }
.tg-p1-offers-page .tg-p1-section-heading h2 { font-size: 24px; }
.tg-p1-offers-page .tg-p1-section-heading p { max-width: 760px; font-size: 12px; line-height: 1.55; }
.tg-p1-offer-guidance > div:last-child { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1px; gap: 1px; overflow: hidden; border-radius: 6px; background: var(--p1-line); }
.tg-p1-offer-guidance article { display: flex; align-items: flex-start; gap: 12px; min-height: 112px; padding: 20px; background: #fff; }
.tg-p1-offer-guidance article svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-p1-offer-guidance article span { display: grid; grid-gap: 5px; gap: 5px; }
.tg-p1-offer-guidance article strong { font-size: 14px; }
.tg-p1-offer-guidance article small { color: var(--p1-muted); font-size: 11px; line-height: 1.5; }
.tg-p1-offer-controls { display: grid; grid-template-columns: 1fr minmax(180px, .65fr) minmax(180px, .65fr) auto auto; grid-gap: 14px; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-p1-offer-controls > div { display: flex; align-items: center; gap: 10px; color: var(--p1-green); }
.tg-p1-offer-controls > div span { display: grid; }
.tg-p1-offer-controls small { color: var(--p1-muted); }
.tg-p1-offer-controls > label:not(.tg-p1-switch) { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 8px; gap: 8px; align-items: center; min-height: 40px; padding: 0 11px; border: 1px solid var(--p1-line); }
.tg-p1-offer-controls select { min-width: 0; border: 0; outline: 0; background: transparent; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.tg-p1-offer-controls > button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--p1-green); }
.tg-p1-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.tg-p1-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.tg-p1-switch i { position: relative; width: 34px; height: 19px; border-radius: 10px; background: #cbd6d1; transition: background .2s ease; }
.tg-p1-switch i::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; content: ""; transition: transform .2s ease; }
.tg-p1-switch input:checked + i { background: var(--p1-green); }
.tg-p1-switch input:checked + i::after { transform: translateX(15px); }
.tg-p1-offer-count { color: var(--p1-muted); font-size: 11px; }
.tg-p1-offers-empty { overflow: hidden; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 9px 28px rgb(20 48 40 / 5%); }
.tg-p1-offers-empty > header { display: flex; gap: 14px; align-items: flex-start; padding: 24px; }
.tg-p1-offers-empty > header > svg { width: 46px; height: 46px; padding: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-p1-offers-empty > header > div { display: grid; grid-gap: 5px; gap: 5px; }
.tg-p1-offers-empty h3 { margin: 0; font-size: 24px; line-height: 1.15; }
.tg-p1-offers-empty > header p { max-width: 750px; margin: 0; color: var(--p1-muted); font-size: 12px; line-height: 1.55; }
.tg-p1-offers-empty > div { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1px; gap: 1px; border-top: 1px solid var(--p1-line); background: var(--p1-line); }
.tg-p1-offers-empty article { display: flex; gap: 10px; min-height: 100px; padding: 17px 20px; background: #fbfcfc; }
.tg-p1-offers-empty article > svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-p1-offers-empty article span { display: grid; align-content: start; grid-gap: 5px; gap: 5px; }
.tg-p1-offers-empty article strong { font-size: 12px; }
.tg-p1-offers-empty article small { color: var(--p1-muted); font-size: 10px; line-height: 1.5; }
.tg-p1-offers-empty > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-top: 1px solid var(--p1-line); }
.tg-p1-offers-empty > footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-size: 11px; font-weight: 850; }
.tg-p1-offer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 14px; gap: 14px; }
.tg-p1-partner-offer { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 10px 28px rgb(20 48 40 / 6%); }
.tg-p1-partner-offer.is-featured { box-shadow: inset 0 3px var(--p1-amber), 0 10px 28px rgb(20 48 40 / 7%); }
.tg-p1-partner-offer > header { display: flex; align-items: center; justify-content: space-between; min-height: 62px; padding: 14px 17px; background: #edf4f1; }
.tg-p1-partner-offer > header > span { color: var(--p1-green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-p1-partner-offer .tg-bookmaker-logo img { max-width: 108px; max-height: 30px; }
.tg-p1-partner-offer-body { display: grid; align-content: start; grid-gap: 16px; gap: 16px; padding: 18px; }
.tg-p1-partner-offer h3 { margin: 0 0 6px; font-size: 19px; }
.tg-p1-partner-offer p { margin: 0; color: var(--p1-muted); line-height: 1.45; }
.tg-p1-partner-proof { display: flex; gap: 9px; padding: 12px; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-p1-partner-proof span { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-partner-proof small { color: var(--p1-muted); }
.tg-p1-partner-offer details { border-top: 1px solid var(--p1-line); }
.tg-p1-partner-offer summary { display: flex; align-items: center; justify-content: space-between; padding: 13px 0 0; color: var(--p1-green); cursor: pointer; font-weight: 800; list-style: none; }
.tg-p1-partner-offer details ul { padding-left: 18px; color: var(--p1-muted); }
.tg-p1-partner-offer details a { display: inline-flex; align-items: center; gap: 5px; color: var(--p1-green); }
.tg-p1-partner-offer > footer { display: grid; grid-gap: 10px; gap: 10px; padding: 0 18px 18px; }
.tg-p1-partner-offer > footer small { color: var(--p1-muted); }
.tg-p1-partner-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; background: var(--p1-green); color: #fff; font-weight: 850; text-decoration: none; }
.tg-p1-offer-responsibility { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 17px; gap: 17px; align-items: flex-start; padding: 22px; border: 1px solid #b8d4ca; border-radius: 7px; background: #edf4f1; color: var(--p1-green); }
.tg-p1-offer-responsibility > svg { margin-top: 2px; }
.tg-p1-offer-responsibility > div { display: grid; grid-gap: 5px; gap: 5px; }
.tg-p1-offer-responsibility h2 { margin: 0; color: var(--p1-ink); font-size: 22px; }
.tg-p1-offer-responsibility p { max-width: 760px; margin: 0; color: var(--p1-muted); font-size: 11px; line-height: 1.55; }
.tg-p1-offer-responsibility ul { display: grid; grid-gap: 5px; gap: 5px; margin: 8px 0 0; padding-left: 18px; color: var(--p1-ink); font-size: 11px; }
.tg-p1-offer-responsibility nav { display: grid; grid-gap: 8px; gap: 8px; min-width: 205px; }
.tg-p1-offer-responsibility a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--p1-green); color: var(--p1-green); font-size: 11px; font-weight: 850; text-decoration: none; }
.tg-p1-offer-responsibility nav a:first-child { background: var(--p1-green); color: #fff; }

/* Responsive P1 flow, matching the approved mobile hierarchy. */
@media (max-width: 980px) {
  .tg-p1-home { grid-template-columns: 1fr; }
  .tg-p1-home .tg-p1-top-opportunity,
  .tg-p1-home .tg-p1-home-racing { grid-column: 1; }
  .tg-racecards-controls,
  .tg-p1-strategy-layout,
  .tg-p1-decision-summary,
  .tg-p1-account-layout { grid-template-columns: 1fr; }
  .tg-p1-race-quality-metrics { grid-template-columns: repeat(3, 1fr); }
  .tg-p1-race-quality-metrics > *:nth-child(4) { border-left: 0; }
  .tg-p1-decision-actions { grid-template-columns: repeat(2, 1fr); }
  .tg-p1-results-summary { grid-template-columns: repeat(2, 1fr); }
  .tg-p1-results-summary > div:nth-child(3) { border-left: 0; }
  .tg-p1-results-filters { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .tg-p1-proof-scale { grid-template-columns: 180px 1fr; }
  .tg-p1-proof-scale > p { grid-column: 1 / -1; }
  .tg-p1-proof-performance { grid-template-columns: repeat(4, 1fr); }
  .tg-p1-proof-performance > header { grid-column: 1 / -1; margin-bottom: 20px; }
  .tg-p1-proof-benchmark { grid-template-columns: repeat(4, 1fr); }
  .tg-p1-proof-benchmark > header,
  .tg-p1-proof-benchmark > p { grid-column: 1 / -1; padding: 0 18px 16px; border-left: 0; }
  .tg-p1-published-audit > div { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .tg-p1-published-audit > div > :where(div, a) { padding: 10px; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-p1-published-audit > div > a { justify-content: flex-start; }
  .tg-p1-profile-grid,
  .tg-p1-profile-lower { grid-template-columns: 1fr 1fr; }
  .tg-p1-spotlight { grid-column: 1 / -1; grid-row: auto; }
  .tg-p1-account-nav { display: flex; overflow-x: auto; }
  .tg-p1-account-nav button { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .tg-p1-account-nav button.is-active { border-bottom-color: var(--p1-green); }
  .tg-p1-offer-list { grid-template-columns: 1fr 1fr; }
  .tg-p1-offer-controls { grid-template-columns: 1fr 1fr; }
  .tg-p1-form-list article { grid-template-columns: minmax(220px, .8fr) 1fr; }
  .tg-p1-form-list article dl { grid-column: 1 / -1; }
  .tg-p1-simulation { position: static; }
  .tg-p1-strategy-offers > div { grid-template-columns: repeat(3, 1fr); }
  .tg-p1-strategy-offers aside { grid-column: 1 / -1; min-height: 92px; }
}

@media (max-width: 700px) {
  .tg-p1-home > * { order: 0; }
  .tg-p1-top-opportunity-grid { grid-template-columns: 1fr; }
  .tg-p1-opportunity-rationale { border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-p1-home .tg-p1-opportunity-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-p1-home .tg-p1-opportunity-facts > div,
  .tg-p1-home .tg-p1-opportunity-facts > div:nth-child(n + 4) { grid-column: span 1; }
  .tg-p1-home .tg-p1-opportunity-facts > div:nth-child(3) { grid-column: 1 / -1; }
  .tg-p1-home-racing-actions { width: 100%; align-items: stretch; flex-direction: column; gap: 9px; }
  .tg-p1-home-racing-actions > a { align-self: flex-start; }
  .tg-p1-home .tg-p1-proof-card { grid-template-columns: 1fr; }
  .tg-p1-home .tg-p1-proof-card > header { flex-direction: column; }
  .tg-p1-home .tg-p1-proof-card-metrics { grid-template-columns: 1fr; }
  .tg-p1-home .tg-p1-proof-card-metrics > div,
  .tg-p1-home .tg-p1-proof-card-metrics > div:first-child { padding: 10px 0; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-p1-home .tg-p1-proof-card > footer { align-items: flex-start; flex-direction: column; }
  .tg-p1-offer footer { align-items: flex-start; flex-direction: column; }
  .tg-p1-page-title { display: grid; align-items: flex-start; }
  .tg-p1-page-title h1 { font-size: 28px; }
  .tg-p1-intelligence-label { grid-column: 1 / -1; }
  .tg-p1-snapshot-metric.is-featured { grid-column: 1 / -1; }
  .tg-p1-top-opportunity-actions { grid-template-columns: 1fr; }
  .tg-p1-workflow { overflow: hidden; }
  .tg-p1-workflow li { display: grid; justify-items: center; grid-gap: 5px; gap: 5px; text-align: center; }
  .tg-p1-workflow li:not(:last-child)::after { top: 17px; right: -50%; width: 100%; }
  .tg-p1-workflow li div strong,
  .tg-p1-workflow li div small { display: none; }
  .tg-p1-workflow li div b { display: block; color: var(--p1-muted); font-size: 9px; }
  .tg-racecards-controls { padding: 12px; }
  .tg-racecards-date-tabs { overflow-x: auto; }
  .tg-racecards-date-tabs button { min-width: 80px; }
  .tg-racecards-filterbar { grid-template-columns: 1fr 1fr; }
  .tg-racecards-filterbar label:first-child { grid-column: 1 / -1; }
  .tg-racecards-meeting { grid-template-columns: 105px minmax(0, 1fr); }
  .tg-racecards-meeting > header { padding: 12px 10px; }
  .tg-racecards-race { min-width: 108px; }
  .tg-selected-race { position: fixed; right: 12px; bottom: 76px; left: 12px; grid-template-columns: 1fr; gap: 12px; max-height: calc(100vh - 130px); overflow-y: auto; }
  .tg-selected-race-signal { padding: 0; border-left: 0; }
  .tg-selected-race-actions { justify-content: stretch; }
  .tg-selected-race-actions :where(a, button) { flex: 1 1; }
  .tg-p1-race-quality-metrics { grid-template-columns: 1fr 1fr; }
  .tg-p1-race-quality-metrics > * { padding: 10px; }
  .tg-p1-race-quality-metrics > *:nth-child(odd) { border-left: 0; }
  .tg-p1-runner-facts { grid-template-columns: repeat(2, 1fr); }
  .tg-p1-runner-facts > div:nth-child(odd) { border-left: 0; }
  .tg-p1-race-pagination > span:not(:empty) { display: none; }
  .tg-p1-runner-filters { margin-inline: -2px; }
  .tg-p1-spotlight-toggle { min-width: 44px; min-height: 44px; }
  .tg-p1-spotlight-toggle span { display: none; }
  .tg-p1-runner-spotlight { margin-inline: 0; padding: 15px; }
  .tg-p1-runner-spotlight > header { flex-direction: column; }
  .tg-p1-reading-modes { width: 100%; }
  .tg-p1-reading-modes button { flex: 1 1; min-height: 44px; }
  .tg-p1-spotlight-angles,
  .tg-p1-race-angles,
  .tg-p1-condition-status { grid-template-columns: 1fr; }
  .tg-p1-spotlight-angles > div { padding: 12px 0; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-p1-spotlight-angles > div:first-child { border-top: 0; }
  .tg-p1-runner-spotlight > footer { align-items: stretch; flex-direction: column; }
  .tg-p1-runner-spotlight > footer button { justify-content: center; min-height: 44px; }
  .tg-p1-evidence-overview { grid-template-columns: 1fr; }
  .tg-p1-evidence-overview > div { padding: 12px 0; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-p1-evidence-overview > div:first-child { border-top: 0; }
  .tg-p1-form-list article { grid-template-columns: 1fr; }
  .tg-p1-form-list article dl { grid-column: auto; grid-template-columns: repeat(3, 1fr); }
  .tg-p1-form-list article dl > div { padding-block: 9px; border-top: 1px solid var(--p1-line); }
  .tg-p1-condition-grid { grid-template-columns: repeat(2, 1fr); }
  .tg-p1-condition-grid > div { border-top: 1px solid var(--p1-line); }
  .tg-p1-condition-grid > div:nth-child(odd) { border-left: 0; }
  .tg-p1-condition-grid > div:nth-child(-n + 2) { border-top: 0; }
  .tg-p1-signal-guide { align-items: flex-start; flex-wrap: wrap; }
  .tg-p1-signal-guide p { width: 100%; margin-left: 0; }
  .tg-p1-decision-actions { grid-template-columns: 1fr 1fr; }
  .tg-p1-decision-actions :where(a, button) { min-height: 96px; }
  .tg-p1-strategy-layout { display: flex; flex-direction: column; }
  .tg-p1-strategy-layout > * { width: 100%; }
  .tg-p1-toolbar { align-items: stretch; flex-direction: column; }
  .tg-p1-toolbar-options { align-items: stretch; flex-direction: column; }
  .tg-p1-currency-filter select { width: 100%; max-width: none; }
  .tg-p1-segmented { width: 100%; }
  .tg-p1-segmented :where(button, a) { flex: 1 1; padding-inline: 10px; }
  .tg-p1-builder-heading { align-items: flex-start; flex-direction: column; }
  .tg-p1-builder-heading > div:last-child { justify-items: start; }
  .tg-p1-selection { grid-template-columns: auto auto minmax(0, 1fr) auto; }
  .tg-p1-selection-metrics { grid-column: 2 / -1; grid-template-columns: repeat(2, 1fr); }
  .tg-p1-selection-metric { padding-block: 8px; border-top: 1px solid var(--p1-line); }
  .tg-p1-selection-metric:nth-child(odd) { border-left: 0; }
  .tg-p1-selection-insight,
  .tg-p1-inline-warning { grid-column: 2 / -1; }
  .tg-p1-selection-insight > div { grid-template-columns: 1fr; }
  .tg-p1-selection-insight > div > div { border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-p1-selection-insight > div > div:first-child { border-top: 0; }
  .tg-p1-simulation { position: static; }
  .tg-p1-strategy-comparison > header,
  .tg-p1-strategy-offers > header { flex-direction: column; }
  .tg-p1-comparison-table { grid-template-columns: 140px repeat(2, 210px); overflow-x: auto; }
  .tg-p1-strategy-offers > div { grid-auto-columns: minmax(210px, 76vw); grid-auto-flow: column; grid-template-columns: none; overflow-x: auto; }
  .tg-p1-strategy-offers aside { grid-column: auto; min-height: 150px; }
  .tg-p1-strategy-notes { grid-template-columns: 1fr; }
  .tg-p1-results-toolbar > span:first-of-type { margin-left: 0; }
  .tg-p1-results-toolbar form { order: -1; width: 100%; }
  .tg-p1-results-toolbar input { flex: 1 1; min-width: 0; }
  .tg-p1-results-summary { grid-template-columns: 1fr 1fr; }
  .tg-p1-results-summary > div { padding: 12px; border-top: 1px solid var(--p1-line); }
  .tg-p1-results-summary > div:nth-child(odd) { border-left: 0; }
  .tg-p1-results-filters { grid-template-columns: 1fr 1fr; padding: 12px; }
  .tg-p1-results-filters label:first-of-type { grid-column: 1 / -1; }
  .tg-p1-results-columns { display: none; }
  .tg-p1-results-list { overflow: hidden; }
  .tg-p1-result-row > summary { grid-template-columns: 1fr 1fr; gap: 12px; min-width: 0; padding: 15px; }
  .tg-p1-result-row > summary > .tg-p1-result-order { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); padding-top: 10px; border-top: 1px solid var(--p1-line); }
  .tg-p1-result-row > summary > .tg-p1-result-found { grid-column: 1; }
  .tg-p1-result-row > summary > .tg-p1-result-review { grid-column: 2; }
  .tg-p1-race-summary { grid-template-columns: 1fr; gap: 13px; min-width: 0; padding: 16px; }
  .tg-p1-race-summary > div { padding: 0 0 13px; border-bottom: 1px solid var(--p1-line); border-left: 0; }
  .tg-p1-race-summary > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .tg-p1-result-comparison { grid-template-columns: 1fr; gap: 14px; }
  .tg-p1-result-comparison > div { padding: 0 0 12px; border-left: 0; border-bottom: 1px solid var(--p1-line); }
  .tg-p1-proof-scale { grid-template-columns: 1fr; }
  .tg-p1-proof-performance,
  .tg-p1-proof-benchmark { grid-template-columns: 1fr 1fr; }
  .tg-p1-proof-performance > header,
  .tg-p1-proof-benchmark > header,
  .tg-p1-proof-benchmark > p { grid-column: 1 / -1; }
  .tg-p1-proof-performance > div,
  .tg-p1-proof-benchmark > div { padding: 12px; border-top: 1px solid var(--p1-line); }
  .tg-p1-proof-performance > div:nth-of-type(odd),
  .tg-p1-proof-benchmark > div:nth-of-type(odd) { border-left: 0; }
  .tg-p1-proof-trend { overflow-x: auto; }
  .tg-p1-proof-trend > div { min-width: 48px; }
  .tg-p1-proof-date { width: 100%; }
  .tg-p1-proof-date select { flex: 1 1; min-width: 0; }
  .tg-p1-proof-audits { padding-inline: 12px; }
  .tg-p1-proof-audit-columns { display: none; }
  .tg-p1-published-audit > summary { grid-template-columns: 1fr auto auto; gap: 9px; min-height: 72px; padding-inline: 6px; }
  .tg-p1-published-audit > summary > span:nth-child(2),
  .tg-p1-published-audit > summary > span:nth-child(4),
  .tg-p1-published-audit > summary > span:nth-child(5) { display: none; }
  .tg-p1-published-audit > div { grid-template-columns: 1fr 1fr; }
  .tg-p1-proof-actions { align-items: stretch; flex-direction: column; }
  .tg-p1-proof-actions a { justify-content: center; }
  .tg-p1-proof-takeaways { grid-template-columns: 1fr; }
  .tg-p1-proof-takeaways > div { padding: 13px 0; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-p1-changes { grid-template-columns: 1fr 1fr; }
  .tg-p1-changes > span:first-child { grid-column: 1 / -1; margin-bottom: 9px; }
  .tg-p1-changes > div { padding: 10px; border: 0; }
  .tg-p1-tracker-table > header { display: none; }
  .tg-p1-tracker-table > article { grid-template-columns: 1fr 1fr; }
  .tg-p1-tracker-person,
  .tg-p1-row-actions { grid-column: 1 / -1; }
  .tg-p1-row-actions { justify-content: flex-start; }
  .tg-p1-alert-list article { grid-template-columns: auto 1fr; }
  .tg-p1-alert-list article :where(a, button) { grid-column: 2; }
  .tg-p1-profile-header { grid-template-columns: auto 1fr; }
  .tg-p1-profile-actions { grid-column: 1 / -1; }
  .tg-p1-profile-actions { width: 100%; }
  .tg-p1-profile-actions button { flex: 1 1; justify-content: center; }
  .tg-p1-profile-snapshot { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tg-p1-profile-snapshot > div { padding: 10px; border: 0; }
  .tg-p1-profile-snapshot a { grid-column: 1 / -1; justify-content: center; }
  .tg-p1-profile-grid,
  .tg-p1-profile-lower { grid-template-columns: 1fr; }
  .tg-p1-spotlight { grid-column: auto; }
  .tg-p1-evidence-angle { grid-template-columns: 1fr; }
  .tg-p1-stat-row { grid-template-columns: repeat(3, 1fr); }
  .tg-p1-entry { grid-template-columns: 1fr 1fr; }
  .tg-p1-account-layout { gap: 14px; }
  .tg-p1-account-metrics { grid-template-columns: 1fr 1fr; }
  .tg-p1-account-metrics > div { padding: 10px; border-top: 1px solid var(--p1-line); }
  .tg-p1-account-metrics > div:nth-child(odd) { border-left: 0; }
  .tg-p1-preference-group { grid-template-columns: 1fr; gap: 12px; }
  .tg-p1-theme-options { grid-template-columns: 1fr; }
  .tg-p1-field-grid { grid-template-columns: 1fr 1fr; }
  .tg-p1-preferences-save { bottom: 78px; }
  .tg-p1-offer-guidance > div:last-child,
  .tg-p1-offer-list,
  .tg-p1-offer-controls { grid-template-columns: 1fr; }
  .tg-p1-offer-safety > div,
  .tg-p1-offers-empty > div { grid-template-columns: 1fr; }
  .tg-p1-offer-safety > footer,
  .tg-p1-offers-empty > footer { align-items: flex-start; flex-direction: column; }
  .tg-p1-offer-responsibility { grid-template-columns: 1fr; }
  .tg-p1-offer-responsibility nav { width: 100%; min-width: 0; }
  .tg-p1-offer-responsibility a { grid-column: auto; }
  .tg-p1-opportunity-strip {
    display: flex;
    gap: 0;
    padding: 14px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }
  .tg-p1-opportunity-strip-title { flex: 0 0 112px; }
  .tg-p1-opportunity-strip > a {
    flex: 0 0 min(170px, 65vw);
    scroll-snap-align: start;
  }
}

/* P1 final design foundation: shared shell, knowledge and research surfaces. */
.tg-shell {
  color: var(--p1-ink);
  font-size: 16px;
  line-height: 1.5;
}
.tg-main { box-sizing: border-box; }

.tg-skip-link {
  position: fixed;
  z-index: 200;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--p1-amber);
  color: var(--p1-ink);
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
}
.tg-skip-link:focus { transform: translateY(0); }
.tg-main:focus { outline: none; }

.tg-shell :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--p1-focus) 55%, transparent);
  outline-offset: 3px;
}

.tg-p1-page :where(h1, h2, h3) { color: var(--p1-heading); }
.tg-p1-page-title > div:first-child > span,
.tg-p1-section-heading > div > span { font-size: 12px; letter-spacing: .06em; }
.tg-p1-page-title > div:first-child > p { max-width: 790px; color: var(--p1-muted); font-size: 16px; line-height: 1.55; }
.tg-p1-page-meta { font-size: 14px; }

.tg-p1-header-inner { position: relative; }
.tg-p1-desktop-nav { gap: clamp(14px, 1.6vw, 24px); }
.tg-p1-desktop-nav a { min-height: 44px; color: var(--p1-ink); }
.tg-p1-desktop-nav a:hover,
.tg-p1-desktop-nav a.is-active { color: var(--p1-green); }
.tg-p1-desktop-nav a.is-active::after { background: var(--p1-green); }
.tg-p1-search-submit,
.tg-p1-mobile-search-trigger { display: none; }
.tg-p1-header-actions :where(a, button) { min-width: 44px; min-height: 44px; }

.tg-footer .tg-footer-support-links a {
  display: grid;
  grid-template-columns: minmax(100px, .8fr) minmax(90px, 1fr) auto;
  min-height: 84px;
}
.tg-footer-support-wordmark {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
}
.tg-footer-support-copy { display: grid; grid-gap: 3px; gap: 3px; padding-left: 11px; border-left: 1px solid rgb(255 255 255 / 16%); }
.tg-footer-support-copy strong { color: #fff; font-size: 12px; }
.tg-footer-support-copy small { color: #adc5bc; font-size: 12px; line-height: 1.35; }

.tg-p1-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #b8ccc5;
  border-radius: 4px;
  color: var(--p1-green);
  font-weight: 800;
  text-decoration: none;
}
.tg-p1-secondary-action:hover { border-color: var(--p1-green); background: var(--p1-green-soft); }

.tg-p1-hub-overview { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; overflow: hidden; border: 1px solid var(--p1-line); background: var(--p1-line); }
.tg-p1-hub-card { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 14px; gap: 14px; min-height: 210px; padding: 24px; background: #fff; }
.tg-p1-hub-card > svg { color: var(--p1-green); }
.tg-p1-hub-card > div { align-self: start; }
.tg-p1-hub-card h2 { margin: 0 0 8px; font-size: 22px; }
.tg-p1-hub-card p { margin: 0; color: var(--p1-muted); font-size: 15px; line-height: 1.55; }
.tg-p1-hub-card > a { grid-column: 2; align-self: end; display: inline-flex; align-items: center; gap: 7px; color: var(--p1-green); font-size: 14px; font-weight: 850; text-decoration: none; }
.tg-p1-hub-card > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tg-p1-hub-proof { display: grid; grid-template-columns: minmax(270px, .9fr) minmax(260px, 1fr) auto; grid-gap: 24px; gap: 24px; align-items: center; padding: 22px 24px; background: var(--p1-green-dark); color: #fff; }
.tg-p1-hub-proof > div { display: flex; align-items: center; gap: 12px; }
.tg-p1-hub-proof > div > svg { flex: 0 0 auto; color: var(--p1-amber); }
.tg-p1-hub-proof > div > span { display: grid; grid-gap: 3px; gap: 3px; }
.tg-p1-hub-proof strong { color: #fff; }
.tg-p1-hub-proof small,
.tg-p1-hub-proof p { color: #bdd1ca; font-size: 14px; }
.tg-p1-hub-proof p { margin: 0; }
.tg-p1-hub-proof > a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 14px; border-radius: 4px; background: var(--p1-amber); color: var(--p1-ink); font-size: 14px; font-weight: 850; text-decoration: none; }

.tg-p1-explorer-method { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; border: 1px solid var(--p1-line); background: #fff; }
.tg-p1-explorer-method > div { display: flex; align-items: center; gap: 11px; }
.tg-p1-explorer-method > div > svg { color: var(--p1-green); }
.tg-p1-explorer-method > div > span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-p1-explorer-method small { color: var(--p1-muted); font-size: 14px; }
.tg-p1-explorer-method details { position: relative; }
.tg-p1-explorer-method summary { display: flex; align-items: center; gap: 6px; min-height: 44px; color: var(--p1-green); font-size: 14px; font-weight: 850; cursor: pointer; }
.tg-p1-explorer-method details p { position: absolute; z-index: 4; top: 42px; right: 0; width: min(440px, 80vw); margin: 0; padding: 16px; border: 1px solid var(--p1-line); background: #fff; box-shadow: 0 16px 38px rgb(14 49 40 / 15%); color: var(--p1-muted); font-size: 14px; line-height: 1.55; }

.tg-p1-explorer-list { overflow: hidden; border: 1px solid var(--p1-line); background: #fff; }
.tg-p1-explorer-list > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 14px 18px; border-bottom: 1px solid var(--p1-line); background: #eef4f1; }
.tg-p1-explorer-list > header > div { display: grid; grid-gap: 2px; gap: 2px; }
.tg-p1-explorer-list > header span { color: var(--p1-muted); font-size: 14px; }
.tg-p1-explorer-card { display: grid; grid-template-columns: 38px minmax(210px, 1.4fr) minmax(150px, .75fr) minmax(300px, 1fr) auto; grid-template-rows: auto auto; grid-gap: 12px 18px; gap: 12px 18px; align-items: center; min-width: 0; padding: 18px; border-top: 1px solid var(--p1-line); }
.tg-p1-explorer-list > .tg-p1-explorer-card:first-of-type { border-top: 0; }
.tg-p1-explorer-card:hover { background: #fafcfb; }
.tg-p1-explorer-rank { grid-row: 1 / -1; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--p1-green); color: #fff; font-weight: 900; }
.tg-p1-explorer-race { min-width: 0; }
.tg-p1-explorer-race > span { color: var(--p1-green); font-size: 14px; font-weight: 850; }
.tg-p1-explorer-race h2 { margin: 3px 0; overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-explorer-race small { color: var(--p1-muted); font-size: 13px; }
.tg-p1-explorer-pick { display: grid; grid-gap: 3px; gap: 3px; min-width: 0; }
.tg-p1-explorer-pick > span,
.tg-p1-explorer-card dt { color: var(--p1-muted); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.tg-p1-explorer-pick > strong { overflow: hidden; color: var(--p1-green); text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-explorer-card dl { display: grid; grid-template-columns: repeat(4, minmax(65px, 1fr)); margin: 0; }
.tg-p1-explorer-card dl > div { min-width: 0; padding: 2px 10px; border-left: 1px solid var(--p1-line); }
.tg-p1-explorer-card dl > div:first-child { border-left: 0; }
.tg-p1-explorer-card dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-p1-explorer-card dd { margin: 3px 0 0; font-size: 15px; font-weight: 850; }
.tg-p1-explorer-freshness { grid-column: 2 / 5; display: flex; align-items: center; gap: 6px; color: var(--p1-muted); font-size: 12px; }
.tg-p1-explorer-freshness svg:nth-of-type(2) { margin-left: 8px; }
.tg-p1-explorer-card > a { grid-column: 5; grid-row: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--p1-green); border-radius: 4px; color: var(--p1-green); font-size: 13px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tg-p1-explorer-card > a:hover { background: var(--p1-green); color: #fff; }

.tg-p1-knowledge-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; grid-gap: 20px; gap: 20px; align-items: start; }
.tg-p1-metric-dictionary { border: 1px solid var(--p1-line); }
.tg-p1-metric-dictionary details + details { border-top: 1px solid var(--p1-line); }
.tg-p1-metric-dictionary summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; padding: 14px 16px; cursor: pointer; list-style: none; }
.tg-p1-metric-dictionary summary::-webkit-details-marker { display: none; }
.tg-p1-metric-dictionary summary > span:first-child { display: grid; grid-gap: 4px; gap: 4px; }
.tg-p1-metric-dictionary summary strong { color: var(--p1-heading); }
.tg-p1-metric-dictionary summary small { color: var(--p1-muted); font-size: 14px; line-height: 1.45; }
.tg-p1-metric-dictionary summary > span:last-child { color: var(--p1-green); font-size: 22px; transition: transform 160ms ease; }
.tg-p1-metric-dictionary details[open] summary { background: #f3f8f6; }
.tg-p1-metric-dictionary details[open] summary > span:last-child { transform: rotate(45deg); }
.tg-p1-metric-dictionary details > div { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; padding: 0 16px 16px; background: #f3f8f6; }
.tg-p1-metric-dictionary details p { display: grid; grid-gap: 4px; gap: 4px; margin: 0; color: var(--p1-muted); font-size: 14px; }
.tg-p1-metric-dictionary details p b { color: var(--p1-ink); }
.tg-p1-metric-dictionary details p.is-caution { grid-column: 1 / -1; grid-template-columns: auto 1fr; padding: 12px; border-left: 3px solid var(--p1-amber); background: var(--p1-amber-soft); }
.tg-p1-knowledge-path { display: grid; grid-gap: 15px; gap: 15px; padding: 22px; background: var(--p1-green-dark); color: #fff; }
.tg-p1-knowledge-path > svg { color: var(--p1-amber); }
.tg-p1-knowledge-path h2 { margin: 0; color: #fff; font-size: 23px; }
.tg-p1-knowledge-path ol { display: grid; grid-gap: 15px; gap: 15px; margin: 0; padding: 0; list-style: none; }
.tg-p1-knowledge-path li { display: grid; grid-template-columns: auto 1fr; grid-gap: 9px; gap: 9px; }
.tg-p1-knowledge-path li > svg { color: #82e1bc; }
.tg-p1-knowledge-path li span { display: grid; grid-gap: 3px; gap: 3px; }
.tg-p1-knowledge-path li small { color: #bdd1ca; font-size: 13px; }
.tg-p1-knowledge-path > a { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid rgb(255 255 255 / 25%); color: #fff; font-size: 14px; font-weight: 800; text-decoration: none; }
.tg-p1-knowledge-path > a:first-of-type { border-color: var(--p1-amber); background: var(--p1-amber); color: var(--p1-ink); }

@media (max-width: 1100px) {
  .tg-p1-header-inner { gap: 14px; }
  .tg-p1-header .tg-brand-logo { flex-basis: 154px; width: 154px; }
  .tg-p1-desktop-nav { gap: 13px; }
  .tg-p1-desktop-nav a { font-size: 12px; }
  .tg-p1-search { min-width: 170px; }
  .tg-p1-explorer-card { grid-template-columns: 38px minmax(200px, 1fr) minmax(150px, .7fr) minmax(250px, 1fr); }
  .tg-p1-explorer-card > a { grid-column: 2 / -1; grid-row: 3; justify-self: start; }
}

@media (max-width: 900px) {
  .tg-p1-hub-proof { grid-template-columns: 1fr auto; }
  .tg-p1-hub-proof > p { grid-column: 1 / -1; grid-row: 2; }
  .tg-p1-explorer-card { grid-template-columns: 38px minmax(0, 1fr) minmax(190px, .7fr); }
  .tg-p1-explorer-race { grid-column: 2; }
  .tg-p1-explorer-pick { grid-column: 3; }
  .tg-p1-explorer-card dl { grid-column: 2 / -1; grid-row: 2; }
  .tg-p1-explorer-freshness { grid-column: 2 / -1; grid-row: 3; }
  .tg-p1-explorer-card > a { grid-column: 2 / -1; grid-row: 4; }
  .tg-p1-knowledge-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .tg-p1-mobile-search-trigger { display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--p1-ink); }
  .tg-p1-search,
  .tg-p1-search:not(.is-open) { display: none; }
  .tg-p1-search.is-open {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 4;
    display: flex;
    width: 100%;
    max-width: none;
    height: 48px;
    margin: 0;
    padding: 0 7px 0 13px;
    border: 1px solid #a8bdb6;
    background: #fff;
    box-shadow: 0 12px 30px rgb(16 48 39 / 18%);
  }
  .tg-p1-search.is-open input { position: static; width: auto; height: auto; opacity: 1; pointer-events: auto; }
  .tg-p1-search-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 11px; border: 0; border-radius: 4px; background: var(--p1-green); color: #fff; font-size: 13px; font-weight: 800; }
  .tg-p1-mobile-menu a { min-height: 44px; }
  .tg-p1-mobile-bottom a { min-height: 56px; font-size: 11px; }
  .tg-p1-header-actions { gap: 0; }
  .tg-p1-header .tg-brand-logo { flex-basis: 132px; width: 132px; }
  .tg-footer .tg-footer-support-links a { grid-template-columns: minmax(115px, .8fr) minmax(0, 1fr) auto; }
  .tg-p1-hub-grid { grid-template-columns: 1fr; }
  .tg-p1-hub-card { min-height: 180px; padding: 20px; }
  .tg-p1-hub-proof { grid-template-columns: 1fr; gap: 14px; }
  .tg-p1-hub-proof > p,
  .tg-p1-hub-proof > a { grid-column: 1; grid-row: auto; }
  .tg-p1-explorer-method { align-items: flex-start; flex-direction: column; gap: 6px; }
  .tg-p1-explorer-method details { width: 100%; }
  .tg-p1-explorer-method details p { position: static; width: 100%; box-shadow: none; }
  .tg-p1-explorer-card { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto; gap: 13px; padding: 16px 14px; }
  .tg-p1-explorer-rank { grid-column: 1; grid-row: 1; }
  .tg-p1-explorer-race,
  .tg-p1-explorer-pick,
  .tg-p1-explorer-card dl,
  .tg-p1-explorer-freshness,
  .tg-p1-explorer-card > a { grid-column: 2; grid-row: auto; }
  .tg-p1-explorer-card dl { grid-template-columns: 1fr 1fr; gap: 1px; background: var(--p1-line); }
  .tg-p1-explorer-card dl > div { padding: 10px; border: 0; background: #fff; }
  .tg-p1-explorer-freshness { align-items: flex-start; flex-wrap: wrap; }
  .tg-p1-explorer-card > a { width: 100%; }
  .tg-p1-metric-dictionary details > div { grid-template-columns: 1fr; }
  .tg-p1-metric-dictionary details p.is-caution { grid-column: 1; }
}

@media (max-width: 390px) {
  .tg-p1-header .tg-brand-logo { flex-basis: 118px; width: 118px; }
  .tg-p1-mobile-bottom span { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tg-p1-explorer-card { grid-template-columns: 30px minmax(0, 1fr); }
  .tg-footer .tg-footer-support-links a { grid-template-columns: minmax(0, 1fr) auto; }
  .tg-footer-support-copy { grid-column: 1; grid-row: 2; padding: 8px 0 0; border-top: 1px solid rgb(255 255 255 / 16%); border-left: 0; }
}

/* P1 final checkpoint 1: approved shared shell and compact footer. */
.tg-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.tg-p1-header {
  border-bottom-color: #dbe6e2;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 4px 18px rgb(11 54 43 / 5%);
}
.tg-p1-header-inner { min-height: 64px; }
.tg-p1-header .tg-brand-logo { flex-basis: 180px; width: 180px; }
.tg-p1-desktop-nav a { font-weight: 780; }
.tg-p1-search { background: #f7faf9; }

.tg-footer {
  margin-top: 44px;
  border-top: 0;
  background: #003d32;
}
.tg-footer-main {
  padding: 48px 0 42px;
  border-top: 1px solid rgb(255 255 255 / 13%);
}
.tg-footer-resources { padding: 28px 0; }
.tg-footer-bottom { padding: 22px 0 28px; }
.tg-footer .tg-footer-support-links a { background: rgb(255 255 255 / 6%); }

/* P1 final checkpoint 2: Home composition from image-20261011-204148. */
.tg-p1-home-final {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  color: var(--p1-ink);
}
.tg-p1-home-final > * { min-width: 0; }
.tg-p1-home-final :where(h1, h2, h3) { color: var(--p1-heading); }

.tg-home-outlook {
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(0, 2.2fr);
  grid-gap: 14px;
  gap: 14px;
  align-items: stretch;
}
.tg-home-outlook > header { display: grid; align-content: center; padding: 8px 8px 8px 0; }
.tg-home-outlook > header > span,
.tg-home-opportunity-main > header > div:first-child > span,
.tg-home-racing-heading > div > span,
.tg-home-insights > header span {
  color: var(--p1-green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tg-home-outlook h1 { margin: 3px 0 4px; font-size: clamp(31px, 3.1vw, 42px); line-height: 1; }
.tg-home-outlook p { margin: 0; color: var(--p1-muted); font-size: 15px; }
.tg-home-outlook-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 8px; gap: 8px; }
.tg-home-outlook-metrics article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-gap: 11px;
  gap: 11px;
  align-items: center;
  min-height: 104px;
  padding: 16px;
  border: 1px solid #e2ebe8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 7px 22px rgb(20 48 40 / 5%);
}
.tg-home-outlook-metrics article > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: #e9f8f3; color: var(--p1-green); }
.tg-home-outlook-metrics article:nth-child(2) > span { background: #edf5ff; color: #356fd6; }
.tg-home-outlook-metrics article:nth-child(3) > span { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-home-outlook-metrics article:nth-child(4) > span { background: #f1efff; color: #6256bf; }
.tg-home-outlook-metrics article > div { display: grid; min-width: 0; }
.tg-home-outlook-metrics strong { color: var(--p1-heading); font-size: 26px; line-height: 1; }
.tg-home-outlook-metrics b { margin-top: 4px; font-size: 13px; }
.tg-home-outlook-metrics small { margin-top: 3px; color: var(--p1-muted); font-size: 12px; line-height: 1.25; }

.tg-home-opportunity {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr);
  overflow: hidden;
  border: 1px solid var(--p1-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(20 48 40 / 6%);
}
.tg-home-opportunity-main { min-width: 0; padding: 21px 22px; }
.tg-home-opportunity-main > header > div:first-child { display: flex; align-items: center; gap: 12px; }
.tg-home-opportunity-main > header h2 { margin: 7px 0 3px; font-size: 30px; line-height: 1; }
.tg-home-opportunity-main > header p { margin: 0; color: var(--p1-muted); font-size: 14px; }
.tg-home-snapshot-time { display: block; margin-top: 5px; color: #71837c; font-size: 12px; }
.tg-home-opportunity-runner { display: flex; align-items: center; gap: 15px; margin-top: 18px; }
.tg-home-opportunity-runner > div { display: grid; grid-gap: 4px; gap: 4px; min-width: 0; }
.tg-home-opportunity-runner strong { overflow: hidden; color: var(--p1-heading); font-size: 25px; text-overflow: ellipsis; white-space: nowrap; }
.tg-home-opportunity-runner span { color: var(--p1-muted); font-size: 13px; }
.tg-home-opportunity-runner i { display: inline-block; width: 1px; height: 12px; margin-inline: 8px; background: var(--p1-line); vertical-align: middle; }
.tg-home-opportunity-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 17px; border: 1px solid var(--p1-line); background: var(--p1-line); grid-gap: 1px; gap: 1px; }
.tg-home-opportunity-stats > div { display: grid; justify-items: center; grid-gap: 5px; gap: 5px; min-width: 0; padding: 14px 8px; background: #fff; text-align: center; }
.tg-home-opportunity-stats strong { color: var(--p1-heading); font-size: 20px; line-height: 1; }
.tg-home-opportunity-stats span { color: var(--p1-muted); font-size: 11px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.tg-home-opportunity-stats .is-positive strong { color: var(--p1-green-bright); }
.tg-home-opportunity-stats .is-negative strong { color: var(--p1-red); }
.tg-home-opportunity-alert { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 12px; border-left: 3px solid var(--p1-amber); background: var(--p1-amber-soft); color: #74520b; font-size: 13px; }
.tg-home-opportunity-alert svg { width: 17px; flex: 0 0 auto; }
.tg-home-opportunity-alert.is-positive { border-color: var(--p1-green-bright); background: var(--p1-green-soft); color: var(--p1-green); }
.tg-home-opportunity-why { display: grid; align-content: start; grid-gap: 16px; gap: 16px; padding: 23px; border-left: 1px solid var(--p1-line); background: #fbfdfc; }
.tg-home-opportunity-why h2 { margin: 0; font-size: 22px; }
.tg-home-opportunity-why > p { margin: 0; color: var(--p1-muted); font-size: 14px; }
.tg-home-opportunity-why ul { display: grid; grid-gap: 10px; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tg-home-opportunity-why li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 8px; gap: 8px; color: #40534d; font-size: 13px; line-height: 1.4; }
.tg-home-opportunity-why li svg { width: 18px; color: var(--p1-green-bright); }
.tg-home-metric-help { border-top: 1px solid var(--p1-line); padding-top: 12px; color: var(--p1-muted); font-size: 13px; }
.tg-home-metric-help summary { width: -moz-fit-content; width: fit-content; color: var(--p1-green); font-weight: 850; cursor: pointer; }
.tg-home-metric-help p { margin: 9px 0; line-height: 1.45; }
.tg-home-metric-help a { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-weight: 850; text-decoration: none; }
.tg-home-metric-help a svg { width: 15px; }
.tg-home-opportunity-why > div:last-child { display: grid; grid-gap: 9px; gap: 9px; align-self: end; }
.tg-home-primary-action,
.tg-home-secondary-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 13px; border: 1px solid var(--p1-green); border-radius: 4px; color: var(--p1-green); font-size: 14px; font-weight: 850; text-decoration: none; }
.tg-home-primary-action { border-color: var(--p1-amber); background: var(--p1-amber); color: #18261f; }
.tg-home-primary-action svg,
.tg-home-secondary-action svg { width: 17px; }
.tg-home-opportunity.is-empty .tg-p1-empty { padding-inline: 0; }

.tg-home-racing { overflow: hidden; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 8px 26px rgb(20 48 40 / 5%); }
.tg-home-racing-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 18px 20px 13px; }
.tg-home-racing-heading h2 { margin: 2px 0 1px; font-size: 27px; line-height: 1.05; }
.tg-home-racing-heading p { margin: 0; color: var(--p1-muted); font-size: 14px; }
.tg-home-racing-heading > a,
.tg-home-insights > header > a { display: inline-flex; align-items: center; gap: 7px; color: var(--p1-green); font-size: 14px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tg-home-day-tabs { display: flex; gap: 4px; padding: 0 20px 10px; overflow-x: auto; }
.tg-home-day-tabs button { display: grid; min-width: 118px; min-height: 54px; padding: 7px 13px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-heading); font: inherit; text-align: left; cursor: pointer; }
.tg-home-day-tabs button small { color: var(--p1-muted); font-size: 12px; }
.tg-home-day-tabs button.is-active { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-home-day-tabs button.is-active small { color: #d9eee7; }
.tg-home-racing-toolbar { display: grid; grid-template-columns: minmax(220px, 1fr) 170px 170px auto; grid-gap: 8px; gap: 8px; align-items: center; padding: 10px 20px; border-block: 1px solid var(--p1-line); background: #f8fbfa; }
.tg-home-racing-toolbar label { min-width: 0; }
.tg-home-racing-toolbar :where(input, select) { width: 100%; min-height: 42px; border: 1px solid #cddbd6; border-radius: 4px; background: #fff; color: var(--p1-ink); font: inherit; font-size: 13px; }
.tg-home-racing-toolbar select { padding: 8px 11px; }
.tg-home-racing-search { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 10px; border: 1px solid #cddbd6; border-radius: 4px; background: #fff; color: var(--p1-muted); }
.tg-home-racing-search svg { width: 17px; flex: 0 0 auto; }
.tg-home-racing-search input { min-height: 38px; padding: 0; border: 0; outline: 0; }
.tg-home-racing-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 12px; color: var(--p1-muted); font-size: 11px; }
.tg-home-racing-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.tg-home-racing-legend span::before { width: 8px; height: 8px; border-radius: 50%; background: #4f84d8; content: ""; }
.tg-home-racing-legend .is-in-progress::before { background: var(--p1-green-bright); }
.tg-home-racing-legend .is-live::before { background: #ef3f49; }
.tg-home-racing-legend .is-next::before { background: #f4a900; }
.tg-home-racing-legend .is-pro::before { display: none; }
.tg-home-racing-legend svg { width: 13px; }
.tg-home-racing-state { margin: 0; padding: 10px 20px; color: var(--p1-muted); font-size: 13px; }
.tg-home-meetings { display: grid; }
.tg-home-meeting { display: grid; grid-template-columns: 150px minmax(0, 1fr) 48px; min-width: 0; min-height: 112px; border-top: 1px solid var(--p1-line); }
.tg-home-meeting:first-child { border-top: 0; }
.tg-home-meeting > header { display: grid; align-content: center; grid-gap: 4px; gap: 4px; padding: 16px; }
.tg-home-meeting > header > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tg-home-meeting > header strong { overflow: hidden; color: var(--p1-heading); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.tg-home-meeting > header svg { width: 19px; color: var(--p1-amber-dark); }
.tg-home-meeting > header span,
.tg-home-meeting > header small { color: var(--p1-muted); font-size: 12px; }
.tg-home-meeting > header small { display: inline-flex; color: var(--p1-green); }
.tg-home-meeting-races { display: grid; grid-auto-columns: minmax(128px, 1fr); grid-auto-flow: column; overflow-x: auto; }
.tg-home-meeting-races > a { display: grid; align-content: center; grid-gap: 7px; gap: 7px; min-width: 128px; padding: 12px; border-left: 1px solid var(--p1-line); color: var(--p1-ink); text-decoration: none; }
.tg-home-meeting-races > a > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tg-home-meeting-races > a > span:first-child strong { color: var(--p1-heading); font-size: 15px; }
.tg-home-meeting-races > a > span:first-child b { padding: 3px 5px; border-radius: 3px; background: #e9f1ff; color: #356fd6; font-size: 9px; text-transform: uppercase; }
.tg-home-meeting-races > a.is-live > span:first-child b { background: #ffe7e7; color: #d52934; }
.tg-home-meeting-races > a.is-in-progress > span:first-child b { background: var(--p1-green-soft); color: var(--p1-green); }
.tg-home-meeting-races > a.is-next > span:first-child b { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-home-meeting-races > a.is-result,
.tg-home-meeting-races > a.is-result-pending { background: #f7f9f8; }
.tg-home-meeting-races > a.is-result { background: #f7f9f8; opacity: .72; }
.tg-home-meeting-races > a > small { color: var(--p1-green); font-size: 11px; }
.tg-home-race-pick { display: grid !important; grid-template-columns: auto minmax(0, 1fr); grid-gap: 7px !important; gap: 7px !important; align-items: center !important; justify-content: initial !important; }
.tg-home-race-pick em { overflow: hidden; color: var(--p1-heading); font-size: 12px; font-style: normal; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.tg-home-meeting-more { display: grid; place-items: center; border-left: 1px solid var(--p1-line); color: var(--p1-green); }
.tg-home-racing-empty { display: grid; grid-gap: 4px; gap: 4px; padding: 28px 20px; border-top: 1px solid var(--p1-line); }
.tg-home-racing-empty p { margin: 0; color: var(--p1-muted); }

.tg-home-upgrade { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 13px; gap: 13px; align-items: center; padding: 16px 20px; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-home-upgrade > svg { color: var(--p1-amber-dark); }
.tg-home-upgrade > div { display: grid; }
.tg-home-upgrade strong { color: var(--p1-heading); font-size: 16px; }
.tg-home-upgrade span { color: var(--p1-muted); font-size: 13px; }
.tg-home-upgrade > a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 14px; border-radius: 4px; background: var(--p1-amber); color: var(--p1-ink); font-size: 13px; font-weight: 850; text-decoration: none; }

.tg-home-lightning { display: grid; grid-template-columns: auto minmax(0, 1fr) 225px; grid-gap: 16px; gap: 16px; align-items: center; padding: 20px; border-radius: 7px; background: linear-gradient(110deg, #004c3e, #00392f); color: #fff; box-shadow: 0 12px 28px rgb(0 49 40 / 17%); }
.tg-home-lightning-icon { display: grid; width: 48px; height: 48px; place-items: center; border: 1px solid rgb(244 181 31 / 45%); border-radius: 7px; color: var(--p1-amber); }
.tg-home-lightning > div:nth-child(2) > span { color: var(--p1-amber); font-size: 11px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.tg-home-lightning h2 { margin: 3px 0 5px; color: #fff; font-size: 23px; }
.tg-home-lightning p { max-width: 690px; margin: 6px 0 0; color: #c9ddd6; font-size: 13px; }
.tg-home-lightning-signals { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-home-lightning-signals b { padding: 3px 7px; border-radius: 3px; background: var(--p1-amber); color: var(--p1-ink); font-size: 10px; }
.tg-home-lightning-signals b.is-caution { background: #fff0b9; color: #795100; }
.tg-home-lightning-signals b.is-positive { background: #bfead9; color: #075440; }
.tg-home-lightning-actions { display: grid; grid-gap: 8px; gap: 8px; }
.tg-home-lightning-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 4px; color: #fff; font-size: 13px; font-weight: 850; text-decoration: none; }
.tg-home-lightning-actions a:first-child { border-color: var(--p1-amber); background: var(--p1-amber); color: var(--p1-ink); }

.tg-home-insights { display: grid; grid-gap: 14px; gap: 14px; padding: 20px; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; }
.tg-home-insights > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.tg-home-insights h2 { margin: 2px 0; font-size: 27px; }
.tg-home-insights > header p { margin: 0; color: var(--p1-muted); font-size: 14px; }
.tg-home-insights > div { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-gap: 10px; gap: 10px; }
.tg-home-insights article { position: relative; min-height: 205px; overflow: hidden; border-radius: 5px; background-image: linear-gradient(90deg, rgb(3 29 24 / 91%), rgb(3 29 24 / 43%)), url("/images/auth/horse-racing-auth-bg.png"); background-position: center 58%; background-size: cover; }
.tg-home-insights article:nth-child(2) { background-position: 38% 45%; }
.tg-home-insights article:nth-child(3) { background-position: 70% 57%; }
.tg-home-insights article > div { position: absolute; inset: auto 0 0; display: grid; grid-gap: 5px; gap: 5px; padding: 18px; color: #fff; }
.tg-home-insights article span { color: #d5e8e1; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.tg-home-insights article h3 { max-width: 370px; margin: 0; color: #fff; font-size: 21px; line-height: 1.12; }
.tg-home-insights article p { max-width: 380px; margin: 0; color: #d5e8e1; font-size: 12px; line-height: 1.35; }
.tg-home-insights article a { display: inline-flex; width: -moz-fit-content; width: fit-content; align-items: center; gap: 6px; min-height: 36px; margin-top: 5px; padding: 6px 10px; border-radius: 3px; background: #fff; color: var(--p1-green); font-size: 12px; font-weight: 850; text-decoration: none; }

@media (max-width: 1020px) {
  .tg-home-outlook { grid-template-columns: 1fr; }
  .tg-home-outlook > header { padding-bottom: 4px; }
  .tg-home-opportunity { grid-template-columns: 1fr; }
  .tg-home-opportunity-why { border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-home-racing-toolbar { grid-template-columns: minmax(200px, 1fr) 150px 150px; }
  .tg-home-racing-legend { grid-column: 1 / -1; justify-content: flex-start; }
  .tg-home-lightning { grid-template-columns: auto minmax(0, 1fr); }
  .tg-home-lightning-actions { grid-column: 2; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .tg-p1-header .tg-brand-logo { flex-basis: 136px; width: 136px; }
  .tg-home-outlook-metrics { grid-template-columns: 1fr 1fr; }
  .tg-home-outlook-metrics article { min-height: 96px; padding: 13px; }
  .tg-home-opportunity-main { padding: 18px 16px; }
  .tg-home-opportunity-main > header h2 { font-size: 25px; }
  .tg-home-opportunity-main > header > div:first-child { align-items: flex-start; flex-direction: column; gap: 7px; }
  .tg-home-opportunity-stats { grid-template-columns: 1fr 1fr; }
  .tg-home-opportunity-stats > div:last-child { grid-column: 1 / -1; }
  .tg-home-opportunity-why { padding: 18px 16px; }
  .tg-home-racing-heading,
  .tg-home-insights > header { align-items: flex-start; flex-direction: column; }
  .tg-home-racing-toolbar { grid-template-columns: 1fr 1fr; padding: 10px 14px; }
  .tg-home-racing-search,
  .tg-home-racing-legend { grid-column: 1 / -1; }
  .tg-home-meeting { grid-template-columns: 118px minmax(0, 1fr); }
  .tg-home-meeting > header { padding: 12px 10px; }
  .tg-home-meeting-more { display: none; }
  .tg-home-meeting-races { scroll-snap-type: x proximity; }
  .tg-home-meeting-races > a { scroll-snap-align: start; }
  .tg-home-upgrade { grid-template-columns: auto minmax(0, 1fr); }
  .tg-home-upgrade > a { grid-column: 1 / -1; }
  .tg-home-lightning { grid-template-columns: 1fr; padding: 18px 16px; }
  .tg-home-lightning-actions { grid-column: 1; grid-template-columns: 1fr; }
  .tg-home-insights { padding: 16px; }
  .tg-home-insights > div { grid-template-columns: 1fr; }
  .tg-home-insights article { min-height: 230px; }
  .tg-footer-main { padding-block: 36px; }
}

@media (max-width: 460px) {
  .tg-home-outlook-metrics { grid-template-columns: 1fr; }
  .tg-home-outlook-metrics article { min-height: 84px; }
  .tg-home-opportunity-runner { align-items: flex-start; }
  .tg-home-opportunity-stats { grid-template-columns: 1fr; }
  .tg-home-opportunity-stats > div:last-child { grid-column: 1; }
  .tg-home-racing-toolbar { grid-template-columns: 1fr; }
  .tg-home-racing-search,
  .tg-home-racing-legend { grid-column: 1; }
  .tg-home-meeting { grid-template-columns: 102px minmax(0, 1fr); }
  .tg-home-meeting-races { grid-auto-columns: minmax(130px, 72vw); }
}

/* P1 final checkpoint 3: Racecards calendar from image-20261011-193807. */
.tg-racecards-final { display: grid; grid-gap: 14px; gap: 14px; }

.tg-racecards-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  grid-gap: 28px;
  gap: 28px;
  align-items: end;
  padding: 4px 0 3px;
}
.tg-racecards-hero nav { display: flex; gap: 8px; margin-bottom: 7px; color: var(--p1-muted); font-size: 12px; }
.tg-racecards-hero nav a { color: var(--p1-green); text-decoration: none; }
.tg-racecards-hero h1 { margin: 0; color: var(--p1-heading); font-size: clamp(38px, 4vw, 52px); line-height: .98; }
.tg-racecards-hero > div > p { max-width: 720px; margin: 7px 0 0; color: var(--p1-muted); font-size: 15px; }
.tg-racecards-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 14px; color: var(--p1-muted); font-size: 13px; }
.tg-racecards-meta span { display: inline-flex; align-items: center; gap: 7px; }
.tg-racecards-meta svg { width: 17px; color: var(--p1-green); }
.tg-racecards-meta .is-result::before,
.tg-racecards-meta .is-live::before,
.tg-racecards-meta .is-upcoming::before { width: 9px; height: 9px; border-radius: 50%; background: #6e7d78; content: ""; }
.tg-racecards-meta .is-live::before { background: var(--p1-red); }
.tg-racecards-meta .is-upcoming::before { background: var(--p1-green); }
.tg-racecards-definition { display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: center; margin-top: 12px; color: var(--p1-muted); font-size: 13px; line-height: 1.45; }
.tg-racecards-definition > svg { width: 17px; flex: 0 0 auto; color: var(--p1-green); }
.tg-racecards-definition strong { color: var(--p1-heading); }
.tg-racecards-definition a { color: var(--p1-green); font-weight: 800; text-underline-offset: 3px; }
.tg-racecards-pro-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-gap: 13px;
  gap: 13px;
  align-items: center;
  min-height: 88px;
  padding: 15px 17px;
  border: 1px solid #efd99a;
  border-radius: 7px;
  background: linear-gradient(120deg, #fffdf6, #fff);
  color: var(--p1-heading);
  text-decoration: none;
  box-shadow: 0 9px 24px rgb(20 48 40 / 5%);
}
.tg-racecards-pro-card > svg:first-child { width: 26px; height: 26px; color: var(--p1-amber-dark); }
.tg-racecards-pro-card > svg:last-child { width: 19px; color: var(--p1-green); }
.tg-racecards-pro-card span { display: grid; grid-gap: 3px; gap: 3px; }
.tg-racecards-pro-card strong { font-size: 18px; }
.tg-racecards-pro-card small { color: var(--p1-muted); font-size: 12px; line-height: 1.35; }
.tg-racecards-pro-card.is-unavailable { border-color: #d7dfdc; background: #f7f9f8; }

.tg-racecards-final .tg-racecards-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
  align-items: stretch;
  padding: 11px;
  border: 1px solid #dce7e3;
  border-radius: 7px;
  box-shadow: 0 7px 22px rgb(20 48 40 / 5%);
}
.tg-racecards-final .tg-racecards-date-tabs { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); grid-gap: 6px; gap: 6px; min-width: 0; }
.tg-racecards-final .tg-racecards-date-tabs button {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #f7faf9;
  color: var(--p1-heading);
  text-align: left;
  cursor: pointer;
}
.tg-racecards-final .tg-racecards-date-tabs button > svg { width: 18px; flex: 0 0 auto; color: var(--p1-green-bright); }
.tg-racecards-final .tg-racecards-date-tabs button > span { display: grid; grid-gap: 2px; gap: 2px; font-size: inherit; }
.tg-racecards-final .tg-racecards-date-tabs strong { font-size: 13px; }
.tg-racecards-final .tg-racecards-date-tabs small { color: var(--p1-muted); font-size: 11px; }
.tg-racecards-final .tg-racecards-date-tabs button.is-active { border-color: var(--p1-green); background: var(--p1-green); color: #fff; box-shadow: 0 6px 16px rgb(0 84 68 / 18%); }
.tg-racecards-final .tg-racecards-date-tabs button.is-active :where(svg, small) { color: #d6eee7; }
.tg-racecards-filter-toggle { display: none; }
.tg-racecards-final .tg-racecards-filterbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 7px; gap: 7px; align-items: stretch; }
.tg-racecards-final .tg-racecards-filterbar label { position: relative; display: grid; grid-gap: 2px; gap: 2px; min-width: 0; padding: 7px 10px; border: 1px solid #d4e0dc; border-radius: 5px; background: #fff; color: var(--p1-muted); font-size: 12px; font-weight: 750; letter-spacing: 0; text-transform: none; }
.tg-racecards-final .tg-racecards-filterbar :where(select, input) { width: 100%; min-width: 0; min-height: 30px; padding: 0 24px 0 0; border: 0; outline: 0; background: transparent; color: var(--p1-heading); font: inherit; font-size: 14px; font-weight: 700; }
.tg-racecards-final .tg-racecards-filterbar input { padding-right: 0; }
.tg-racecards-final .tg-racecards-reset { min-height: 58px; border-radius: 5px; white-space: nowrap; }
.tg-racecards-filter-apply { display: none; }

.tg-racecards-board-summary { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-gap: 12px 18px; gap: 12px 18px; align-items: center; padding: 4px 7px; }
.tg-racecards-board-summary > strong { color: var(--p1-heading); font-size: 14px; }
.tg-racecards-updated { color: var(--p1-muted); font-size: 12px; }
.tg-racecards-final .tg-racecards-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 17px; color: var(--p1-muted); font-size: 12px; }
.tg-racecards-final .tg-racecards-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tg-racecards-final .tg-racecards-legend span::before { width: 9px; height: 9px; margin: 0; }
.tg-racecards-final .tg-racecards-legend .is-live::before { background: var(--p1-red); }
.tg-racecards-final .tg-racecards-legend .is-next::before { background: var(--p1-amber); }
.tg-racecards-final .tg-racecards-legend .is-upcoming::before { background: #4387e4; }
.tg-racecards-final .tg-racecards-legend .is-pending::before { background: #7b69ad; }
.tg-racecards-final .tg-racecards-legend .is-official::before { background: #6e7d78; }
.tg-racecards-final .tg-racecards-legend .is-pro::before { display: none; }
.tg-racecards-final .tg-racecards-legend svg { width: 14px; }

.tg-racecards-final .tg-racecards-board { display: grid; grid-gap: 9px; gap: 9px; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
.tg-racecards-final .tg-racecards-meeting {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 54px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dde8e4;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 25px rgb(20 48 40 / 5%);
}
.tg-racecards-final .tg-racecards-meeting:first-of-type { border-top: 1px solid #dde8e4; }
.tg-racecards-final .tg-racecards-meeting > header {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-gap: 11px;
  gap: 11px;
  align-content: center;
  padding: 12px;
  background: #fbfdfc;
}
.tg-racecards-course-image { display: grid; grid-row: 1 / span 2; min-height: 84px; place-items: center; align-content: center; grid-gap: 4px; gap: 4px; overflow: hidden; border: 1px solid #cfe1db; border-radius: 5px; background: linear-gradient(145deg, #e8f4ef, #f7fbf9); color: var(--p1-green); }
.tg-racecards-course-image svg { width: 23px; }
.tg-racecards-course-image b { font-size: 13px; letter-spacing: .06em; }
.tg-racecards-final .tg-racecards-meeting > header > div { display: grid; align-content: center; grid-gap: 3px; gap: 3px; min-width: 0; }
.tg-racecards-final .tg-racecards-meeting > header strong { overflow: hidden; color: var(--p1-heading); font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.tg-racecards-final .tg-racecards-meeting > header span,
.tg-racecards-final .tg-racecards-meeting > header small { color: var(--p1-muted); font-size: 12px; }
.tg-racecards-final .tg-racecards-meeting > header small { color: var(--p1-green); }
.tg-racecards-course-unavailable { grid-column: 1 / -1; display: inline-flex; min-height: 31px; align-items: center; justify-content: center; padding-inline: 8px; border: 1px dashed #d5e0dc; border-radius: 4px; background: #f8faf9; color: var(--p1-muted) !important; font-size: 12px !important; }
.tg-racecards-final .tg-racecards-races { display: grid; grid-auto-columns: minmax(142px, 1fr); grid-auto-flow: column; grid-gap: 5px; gap: 5px; min-width: 0; padding: 10px 5px 10px 8px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: thin; }
.tg-racecards-final .tg-racecards-races:focus-visible { outline: 3px solid var(--p1-focus, #0b72e7); outline-offset: -3px; }
.tg-racecards-final .tg-racecards-cell { min-width: 142px; overflow: hidden; border: 1px solid #dfe8e5; border-radius: 6px; background: #fff; }
.tg-racecards-final .tg-racecards-cell.is-selected { border-color: var(--p1-green); box-shadow: inset 0 0 0 1px var(--p1-green); }
.tg-racecards-final .tg-racecards-cell.is-locked { border-color: #e7ebea; background: #f5f7f6; }
.tg-racecards-final .tg-racecards-race { display: grid; align-content: start; grid-gap: 6px; gap: 6px; min-width: 142px; min-height: 152px; padding: 11px; border: 0; background: transparent; text-decoration: none; }
.tg-racecards-final .tg-racecards-race:hover { background: #f7fbf9; }
.tg-racecards-final .tg-racecards-race.is-in-progress { border-color: #f8a0a5; background: #fff8f8; }
.tg-racecards-final .tg-racecards-race.is-next { border-color: #eed288; background: #fffdf4; }
.tg-racecards-final .tg-racecards-race.is-result-pending { background: #faf8ff; }
.tg-racecards-final .tg-racecards-race.is-official { background: #f7f9f8; }
.tg-racecards-final .tg-racecards-race.is-delayed,
.tg-racecards-final .tg-racecards-race.is-abandoned,
.tg-racecards-final .tg-racecards-race.is-non-runner { background: #fff8f3; }
.tg-racecards-final .tg-racecards-race.is-locked { background: #f5f7f6; color: #75827e; }
.tg-racecards-final .tg-racecards-race-topline strong { color: var(--p1-heading); font-size: 16px; }
.tg-racecards-final .tg-racecards-race-topline em { display: inline-flex; max-width: 82px; align-items: center; min-height: 22px; padding: 3px 5px; border-radius: 3px; background: #e9f2ff; color: #2560af; font-size: 10px; line-height: 1.15; text-align: center; }
.tg-racecards-final .tg-racecards-race-topline em.is-in-progress { background: var(--p1-red); color: #fff; }
.tg-racecards-final .tg-racecards-race-topline em.is-next { background: var(--p1-amber-soft); color: #775000; }
.tg-racecards-final .tg-racecards-race-topline em.is-result-pending { background: #eee8fa; color: #624994; }
.tg-racecards-final .tg-racecards-race-topline em.is-official { background: #e8edeb; color: #40504b; }
.tg-racecards-final .tg-racecards-race-topline em.is-delayed,
.tg-racecards-final .tg-racecards-race-topline em.is-abandoned,
.tg-racecards-final .tg-racecards-race-topline em.is-non-runner { background: #ffeadc; color: #8d3e09; }
.tg-racecards-final .tg-racecards-race-topline em svg { width: 13px; height: 13px; }
.tg-racecards-context,
.tg-racecards-runner-count { overflow: hidden; color: var(--p1-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tg-racecards-top-pick { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 6px; gap: 6px; align-items: center; margin-top: 3px; color: var(--p1-green); }
.tg-racecards-top-pick svg { width: 16px; color: var(--p1-green-bright); }
.tg-racecards-top-pick > span { display: grid; min-width: 0; }
.tg-racecards-top-pick small { color: var(--p1-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tg-racecards-top-pick b { overflow: hidden; color: var(--p1-green); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tg-racecards-rating { color: var(--p1-muted); font-size: 12px; font-weight: 700; }
.tg-racecards-unlock { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 1px 6px; gap: 1px 6px; align-items: center; align-self: end; margin-top: 5px; padding: 7px 6px; border-radius: 4px; background: #fff0dc; color: #8b430d; font-size: 11px; font-weight: 800; }
.tg-racecards-unlock svg { grid-row: 1 / 3; width: 15px; }
.tg-racecards-unlock small { color: #865a39; font-size: 10px; font-weight: 600; }
.tg-racecards-lane-nav { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; border-left: 1px solid var(--p1-line); background: #fbfdfc; }
.tg-racecards-lane-nav button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #d6e2de; border-radius: 50%; background: #fff; color: var(--p1-green); cursor: pointer; }
.tg-racecards-lane-nav button:hover { border-color: var(--p1-green); background: var(--p1-green-soft); }
.tg-racecards-lane-nav svg { width: 18px; }

.tg-racecards-opportunities { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; grid-gap: 15px; gap: 15px; align-items: center; padding: 13px 16px; border: 1px solid #dfe9e5; border-radius: 7px; background: #fff; box-shadow: 0 7px 22px rgb(20 48 40 / 5%); }
.tg-racecards-opportunities > header { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 9px; gap: 9px; align-items: center; }
.tg-racecards-opportunities > header > svg { width: 26px; color: var(--p1-amber-dark); }
.tg-racecards-opportunities h2 { margin: 0; color: var(--p1-heading); font-size: 16px; }
.tg-racecards-opportunities p { margin: 2px 0 0; color: var(--p1-muted); font-size: 11px; }
.tg-racecards-opportunities > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tg-racecards-opportunities > div > a { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 8px; gap: 8px; align-items: center; min-width: 0; padding: 4px 13px; border-left: 1px solid var(--p1-line); color: var(--p1-heading); text-decoration: none; }
.tg-racecards-opportunities > div > a span:not(.tg-live-silk) { display: grid; min-width: 0; }
.tg-racecards-opportunities > div > a strong,
.tg-racecards-opportunities > div > a small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-racecards-opportunities > div > a strong { font-size: 12px; }
.tg-racecards-opportunities > div > a small { color: var(--p1-muted); font-size: 10px; }
.tg-racecards-opportunities > a { display: inline-flex; align-items: center; gap: 7px; color: var(--p1-green); font-size: 12px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tg-racecards-opportunities > a svg { width: 16px; }

@media (max-width: 1060px) {
  .tg-racecards-hero { grid-template-columns: minmax(0, 1fr) 270px; }
  .tg-racecards-final .tg-racecards-meeting { grid-template-columns: 190px minmax(0, 1fr) 50px; }
  .tg-racecards-final .tg-racecards-meeting > header { grid-template-columns: 55px minmax(0, 1fr); }
  .tg-racecards-course-image { min-height: 72px; }
  .tg-racecards-opportunities { grid-template-columns: 190px minmax(0, 1fr); }
  .tg-racecards-opportunities > a { grid-column: 2; justify-self: end; }
}

@media (max-width: 820px) {
  .tg-racecards-hero { grid-template-columns: 1fr; gap: 16px; }
  .tg-racecards-hero h1 { font-size: 36px; }
  .tg-racecards-pro-card { min-height: 76px; }
  .tg-racecards-final .tg-racecards-date-tabs { display: flex; padding-bottom: 3px; overflow-x: auto; }
  .tg-racecards-final .tg-racecards-date-tabs button { min-width: 112px; }
  .tg-racecards-filter-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 1px solid #cbdcd6; border-radius: 5px; background: #fff; color: var(--p1-green); font: inherit; font-weight: 800; }
  .tg-racecards-filter-toggle span { padding: 3px 6px; border-radius: 10px; background: var(--p1-green-soft); font-size: 11px; }
  .tg-racecards-final .tg-racecards-filterbar { display: none; grid-template-columns: 1fr 1fr; }
  .tg-racecards-final .tg-racecards-filterbar.is-open { display: grid; }
  .tg-racecards-final .tg-racecards-filterbar .tg-racecards-date-picker { grid-column: 1 / -1; }
  .tg-racecards-final .tg-racecards-reset { min-height: 45px; }
  .tg-racecards-filter-apply { display: inline-flex; min-height: 45px; align-items: center; justify-content: center; border: 1px solid var(--p1-green); border-radius: 5px; background: var(--p1-green); color: #fff; font: inherit; font-weight: 850; }
  .tg-racecards-board-summary { align-items: flex-start; flex-direction: column; }
  .tg-racecards-board-summary { grid-template-columns: 1fr; }
  .tg-racecards-final .tg-racecards-legend { justify-content: flex-start; }
  .tg-racecards-final .tg-racecards-meeting { grid-template-columns: 135px minmax(0, 1fr) 42px; }
  .tg-racecards-final .tg-racecards-meeting > header { grid-template-columns: 1fr; align-content: start; padding: 10px; }
  .tg-racecards-course-image { display: none; }
  .tg-racecards-course-unavailable { margin-top: 5px; padding-inline: 5px; }
  .tg-racecards-final .tg-racecards-meeting > header strong { font-size: 15px; white-space: normal; }
  .tg-racecards-final .tg-racecards-meeting > header span,
  .tg-racecards-final .tg-racecards-meeting > header small { font-size: 10px; }
  .tg-racecards-final .tg-racecards-races { grid-auto-columns: minmax(144px, 70vw); scroll-snap-type: x proximity; }
  .tg-racecards-final .tg-racecards-cell { scroll-snap-align: start; }
  .tg-racecards-lane-nav button { width: 31px; height: 31px; }
  .tg-racecards-opportunities { grid-template-columns: 1fr; }
  .tg-racecards-opportunities > div { grid-template-columns: 1fr; }
  .tg-racecards-opportunities > div > a { padding: 9px 0; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-racecards-opportunities > a { grid-column: 1; justify-self: start; }
}

@media (max-width: 460px) {
  .tg-racecards-meta { gap: 7px 12px; }
  .tg-racecards-final .tg-racecards-filterbar { grid-template-columns: 1fr; }
  .tg-racecards-final .tg-racecards-filterbar .tg-racecards-date-picker,
  .tg-racecards-final .tg-racecards-reset { grid-column: 1; }
  .tg-racecards-final .tg-racecards-meeting { grid-template-columns: 92px minmax(0, 1fr) 38px; }
  .tg-racecards-course-unavailable { font-size: 10px !important; }
  .tg-racecards-lane-nav { gap: 10px; }
  .tg-racecards-lane-nav button { width: 30px; height: 36px; border-radius: 4px; }
}

/* P1 final checkpoints 4–6: Race detail, Results and Racing Hub */
.tg-race-final-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--p1-muted); font-size: 13px; }
.tg-race-final-breadcrumb a { color: var(--p1-green); text-decoration: none; }
.tg-race-final-breadcrumb strong { color: var(--p1-heading); }
.tg-race-final-breadcrumb svg { color: #9aaba5; }
.tg-race-final-times { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-race-final-times-back { display: inline-flex; align-items: center; gap: 7px; padding: 0 16px; border-right: 1px solid var(--p1-line); color: var(--p1-green); font-size: 13px; font-weight: 800; text-decoration: none; }
.tg-race-final-times > div { display: flex; overflow-x: auto; }
.tg-race-final-times > div a { display: grid; min-width: 76px; min-height: 54px; place-items: center; padding: 10px 14px; border-right: 1px solid var(--p1-line); color: var(--p1-muted); font-weight: 800; text-decoration: none; }
.tg-race-final-times > div a:hover { background: var(--p1-green-soft); color: var(--p1-green); }
.tg-race-final-times > div a.is-active { background: var(--p1-green); color: #fff; box-shadow: inset 0 -3px var(--p1-green-bright); }
.tg-race-final-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(430px, .85fr); grid-gap: 34px; gap: 34px; align-items: end; padding: 20px 0 23px; border-bottom: 1px solid var(--p1-line); }
.tg-race-final-hero h1 { margin: 5px 0 8px; color: var(--p1-heading); font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.tg-race-final-hero h1 strong { color: var(--p1-green); font-weight: 850; }
.tg-race-final-hero p { max-width: 700px; margin: 0; color: var(--p1-muted); font-size: 16px; line-height: 1.5; }
.tg-race-final-hero dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border: 1px solid var(--p1-line); background: #fff; }
.tg-race-final-hero dl > div { min-width: 0; padding: 11px 13px; border-top: 1px solid var(--p1-line); border-left: 1px solid var(--p1-line); }
.tg-race-final-hero dl > div:nth-child(-n + 3) { border-top: 0; }
.tg-race-final-hero dl > div:nth-child(3n + 1) { border-left: 0; }
.tg-race-final-hero dt { display: flex; align-items: center; gap: 5px; color: var(--p1-muted); font-size: 11px; text-transform: uppercase; }
.tg-race-final-hero dd { overflow: hidden; margin: 4px 0 0; color: var(--p1-heading); font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.tg-race-final-page .tg-p1-race-pagination { margin-bottom: -4px; }
.tg-race-final-page .tg-p1-evidence-tabs { position: -webkit-sticky; position: sticky; z-index: 4; top: var(--p1-header-height, 72px); background: var(--p1-canvas); }
.tg-race-final-page .tg-p1-evidence-tabs button { min-height: 48px; font-size: 14px; }
.tg-race-final-page .tg-p1-runner-evidence,
.tg-race-final-page .tg-p1-race-quality,
.tg-race-final-page .tg-p1-decision-next,
.tg-race-final-page .tg-p1-post-race { border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 8px 26px rgb(20 48 40 / 4%); }
.tg-race-final-page .tg-p1-race-angles article { border-radius: 5px; }

.tg-results-final > .tg-p1-page-title { padding-block: 8px 3px; }
.tg-results-final > .tg-p1-page-title h1 { font-size: clamp(40px, 5vw, 60px); }
.tg-results-date-strip { display: grid; grid-template-columns: repeat(5, minmax(100px, 1fr)) minmax(250px, 1.15fr); overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-results-date-strip > a { position: relative; display: grid; grid-gap: 2px; gap: 2px; align-content: center; min-height: 72px; padding: 10px 15px; border-right: 1px solid var(--p1-line); color: var(--p1-muted); text-decoration: none; }
.tg-results-date-strip > a small { font-size: 12px; text-transform: uppercase; }
.tg-results-date-strip > a strong { color: var(--p1-heading); font-size: 16px; }
.tg-results-date-strip > a span { color: var(--p1-green); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.tg-results-date-strip > a.is-active { background: var(--p1-green-soft); box-shadow: inset 0 -3px var(--p1-green); }
.tg-results-date-strip > a.is-active strong { color: var(--p1-green); }
.tg-results-date-strip form { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.tg-results-date-strip form svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-results-date-strip input { min-width: 0; min-height: 40px; border: 0; color: var(--p1-heading); }
.tg-results-date-strip button { min-height: 38px; padding: 8px 13px; border: 0; border-radius: 4px; background: var(--p1-green); color: #fff; font-weight: 800; }
.tg-results-final .tg-p1-results-filters { grid-template-columns: repeat(3, minmax(150px, 1fr)) auto auto auto; padding: 13px 15px; border: 1px solid var(--p1-line); box-shadow: none; }
.tg-results-final .tg-p1-results-filters label { font-size: 11px; }
.tg-results-final .tg-p1-results-filters select { min-height: 42px; font-size: 14px; }
.tg-results-completed { display: inline-flex; align-items: center; align-self: end; gap: 7px; min-height: 42px; color: var(--p1-green); font-size: 13px; font-weight: 800; white-space: nowrap; }
.tg-results-final .tg-p1-results-list { overflow: hidden; border: 1px solid var(--p1-line); box-shadow: 0 8px 28px rgb(20 48 40 / 4%); }
.tg-results-final .tg-p1-results-list > header { min-height: 80px; }
.tg-results-final .tg-p1-results-list > header div { gap: 3px; }
.tg-results-final .tg-p1-results-list > header strong { font-size: 20px; }
.tg-results-final .tg-p1-results-list > header > span { display: flex; align-items: center; gap: 6px; }
.tg-results-final .tg-p1-result-row > summary { grid-template-columns: 180px minmax(200px, .95fr) minmax(350px, 1.55fr) 115px; gap: 20px; min-width: 0; min-height: 108px; padding: 14px 18px; }
.tg-results-final .tg-p1-result-race { grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; }
.tg-results-final .tg-p1-result-race > strong { grid-row: 1 / 3; font-size: 24px; }
.tg-results-final .tg-p1-result-race > b { font-size: 15px; }
.tg-result-official { display: inline-flex; align-items: center; gap: 4px; width: -moz-fit-content; width: fit-content; color: var(--p1-green) !important; font-weight: 800; }
.tg-result-context strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.tg-results-final .tg-p1-result-row > summary .tg-p1-result-order { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.tg-results-final .tg-p1-result-row > summary .tg-p1-result-order > span { padding-left: 12px; border-left: 1px solid var(--p1-line); }
.tg-results-final .tg-p1-result-row > summary .tg-p1-result-order > span:first-child { padding-left: 0; border-left: 0; }
.tg-results-final .tg-p1-result-row > summary .tg-p1-result-order b { font-size: 13px; }
.tg-results-final .tg-p1-result-review { display: flex; grid-template-columns: none; justify-content: flex-end; color: var(--p1-green); font-size: 13px; font-weight: 850; }
.tg-results-final .tg-p1-race-summary { min-width: 0; }

.tg-hub-final { gap: 20px; }
.tg-hub-final-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); grid-gap: 44px; gap: 44px; align-items: end; min-height: 285px; padding: 42px 48px; border-radius: 8px; background: linear-gradient(135deg, #f1f8f5 0%, #fff 65%); box-shadow: inset 0 0 0 1px var(--p1-line); }
.tg-hub-final-hero h1 { margin: 9px 0 14px; color: var(--p1-heading); font-size: clamp(42px, 5.5vw, 66px); line-height: .98; letter-spacing: -.035em; }
.tg-hub-final-hero h1 strong { color: var(--p1-green-bright); }
.tg-hub-final-hero p { max-width: 720px; margin: 0; color: var(--p1-muted); font-size: 17px; line-height: 1.55; }
.tg-hub-final-hero > div > div { display: flex; align-items: center; gap: 18px; margin-top: 24px; }
.tg-hub-final-hero > div > div a { color: var(--p1-green); font-size: 14px; font-weight: 850; text-decoration: none; }
.tg-hub-final-hero > div > div a:first-child { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 15px; border-radius: 4px; background: var(--p1-green); color: #fff; }
.tg-hub-final-hero aside { display: flex; gap: 12px; padding: 17px; border-left: 3px solid var(--p1-green-bright); background: #fff; box-shadow: 0 10px 30px rgb(20 48 40 / 7%); }
.tg-hub-final-hero aside svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-hub-final-hero aside span { display: grid; grid-gap: 5px; gap: 5px; }
.tg-hub-final-hero aside small { color: var(--p1-muted); font-size: 13px; line-height: 1.5; }
.tg-hub-final-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 13px 17px; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-hub-final-toolbar span { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-muted); font-size: 13px; }
.tg-hub-final-toolbar svg { color: var(--p1-green); }
.tg-hub-final-toolbar strong { color: var(--p1-heading); }
.tg-hub-final-toolbar .tg-hub-final-updated { margin-left: auto; }
.tg-hub-final-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 18px; gap: 18px; }
.tg-hub-panel { min-width: 0; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 9px 28px rgb(20 48 40 / 5%); }
.tg-hub-panel > header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 12px; gap: 12px; align-items: start; min-height: 148px; padding: 21px; border-bottom: 1px solid var(--p1-line); }
.tg-hub-panel > header > span { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-hub-panel > header small { color: var(--p1-green); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.tg-hub-panel h2 { margin: 3px 0 7px; font-size: 24px; }
.tg-hub-panel header p { margin: 0; color: var(--p1-muted); font-size: 14px; line-height: 1.45; }
.tg-hub-panel > header > a { display: inline-flex; align-items: center; gap: 5px; color: var(--p1-green); font-size: 13px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tg-hub-opportunity-list > a { display: grid; grid-template-columns: 28px minmax(0, 1fr) 70px auto; grid-gap: 11px; gap: 11px; align-items: center; min-height: 72px; padding: 10px 17px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); text-decoration: none; }
.tg-hub-opportunity-list > a:first-child { border-top: 0; }
.tg-hub-opportunity-list > a:hover,
.tg-hub-market-list > a:hover,
.tg-hub-intelligence-table > a:hover { background: #f5faf8; }
.tg-hub-opportunity-list > a > b { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--p1-green); color: #fff; }
.tg-hub-opportunity-list > a > span { display: grid; min-width: 0; }
.tg-hub-opportunity-list strong,
.tg-hub-opportunity-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-hub-opportunity-list small { color: var(--p1-muted); font-size: 12px; }
.tg-hub-opportunity-list em { color: var(--p1-green); font-size: 20px; font-style: normal; font-weight: 850; }
.tg-hub-profile-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 11px; gap: 11px; align-items: center; min-height: 55px; padding: 8px 17px; border-top: 1px solid var(--p1-line); }
.tg-hub-profile-list > div:first-child { border-top: 0; }
.tg-hub-profile-list > div > span { display: grid; min-width: 0; }
.tg-hub-profile-list > div small { overflow: hidden; color: var(--p1-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tg-hub-profile-list > div > a { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--p1-line); color: var(--p1-green); }
.tg-hub-intelligence-table > div,
.tg-hub-intelligence-table > a { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(145px, 1.2fr) 68px 88px; grid-gap: 10px; gap: 10px; align-items: center; padding: 10px 16px; }
.tg-hub-intelligence-table > div { background: #eef4f1; color: var(--p1-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.tg-hub-intelligence-table > a { min-height: 59px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); text-decoration: none; }
.tg-hub-intelligence-table > a > span { display: grid; min-width: 0; }
.tg-hub-intelligence-table > a small { color: var(--p1-muted); font-size: 11px; }
.tg-hub-intelligence-table > a > b { color: var(--p1-green); font-size: 15px; }
.tg-hub-market-list > a { display: grid; grid-template-columns: minmax(155px, 1.3fr) minmax(115px, 1fr) 58px 65px; grid-gap: 10px; gap: 10px; align-items: center; min-height: 59px; padding: 9px 16px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); text-decoration: none; }
.tg-hub-market-list > a:first-child { border-top: 0; }
.tg-hub-market-list > a > span { display: grid; min-width: 0; }
.tg-hub-market-list strong,
.tg-hub-market-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-hub-market-list small { color: var(--p1-muted); font-size: 11px; }
.tg-hub-empty { margin: 0; padding: 24px; color: var(--p1-muted); font-size: 14px; }
.tg-hub-final-meetings { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(300px, 1.1fr) auto; grid-gap: 24px; gap: 24px; align-items: center; padding: 24px; border-radius: 7px; background: var(--p1-green-dark); color: #fff; }
.tg-hub-final-meetings > div:first-child { display: flex; gap: 12px; }
.tg-hub-final-meetings > div:first-child > svg { flex: 0 0 auto; color: var(--p1-amber); }
.tg-hub-final-meetings small { color: #82e1bc; font-size: 11px; font-weight: 850; text-transform: uppercase; }
.tg-hub-final-meetings h2 { margin: 3px 0 4px; color: #fff; font-size: 22px; }
.tg-hub-final-meetings p { margin: 0; color: #bdd1ca; font-size: 13px; }
.tg-hub-final-meetings > div:nth-child(2) { display: flex; flex-wrap: wrap; gap: 7px; }
.tg-hub-final-meetings > div:nth-child(2) span { padding: 6px 9px; border: 1px solid rgb(255 255 255 / 19%); color: #e4f0ec; font-size: 12px; }
.tg-hub-final-meetings > a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 14px; border-radius: 4px; background: var(--p1-amber); color: var(--p1-heading); font-size: 13px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tg-hub-final-method { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; color: var(--p1-muted); font-size: 13px; }
.tg-hub-final-method a { color: var(--p1-green); font-weight: 800; }

@media (max-width: 1050px) {
  .tg-race-final-hero { grid-template-columns: 1fr; gap: 20px; }
  .tg-results-date-strip { grid-template-columns: repeat(5, 1fr); }
  .tg-results-date-strip form { grid-column: 1 / -1; border-top: 1px solid var(--p1-line); }
  .tg-results-final .tg-p1-results-filters { grid-template-columns: repeat(3, 1fr); }
  .tg-results-final .tg-p1-result-row > summary { grid-template-columns: 155px minmax(170px, .8fr) minmax(290px, 1.35fr) 95px; gap: 13px; }
  .tg-results-final .tg-p1-race-summary { overflow-x: auto; min-width: 950px; }
  .tg-hub-final-hero { grid-template-columns: 1fr; gap: 24px; }
  .tg-hub-final-grid { grid-template-columns: 1fr; }
  .tg-hub-panel > header { min-height: 0; }
  .tg-hub-final-meetings { grid-template-columns: 1fr auto; }
  .tg-hub-final-meetings > div:nth-child(2) { grid-column: 1; }
}

@media (max-width: 760px) {
  .tg-race-final-times { grid-template-columns: 54px minmax(0, 1fr); }
  .tg-race-final-times-back { padding: 0; justify-content: center; }
  .tg-race-final-times-back span { display: none; }
  .tg-race-final-hero { padding-top: 10px; }
  .tg-race-final-hero h1 { font-size: 38px; }
  .tg-race-final-hero dl { grid-template-columns: repeat(2, 1fr); }
  .tg-race-final-hero dl > div:nth-child(-n + 3) { border-top: 1px solid var(--p1-line); }
  .tg-race-final-hero dl > div:nth-child(-n + 2) { border-top: 0; }
  .tg-race-final-hero dl > div:nth-child(3n + 1) { border-left: 1px solid var(--p1-line); }
  .tg-race-final-hero dl > div:nth-child(odd) { border-left: 0; }
  .tg-race-final-page .tg-p1-evidence-tabs { top: 62px; gap: 18px; }
  .tg-results-date-strip { display: flex; overflow-x: auto; }
  .tg-results-date-strip > a { flex: 0 0 104px; }
  .tg-results-date-strip form { flex: 0 0 245px; border-top: 0; }
  .tg-results-final .tg-p1-results-filters { grid-template-columns: 1fr 1fr; }
  .tg-results-final .tg-p1-results-filters label:first-of-type { grid-column: 1 / -1; }
  .tg-results-completed { grid-column: 1 / -1; }
  .tg-results-final .tg-p1-result-row > summary { grid-template-columns: 1fr auto; min-height: 0; padding: 16px; }
  .tg-results-final .tg-p1-result-race { grid-column: 1; }
  .tg-results-final .tg-result-context { grid-column: 1 / -1; }
  .tg-results-final .tg-p1-result-row > summary .tg-p1-result-order { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 8px; padding-top: 12px; border-top: 1px solid var(--p1-line); }
  .tg-results-final .tg-p1-result-row > summary .tg-p1-result-order > span { padding: 0; border: 0; }
  .tg-results-final .tg-p1-result-review { grid-column: 2; grid-row: 1; }
  .tg-results-final .tg-p1-result-review span { display: none; }
  .tg-results-final .tg-p1-race-summary { display: grid; grid-template-columns: 1fr; min-width: 0; padding: 16px; }
  .tg-results-final .tg-p1-race-summary > div { padding: 13px 0; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-results-final .tg-p1-race-summary > div:first-child { border-top: 0; }
  .tg-hub-final-hero { min-height: 0; padding: 28px 22px; }
  .tg-hub-final-hero h1 { font-size: 42px; }
  .tg-hub-final-hero > div > div { align-items: flex-start; flex-direction: column; }
  .tg-hub-final-toolbar { align-items: flex-start; flex-direction: column; }
  .tg-hub-final-toolbar .tg-hub-final-updated { margin-left: 0; }
  .tg-hub-panel > header { grid-template-columns: auto minmax(0, 1fr); padding: 18px; }
  .tg-hub-panel > header > a { grid-column: 2; }
  .tg-hub-intelligence-table { overflow-x: auto; }
  .tg-hub-intelligence-table > div,
  .tg-hub-intelligence-table > a { min-width: 570px; }
  .tg-hub-market-list > a { grid-template-columns: minmax(145px, 1.3fr) minmax(100px, 1fr) 55px; }
  .tg-hub-market-list > a > span:last-child { display: none; }
  .tg-hub-final-meetings { grid-template-columns: 1fr; }
  .tg-hub-final-meetings > div:nth-child(2) { grid-column: 1; }
  .tg-hub-final-meetings > a { justify-self: start; }
}

@media (max-width: 460px) {
  .tg-race-final-breadcrumb span,
  .tg-race-final-breadcrumb span + svg { display: none; }
  .tg-race-final-hero dl { grid-template-columns: 1fr; }
  .tg-race-final-hero dl > div { border-top: 1px solid var(--p1-line) !important; border-left: 0 !important; }
  .tg-race-final-hero dl > div:first-child { border-top: 0 !important; }
  .tg-results-final .tg-p1-results-filters { grid-template-columns: 1fr; }
  .tg-results-final .tg-p1-results-filters label:first-of-type,
  .tg-results-completed { grid-column: 1; }
  .tg-hub-final-hero h1 { font-size: 36px; }
  .tg-hub-opportunity-list > a { grid-template-columns: 27px minmax(0, 1fr) auto; }
  .tg-hub-opportunity-list > a > span:nth-of-type(2) { display: none; }
  .tg-hub-market-list > a { grid-template-columns: 1fr 80px; }
  .tg-hub-market-list > a > span:nth-child(n + 3) { display: none; }
}

/* Phase 3 · Point 7: approved Racing Hub landing composition */
.tg-hub-final { gap: 14px; }
.tg-hub-final-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-gap: 34px; gap: 34px; align-items: center; min-height: 0; padding: 12px 10px 6px; border-radius: 0; background: transparent; box-shadow: none; }
.tg-hub-final-hero h1 { max-width: 820px; margin: 6px 0 5px; color: var(--p1-heading); font-size: clamp(32px, 4vw, 43px); line-height: 1.04; letter-spacing: -.035em; }
.tg-hub-final-hero p { max-width: 800px; margin: 0; color: var(--p1-muted); font-size: 15px; line-height: 1.48; }
.tg-hub-final-hero aside { display: grid; grid-template-columns: 38px 1fr; grid-gap: 11px; gap: 11px; align-items: start; padding: 14px; border: 0; border-radius: 6px; background: #eaf8f3; box-shadow: none; }
.tg-hub-final-hero aside > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #cdf3e5; color: var(--p1-green); }
.tg-hub-final-hero aside div { display: grid; grid-gap: 3px; gap: 3px; }
.tg-hub-final-hero aside strong { color: var(--p1-heading); font-size: 13px; }
.tg-hub-final-hero aside small { color: var(--p1-muted); font-size: 11px; line-height: 1.4; }

.tg-hub-filters { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(510px, 1.25fr) auto; align-items: stretch; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 5px 18px rgb(20 48 40 / 5%); }
.tg-hub-date-tabs { display: grid; grid-template-columns: repeat(4, 1fr); min-width: 0; }
.tg-hub-date-tabs a { display: grid; align-content: center; min-height: 58px; padding: 7px 10px; border-right: 1px solid var(--p1-line); color: var(--p1-heading); text-align: center; text-decoration: none; }
.tg-hub-date-tabs strong { font-size: 12px; }
.tg-hub-date-tabs small { color: var(--p1-muted); font-size: 10px; }
.tg-hub-date-tabs a.is-active { background: var(--p1-green); color: #fff; }
.tg-hub-date-tabs a.is-active small { color: #d4e9e2; }
.tg-hub-filters form { display: grid; grid-template-columns: repeat(4, minmax(94px, 1fr)) auto; grid-gap: 7px; gap: 7px; align-items: center; padding: 8px 10px; }
.tg-hub-filters select { width: 100%; min-width: 0; height: 38px; padding: 0 28px 0 10px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-heading); font-size: 11px; font-weight: 700; }
.tg-hub-filters form button { height: 38px; padding: 0 11px; border: 1px solid var(--p1-green); border-radius: 4px; background: #fff; color: var(--p1-green); font-size: 11px; font-weight: 850; }
.tg-hub-region-toggle { display: flex; align-items: center; gap: 7px; min-width: 145px; padding: 0 12px; border-left: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 11px; font-weight: 700; text-decoration: none; }
.tg-hub-region-toggle > span { display: grid; width: 31px; height: 18px; padding: 2px; align-items: center; border-radius: 10px; background: #bdcbc6; }
.tg-hub-region-toggle > span svg { visibility: hidden; }
.tg-hub-region-toggle.is-active > span { justify-content: end; background: var(--p1-green); }
.tg-hub-region-toggle.is-active > span::after { width: 14px; height: 14px; border-radius: 50%; background: #fff; content: ""; }
.tg-hub-load-state { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-left: 3px solid var(--p1-amber); background: #fff8e5; color: var(--p1-heading); font-size: 12px; }

.tg-hub-final-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.tg-hub-panel { display: flex; min-width: 0; overflow: hidden; flex-direction: column; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 7px 24px rgb(20 48 40 / 5%); }
.tg-hub-panel > header { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-gap: 11px; gap: 11px; align-items: start; min-height: 0; padding: 14px 15px 11px; border: 0; }
.tg-hub-panel > header > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-hub-panel-intelligence > header > span,
.tg-hub-panel-market > header > span { background: #fff0db; color: #e86f11; }
.tg-hub-panel h2 { margin: 0 0 2px; color: var(--p1-heading); font-size: 20px; line-height: 1.12; }
.tg-hub-panel header p { max-width: 440px; margin: 0; color: var(--p1-muted); font-size: 11px; line-height: 1.4; }

.tg-hub-race-focus { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px auto; grid-gap: 8px; gap: 8px; align-items: center; margin: 0 14px 8px; }
.tg-hub-race-focus button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-green); }
.tg-hub-race-focus button:disabled { color: #abb8b4; }
.tg-hub-race-focus > span { display: grid; min-width: 0; }
.tg-hub-race-focus > span strong { overflow: hidden; color: var(--p1-heading); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.tg-hub-race-focus > span small { overflow: hidden; color: var(--p1-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tg-hub-pending-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 7px 12px; border: 1px solid #a9bbb5; border-radius: 4px; color: #667771; font-size: 11px; font-weight: 800; white-space: nowrap; }
.tg-hub-pending-action.is-compact { min-height: auto; padding: 0; border: 0; font-size: 10px; }
.tg-hub-pending-action.is-ready { border-color: var(--p1-green); color: var(--p1-green); text-decoration: none; }

.tg-hub-table-head { background: #f0f5f3; color: var(--p1-muted); font-size: 9px; font-weight: 800; letter-spacing: .015em; }
.tg-hub-model-table > div { display: grid; grid-template-columns: 72px minmax(135px, 1.2fr) minmax(125px, 1fr) 92px; grid-gap: 8px; gap: 8px; align-items: center; min-height: 43px; padding: 6px 14px; border-top: 1px solid var(--p1-line); font-size: 11px; }
.tg-hub-model-table > div > span { display: flex; min-width: 0; align-items: center; gap: 7px; }
.tg-hub-model-table > div > span strong,
.tg-hub-model-table > div > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-hub-model-table > div > span:nth-child(3) i { position: relative; width: 66px; height: 7px; overflow: hidden; border-radius: 4px; background: #e3e9e7; }
.tg-hub-model-table > div > span:nth-child(3) i::after { position: absolute; inset: 0 auto 0 0; width: var(--hub-progress); background: #16a477; content: ""; }
.tg-hub-model-table > div > span:last-child svg { color: #18a778; }
.tg-hub-model-table > div.is-pending { color: #8a9692; }
.tg-hub-model-table > div.is-pending small { color: #8a9692; }

.tg-hub-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-top: auto; padding: 8px 14px; border-top: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 10px; }
.tg-hub-panel-footer > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.tg-hub-panel-footer.is-pending > span:first-child svg { color: var(--p1-amber); }

.tg-hub-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; margin: 0 14px 8px; overflow-x: auto; border: 1px solid var(--p1-line); border-radius: 3px; }
.tg-hub-tabs > a,
.tg-hub-tabs > span { display: flex; min-height: 31px; align-items: center; justify-content: center; padding: 6px 8px; border-right: 1px solid var(--p1-line); color: #273f38; font-size: 10px; text-align: center; text-decoration: none; white-space: nowrap; }
.tg-hub-tabs > :last-child { border-right: 0; }
.tg-hub-tabs > .is-active { background: var(--p1-green); color: #fff; font-weight: 800; }
.tg-hub-tabs > [aria-disabled="true"] { color: #87958f; }
.tg-hub-profile-search { display: flex; align-items: center; gap: 7px; min-height: 32px; margin: 0 14px 7px; padding: 0 9px; border: 1px solid var(--p1-line); border-radius: 4px; color: var(--p1-muted); }
.tg-hub-profile-search input { width: 100%; border: 0; background: transparent; color: var(--p1-muted); font-size: 10px; }
.tg-hub-list-label { display: block; padding: 0 14px 4px; color: var(--p1-heading); font-size: 10px; }
.tg-hub-profile-list > a,
.tg-hub-profile-list > div { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(90px, .8fr) auto; grid-gap: 9px; gap: 9px; align-items: center; min-height: 43px; padding: 5px 14px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); text-decoration: none; }
.tg-hub-profile-list > a > span:nth-child(2),
.tg-hub-profile-list > div > span:nth-child(2) { display: grid; min-width: 0; }
.tg-hub-profile-list strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tg-hub-profile-list small { overflow: hidden; color: var(--p1-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tg-hub-profile-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-hub-profile-pending { color: #87958f; font-size: 9px; font-weight: 750; }

.tg-hub-intelligence-table,
.tg-hub-market-list { overflow-x: auto; }
.tg-hub-intelligence-table > div,
.tg-hub-intelligence-table > a { display: grid; grid-template-columns: 20px minmax(110px, 1fr) minmax(120px, 1fr) 88px 67px; grid-gap: 8px; gap: 8px; align-items: center; min-width: 520px; padding: 7px 12px; }
.tg-hub-intelligence-table > a { min-height: 43px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); font-size: 10px; text-decoration: none; }
.tg-hub-intelligence-table > a > span { display: grid; min-width: 0; }
.tg-hub-intelligence-table > a span strong,
.tg-hub-intelligence-table > a span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-hub-intelligence-table > a small { color: var(--p1-muted); font-size: 9px; }
.tg-hub-intelligence-table .tg-hub-runner { display: flex; align-items: center; gap: 6px; }
.tg-hub-intelligence-table .is-positive { color: #078159; }
.tg-hub-intelligence-table .is-negative { color: #ca3f37; }

.tg-hub-market-list > div,
.tg-hub-market-list > a { display: grid; grid-template-columns: minmax(125px, 1.15fr) minmax(75px, .7fr) minmax(120px, 1fr) 78px; grid-gap: 8px; gap: 8px; align-items: center; min-width: 500px; padding: 7px 12px; }
.tg-hub-market-list > a { min-height: 43px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); font-size: 10px; text-decoration: none; }
.tg-hub-market-list > a > span { display: grid; min-width: 0; }
.tg-hub-market-list > a strong,
.tg-hub-market-list > a small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-hub-market-list > a small { color: var(--p1-muted); font-size: 9px; }
.tg-hub-empty { margin: 0; padding: 20px 14px; color: var(--p1-muted); font-size: 11px; }

.tg-hub-final-meetings { display: grid; grid-template-columns: minmax(270px, 1fr) minmax(330px, 1.05fr) auto; grid-gap: 22px; gap: 22px; align-items: center; padding: 14px 16px; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; color: var(--p1-heading); box-shadow: 0 7px 24px rgb(20 48 40 / 5%); }
.tg-hub-meetings-intro { display: flex; gap: 10px; align-items: center; }
.tg-hub-meetings-intro > span { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-hub-final-meetings h2 { margin: 0 0 2px; color: var(--p1-heading); font-size: 19px; }
.tg-hub-final-meetings p { margin: 0; color: var(--p1-muted); font-size: 10px; }
.tg-hub-final-meetings dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.tg-hub-final-meetings dl > div { display: grid; grid-template-columns: auto 1fr; grid-gap: 6px 8px; gap: 6px 8px; align-items: center; padding: 2px 16px; border-left: 1px solid var(--p1-line); }
.tg-hub-final-meetings dt { display: flex; grid-row: 1 / 3; align-items: center; gap: 5px; color: var(--p1-heading); font-size: 17px; font-weight: 850; }
.tg-hub-final-meetings dt svg { color: var(--p1-green); }
.tg-hub-final-meetings dd { margin: 0; color: var(--p1-muted); font-size: 9px; line-height: 1.25; }
.tg-hub-final-meetings > a { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 12px; border-radius: 4px; background: var(--p1-amber); color: var(--p1-heading); font-size: 10px; font-weight: 850; text-decoration: none; white-space: nowrap; }

@media (max-width: 1100px) {
  .tg-hub-filters { grid-template-columns: 1fr; }
  .tg-hub-filters form { border-top: 1px solid var(--p1-line); }
  .tg-hub-region-toggle { min-height: 42px; justify-content: center; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-hub-final-meetings { grid-template-columns: 1fr auto; }
  .tg-hub-final-meetings dl { grid-column: 1; }
}

@media (max-width: 820px) {
  .tg-hub-final-hero { grid-template-columns: 1fr; gap: 16px; padding: 8px 2px; }
  .tg-hub-final-hero h1 { font-size: 34px; }
  .tg-hub-final-grid { grid-template-columns: 1fr; }
  .tg-hub-filters form { grid-template-columns: 1fr 1fr; }
  .tg-hub-filters form button { grid-column: 1 / -1; }
  .tg-hub-final-meetings { grid-template-columns: 1fr; }
  .tg-hub-final-meetings > a { justify-self: start; }
}

@media (max-width: 540px) {
  .tg-hub-date-tabs { overflow-x: auto; grid-template-columns: repeat(4, 92px); }
  .tg-hub-filters form { grid-template-columns: 1fr; }
  .tg-hub-filters form button { grid-column: 1; }
  .tg-hub-panel > header { grid-template-columns: 38px minmax(0, 1fr); }
  .tg-hub-panel > header > span { width: 38px; height: 38px; }
  .tg-hub-race-focus { grid-template-columns: 30px minmax(0, 1fr) 30px; }
  .tg-hub-race-focus > .tg-hub-pending-action { grid-column: 1 / -1; }
  .tg-hub-tabs { grid-auto-columns: max-content; }
  .tg-hub-tabs > a,
  .tg-hub-tabs > span { min-width: 104px; }
  .tg-hub-profile-list > a,
  .tg-hub-profile-list > div { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tg-hub-profile-list > a > small,
  .tg-hub-profile-list > div > small { display: none; }
  .tg-hub-panel-footer { align-items: flex-start; flex-direction: column; }
  .tg-hub-final-meetings dl { grid-template-columns: 1fr; }
  .tg-hub-final-meetings dl > div { padding: 8px 0; border-top: 1px solid var(--p1-line); border-left: 0; }
}

/* Phase 3 · Point 8: approved AI Race Explorer composition */
.tg-explorer-final { gap: 12px; }
.tg-explorer-hero { display: grid; grid-template-columns: minmax(390px, .85fr) minmax(560px, 1.15fr); grid-gap: 26px; gap: 26px; align-items: center; padding: 8px 5px 5px; }
.tg-explorer-hero h1 { margin: 5px 0 4px; color: var(--p1-heading); font-size: clamp(32px, 3.6vw, 42px); line-height: 1.02; letter-spacing: -.03em; }
.tg-explorer-hero > div:first-child > p { max-width: 610px; margin: 0; color: var(--p1-muted); font-size: 14px; line-height: 1.45; }
.tg-explorer-benefits { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; gap: 8px; }
.tg-explorer-benefits article { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-gap: 9px; gap: 9px; align-items: center; min-height: 78px; padding: 10px 11px; border-radius: 6px; background: #f1f8f5; }
.tg-explorer-benefits article:nth-child(3) { background: #f3f5fb; }
.tg-explorer-benefits article > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #d8f5ea; color: var(--p1-green); }
.tg-explorer-benefits article:nth-child(3) > span { background: #e1e8ff; color: #315fe7; }
.tg-explorer-benefits article svg { width: 20px; }
.tg-explorer-benefits article div { display: grid; grid-gap: 2px; gap: 2px; }
.tg-explorer-benefits strong { color: var(--p1-heading); font-size: 12px; }
.tg-explorer-benefits small { color: var(--p1-muted); font-size: 10px; line-height: 1.35; }

.tg-explorer-filters { display: grid; grid-template-columns: minmax(330px, .78fr) minmax(500px, 1.22fr) auto; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 5px 18px rgb(20 48 40 / 5%); }
.tg-explorer-filters > nav { display: grid; grid-template-columns: repeat(4, 1fr); }
.tg-explorer-filters > nav a { display: grid; min-height: 58px; align-content: center; padding: 6px 9px; border-right: 1px solid var(--p1-line); color: var(--p1-heading); text-align: center; text-decoration: none; }
.tg-explorer-filters > nav strong { font-size: 11px; }
.tg-explorer-filters > nav small { color: var(--p1-muted); font-size: 9px; }
.tg-explorer-filters > nav a.is-active { background: var(--p1-green); color: #fff; }
.tg-explorer-filters > nav a.is-active small { color: #d6e9e3; }
.tg-explorer-filters form { display: grid; grid-template-columns: repeat(4, minmax(88px, 1fr)) auto; grid-gap: 6px; gap: 6px; align-items: center; padding: 8px; }
.tg-explorer-filters select { width: 100%; min-width: 0; height: 37px; padding: 0 26px 0 9px; border: 1px solid var(--p1-line); border-radius: 4px; background-color: #fff; color: var(--p1-heading); font-size: 10px; font-weight: 750; }
.tg-explorer-filters form button { height: 37px; padding: 0 10px; border: 1px solid var(--p1-green); border-radius: 4px; background: #fff; color: var(--p1-green); font-size: 10px; font-weight: 850; }
.tg-explorer-opportunity-toggle { display: flex; min-width: 162px; align-items: center; gap: 7px; padding: 0 11px; border-left: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 10px; font-weight: 750; text-decoration: none; }
.tg-explorer-opportunity-toggle > span { display: grid; width: 31px; height: 18px; align-items: center; padding: 2px; border-radius: 10px; background: #b9c8c3; }
.tg-explorer-opportunity-toggle svg { visibility: hidden; }
.tg-explorer-opportunity-toggle.is-active > span { justify-content: end; background: #0ca575; }
.tg-explorer-opportunity-toggle.is-active > span::after { width: 14px; height: 14px; border-radius: 50%; background: #fff; content: ""; }
.tg-explorer-load-state { display: flex; align-items: center; gap: 8px; padding: 10px 13px; border-left: 3px solid var(--p1-amber); background: #fff8e5; color: var(--p1-heading); font-size: 12px; }

.tg-explorer-workspace { display: grid; grid-template-columns: 178px minmax(0, 1fr); grid-gap: 9px; gap: 9px; }
.tg-explorer-modes { overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-explorer-modes > a { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; grid-gap: 7px; gap: 7px; align-items: start; min-height: 79px; padding: 12px 10px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); text-decoration: none; }
.tg-explorer-modes > a:first-child { border-top: 0; }
.tg-explorer-modes > a > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #eaf8f3; color: #06a875; }
.tg-explorer-modes > a > span svg { width: 16px; }
.tg-explorer-modes > a > div { display: grid; grid-gap: 3px; gap: 3px; }
.tg-explorer-modes > a strong { font-size: 11px; line-height: 1.2; }
.tg-explorer-modes > a small { color: var(--p1-muted); font-size: 9px; line-height: 1.35; }
.tg-explorer-modes > a.is-active { background: var(--p1-green); color: #fff; }
.tg-explorer-modes > a.is-active > span { background: rgb(255 255 255 / 14%); color: #fff; }
.tg-explorer-modes > a.is-active small { color: #d5e8e2; }
.tg-explorer-modes > a.is-active > svg { align-self: center; }
.tg-explorer-modes .tg-explorer-watchlist { min-height: 84px; }

.tg-explorer-shortlist { min-width: 0; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-explorer-shortlist > header { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 18px; padding: 11px 14px; }
.tg-explorer-shortlist > header h2 { margin: 0 0 2px; font-size: 20px; }
.tg-explorer-shortlist > header p { margin: 0; color: var(--p1-muted); font-size: 10px; }
.tg-explorer-shortlist > header > span { color: var(--p1-green); font-size: 10px; font-weight: 800; }
.tg-explorer-table-wrap { overflow-x: auto; outline-offset: -2px; }
.tg-explorer-table { width: 100%; min-width: 990px; border-collapse: collapse; table-layout: fixed; }
.tg-explorer-table th { padding: 7px 6px; border-top: 1px solid var(--p1-line); border-bottom: 1px solid var(--p1-line); background: #f0f5f3; color: var(--p1-muted); font-size: 8px; font-weight: 800; text-align: left; }
.tg-explorer-table th:nth-child(1) { width: 28px; }
.tg-explorer-table th:nth-child(2) { width: 140px; }
.tg-explorer-table th:nth-child(3) { width: 150px; }
.tg-explorer-table th:nth-child(4) { width: 83px; }
.tg-explorer-table th:nth-child(5) { width: 70px; }
.tg-explorer-table th:nth-child(6) { width: 79px; }
.tg-explorer-table th:nth-child(7) { width: 182px; }
.tg-explorer-table th:nth-child(8) { width: 100px; }
.tg-explorer-table td { height: 61px; padding: 6px; border-bottom: 1px solid var(--p1-line); color: var(--p1-heading); font-size: 10px; vertical-align: middle; }
.tg-explorer-table tr:last-child td { border-bottom: 0; }
.tg-explorer-table tbody tr:hover { background: #f9fcfb; }
.tg-explorer-rank { font-size: 15px; }
.tg-explorer-race-cell,
.tg-explorer-runner-cell > span,
.tg-explorer-edge,
.tg-explorer-probability { display: grid; min-width: 0; grid-gap: 2px; gap: 2px; }
.tg-explorer-race-cell strong,
.tg-explorer-runner-cell strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tg-explorer-race-cell small,
.tg-explorer-runner-cell small { overflow: hidden; color: var(--p1-muted); font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.tg-explorer-runner-cell { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 7px; gap: 7px; align-items: center; }
.tg-explorer-probability strong { font-size: 14px; }
.tg-explorer-probability i { display: block; width: 54px; height: 5px; overflow: hidden; border-radius: 3px; background: #e0e9e6; }
.tg-explorer-probability i b { display: block; height: 100%; background: #0aa474; }
.tg-explorer-confidence { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 850; }
.tg-explorer-confidence svg { color: #0aac78; }
.tg-explorer-edge strong { font-size: 13px; }
.tg-explorer-edge small { width: -moz-fit-content; width: fit-content; padding: 1px 4px; border-radius: 3px; background: #eef2f1; color: var(--p1-muted); font-size: 8px; }
.tg-explorer-edge.is-positive strong { color: #07865b; }
.tg-explorer-edge.is-positive small { background: #d7f5e9; color: #06704d; }
.tg-explorer-edge.is-negative strong { color: #d43b36; }
.tg-explorer-edge.is-negative small { background: #ffe4e2; color: #b42f2b; }
.tg-explorer-table td ul { display: grid; grid-gap: 2px; gap: 2px; margin: 0; padding: 0; list-style: none; }
.tg-explorer-table td li { display: grid; grid-template-columns: 13px minmax(0, 1fr); grid-gap: 3px; gap: 3px; align-items: start; overflow: hidden; color: #40534d; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.tg-explorer-table td li svg { color: #08a674; }
.tg-explorer-table td:last-child > a { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; gap: 4px; padding: 6px 8px; border-radius: 4px; background: var(--p1-amber); color: var(--p1-heading); font-size: 9px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tg-explorer-shortlist .tg-p1-empty { margin: 12px; }

.tg-explorer-context { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-gap: 9px; gap: 9px; }
.tg-explorer-context > article { display: flex; min-width: 0; min-height: 178px; overflow: hidden; flex-direction: column; padding: 12px; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-explorer-context > article > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tg-explorer-context > article > header > div { display: flex; align-items: center; gap: 7px; }
.tg-explorer-context > article > header span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: #e5f8f1; color: var(--p1-green); }
.tg-explorer-context > article > header svg { width: 16px; }
.tg-explorer-context h2 { margin: 0; font-size: 17px; }
.tg-explorer-context header > small { color: var(--p1-muted); font-size: 9px; }
.tg-explorer-context > article > a,
.tg-explorer-pending-link { display: flex; min-height: 30px; align-items: center; justify-content: center; gap: 6px; margin-top: auto; border: 1px solid var(--p1-line); color: var(--p1-green); font-size: 9px; font-weight: 800; text-align: center; text-decoration: none; }
.tg-explorer-pending-link { color: #7d8d87; }
.tg-explorer-pending-link.is-ready { color: var(--p1-green); }
.tg-explorer-overview-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 8px; border: 1px solid var(--p1-line); }
.tg-explorer-overview-stats > div { display: grid; grid-template-columns: auto 1fr; grid-gap: 4px 7px; gap: 4px 7px; align-items: center; min-width: 0; padding: 11px 8px; border-left: 1px solid var(--p1-line); }
.tg-explorer-overview-stats > div:first-child { border-left: 0; }
.tg-explorer-overview-stats dt { display: flex; grid-row: 1 / 3; align-items: center; gap: 4px; color: var(--p1-heading); font-size: 17px; font-weight: 850; }
.tg-explorer-overview-stats dt svg { width: 17px; color: var(--p1-green); }
.tg-explorer-overview-stats dd { display: grid; min-width: 0; margin: 0; }
.tg-explorer-overview-stats dd b { font-size: 9px; }
.tg-explorer-overview-stats dd small { overflow: hidden; color: var(--p1-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.tg-explorer-insight-list,
.tg-explorer-howto { display: grid; grid-gap: 5px; gap: 5px; margin: 0 0 8px; padding: 0; list-style: none; }
.tg-explorer-insight-list li,
.tg-explorer-howto li { display: grid; grid-template-columns: 31px minmax(0, 1fr); grid-gap: 8px; gap: 8px; align-items: center; min-height: 38px; padding: 5px 8px; border: 1px solid var(--p1-line); border-radius: 4px; }
.tg-explorer-insight-list li > strong,
.tg-explorer-howto li > strong { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: #e6efff; color: #315fe7; font-size: 14px; }
.tg-explorer-insight-list li.is-positive > strong { background: #def7ed; color: #07865b; }
.tg-explorer-insight-list li.is-warning > strong { background: #ffe7e5; color: #d43b36; }
.tg-explorer-insight-list li span,
.tg-explorer-howto li span { display: grid; min-width: 0; }
.tg-explorer-insight-list li b,
.tg-explorer-howto li b { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tg-explorer-insight-list li small,
.tg-explorer-howto li small { overflow: hidden; color: var(--p1-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
  .tg-explorer-hero { grid-template-columns: 1fr; }
  .tg-explorer-filters { grid-template-columns: 1fr; }
  .tg-explorer-filters form { border-top: 1px solid var(--p1-line); }
  .tg-explorer-opportunity-toggle { min-height: 42px; justify-content: center; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-explorer-context { grid-template-columns: 1fr 1fr; }
  .tg-explorer-context > article:last-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .tg-explorer-benefits { grid-template-columns: 1fr; }
  .tg-explorer-benefits article { min-height: 64px; }
  .tg-explorer-filters form { grid-template-columns: 1fr 1fr; }
  .tg-explorer-filters form button { grid-column: 1 / -1; }
  .tg-explorer-workspace { grid-template-columns: 1fr; }
  .tg-explorer-modes { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); overflow-x: auto; }
  .tg-explorer-modes > a { border-top: 0; border-left: 1px solid var(--p1-line); }
  .tg-explorer-modes > a:first-child { border-left: 0; }
  .tg-explorer-modes .tg-explorer-watchlist { display: none; }
  .tg-explorer-context { grid-template-columns: 1fr; }
  .tg-explorer-context > article:last-child { grid-column: 1; }
}

@media (max-width: 500px) {
  .tg-explorer-hero h1 { font-size: 34px; }
  .tg-explorer-filters > nav { overflow-x: auto; grid-template-columns: repeat(4, 92px); }
  .tg-explorer-filters form { grid-template-columns: 1fr; }
  .tg-explorer-filters form button { grid-column: 1; }
  .tg-explorer-shortlist > header { align-items: flex-start; flex-direction: column; gap: 4px; }
  .tg-explorer-overview-stats { grid-template-columns: 1fr; }
  .tg-explorer-overview-stats > div { border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-explorer-overview-stats > div:first-child { border-top: 0; }
}

/* Phase 3 · Point 9: approved Orion Agreement Lab composition */
.tg-orion-final { gap: 11px; }
.tg-orion-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; grid-gap: 30px; gap: 30px; align-items: center; padding: 8px 6px 4px; }
.tg-orion-hero h1 { max-width: 830px; margin: 5px 0 4px; color: var(--p1-heading); font-size: clamp(32px, 3.8vw, 43px); line-height: 1.02; letter-spacing: -.035em; }
.tg-orion-hero > div > p { max-width: 790px; margin: 0; color: var(--p1-muted); font-size: 14px; line-height: 1.45; }
.tg-orion-hero aside { display: grid; grid-template-columns: 39px minmax(0, 1fr); grid-gap: 10px; gap: 10px; align-items: start; padding: 13px; border-radius: 6px; background: #eaf8f3; }
.tg-orion-hero aside > span { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 50%; background: #cdf3e5; color: var(--p1-green); }
.tg-orion-hero aside svg { width: 21px; }
.tg-orion-hero aside div { display: grid; grid-gap: 3px; gap: 3px; }
.tg-orion-hero aside strong { color: var(--p1-heading); font-size: 12px; }
.tg-orion-hero aside small { color: var(--p1-muted); font-size: 10px; line-height: 1.4; }
.tg-orion-access-state { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 15px; gap: 15px; align-items: center; min-height: 150px; padding: 24px; border: 1px solid var(--p1-line); border-left: 4px solid var(--p1-green); border-radius: 6px; background: #fff; }
.tg-orion-access-state.is-warning { border-left-color: var(--p1-amber); }
.tg-orion-access-state > svg { color: var(--p1-green); }
.tg-orion-access-state.is-warning > svg { color: var(--p1-amber-dark); }
.tg-orion-access-state h2 { margin: 0 0 5px; font-size: 21px; }
.tg-orion-access-state p { margin: 0; color: var(--p1-muted); font-size: 13px; }
.tg-orion-access-state > :where(a, button) { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 8px 12px; border: 0; border-radius: 4px; background: var(--p1-amber); color: var(--p1-heading); font: inherit; font-size: 11px; font-weight: 850; text-decoration: none; cursor: pointer; }

.tg-orion-filters { display: grid; grid-template-columns: minmax(330px, .8fr) minmax(500px, 1.2fr) auto; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 5px 18px rgb(20 48 40 / 5%); }
.tg-orion-filters > nav { display: grid; grid-template-columns: repeat(4, 1fr); }
.tg-orion-filters > nav a { display: grid; min-height: 56px; align-content: center; padding: 6px 9px; border-right: 1px solid var(--p1-line); color: var(--p1-heading); text-align: center; text-decoration: none; }
.tg-orion-filters > nav strong { font-size: 11px; }
.tg-orion-filters > nav small { color: var(--p1-muted); font-size: 9px; }
.tg-orion-filters > nav a.is-active { background: var(--p1-green); color: #fff; }
.tg-orion-filters > nav a.is-active small { color: #d5e7e1; }
.tg-orion-filters form { display: grid; grid-template-columns: repeat(4, minmax(88px, 1fr)) auto; grid-gap: 6px; gap: 6px; align-items: center; padding: 8px; }
.tg-orion-filters select { width: 100%; min-width: 0; height: 36px; padding: 0 25px 0 9px; border: 1px solid var(--p1-line); border-radius: 4px; background-color: #fff; color: var(--p1-heading); font-size: 10px; font-weight: 750; }
.tg-orion-filters form button { height: 36px; padding: 0 10px; border: 1px solid var(--p1-green); border-radius: 4px; background: #fff; color: var(--p1-green); font-size: 10px; font-weight: 850; }
.tg-orion-region-toggle { display: flex; min-width: 147px; align-items: center; gap: 7px; padding: 0 11px; border-left: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 10px; font-weight: 750; text-decoration: none; }
.tg-orion-region-toggle > span { display: grid; width: 31px; height: 18px; align-items: center; padding: 2px; border-radius: 10px; background: #b9c8c3; }
.tg-orion-region-toggle svg { visibility: hidden; }
.tg-orion-region-toggle.is-active > span { justify-content: end; background: #0ca575; }
.tg-orion-region-toggle.is-active > span::after { width: 14px; height: 14px; border-radius: 50%; background: #fff; content: ""; }

.tg-orion-primary-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-gap: 9px; gap: 9px; }
.tg-orion-secondary-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-gap: 9px; gap: 9px; }
.tg-orion-panel { min-width: 0; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 6px 22px rgb(20 48 40 / 4%); }
.tg-orion-panel-heading { display: grid; grid-template-columns: 39px minmax(0, 1fr) auto; grid-gap: 9px; gap: 9px; align-items: start; min-height: 58px; padding: 10px 12px 7px; }
.tg-orion-panel-heading > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #dff7ee; color: var(--p1-green); }
.tg-orion-panel-heading > span svg { width: 19px; }
.tg-orion-panel-heading h2 { margin: 0 0 2px; font-size: 18px; }
.tg-orion-panel-heading p { margin: 0; color: var(--p1-muted); font-size: 9px; line-height: 1.35; }
.tg-orion-panel-heading aside { color: var(--p1-green); font-size: 8px; font-weight: 750; }
.tg-orion-panel-heading aside > span { display: inline-flex; align-items: center; gap: 4px; }

.tg-orion-race-score { display: grid; grid-template-columns: minmax(0, 1fr) 190px; grid-gap: 10px; gap: 10px; align-items: center; padding: 0 12px 8px; }
.tg-orion-race-picker { display: grid; grid-template-columns: 29px minmax(0, 1fr) 29px; grid-gap: 6px; gap: 6px; align-items: center; }
.tg-orion-race-picker > a { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--p1-line); border-radius: 4px; color: var(--p1-green); }
.tg-orion-race-picker > a.is-disabled { color: #acb8b4; pointer-events: none; }
.tg-orion-race-picker form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.tg-orion-race-picker select { min-width: 0; height: 34px; padding: 0 8px; border: 1px solid var(--p1-line); border-radius: 4px 0 0 4px; color: var(--p1-heading); font-size: 12px; font-weight: 850; }
.tg-orion-race-picker button { padding: 0 8px; border: 0; border-radius: 0 4px 4px 0; background: var(--p1-green); color: #fff; font-size: 8px; font-weight: 800; }
.tg-orion-race-picker > small { grid-column: 2; overflow: hidden; color: var(--p1-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tg-orion-score { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tg-orion-score > span { position: relative; display: grid; width: 68px; height: 68px; place-content: center; border-radius: 50%; background: conic-gradient(#08a474 0 var(--orion-score), #e3eeea var(--orion-score) 360deg); text-align: center; }
.tg-orion-score > span::before { position: absolute; inset: 7px; border-radius: 50%; background: #fff; content: ""; }
.tg-orion-score > span strong,
.tg-orion-score > span small { position: relative; z-index: 1; }
.tg-orion-score > span strong { color: var(--p1-heading); font-size: 22px; line-height: 1; }
.tg-orion-score > span small { color: var(--p1-muted); font-size: 8px; }
.tg-orion-score > b { padding: 5px 7px; border-radius: 12px; background: #daf5e9; color: #067352; font-size: 9px; white-space: nowrap; }
.tg-orion-score.is-partial > b,
.tg-orion-score.is-unavailable > b { background: #fff1d8; color: #7b590b; }

.tg-orion-model-table > div { display: grid; grid-template-columns: 74px minmax(125px, 1fr) minmax(115px, .9fr) 80px 84px; grid-gap: 7px; gap: 7px; align-items: center; min-height: 42px; padding: 5px 11px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); font-size: 10px; }
.tg-orion-table-head { background: #f0f5f3; color: var(--p1-muted) !important; font-size: 8px !important; font-weight: 800; }
.tg-orion-model-table > div > span { display: flex; min-width: 0; align-items: center; gap: 5px; }
.tg-orion-model-table > div > span b,
.tg-orion-model-table > div > span small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-orion-model-table > div > span:nth-child(3) { display: grid; grid-template-columns: auto 54px; }
.tg-orion-model-table > div > span:nth-child(3) i { display: block; height: 5px; overflow: hidden; border-radius: 3px; background: #e3ebe8; }
.tg-orion-model-table > div > span:nth-child(3) em { display: block; height: 100%; background: #0ba676; }
.tg-orion-model-table > div > span:nth-child(4) svg { color: #0ba676; }
.tg-orion-model-table > div > span:last-child small { padding: 3px 6px; border-radius: 11px; background: #e2f6ef; color: #05714f; font-weight: 750; }
.tg-orion-model-table > div.is-unavailable { color: #84928d; }
.tg-orion-summary { display: flex; align-items: center; gap: 7px; min-height: 36px; margin: 7px 11px; padding: 7px 9px; border-radius: 4px; background: #e6f8f1; color: #245248; font-size: 9px; }
.tg-orion-summary svg { width: 16px; flex: 0 0 auto; color: #0aa575; }
.tg-orion-summary.is-partial,
.tg-orion-summary.is-unavailable { background: #fff5df; color: #695219; }
.tg-orion-summary.is-partial svg,
.tg-orion-summary.is-unavailable svg { color: var(--p1-amber-dark); }
.tg-orion-overview > footer { display: flex; gap: 8px; padding: 0 11px 11px; }
.tg-orion-overview > footer a { display: inline-flex; min-height: 34px; flex: 1 1; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--p1-green); border-radius: 4px; color: var(--p1-green); font-size: 9px; font-weight: 850; text-decoration: none; }
.tg-orion-overview > footer a:first-child { border-color: var(--p1-amber); background: var(--p1-amber); color: var(--p1-heading); }

.tg-orion-difference-list { margin: 0 10px; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 5px; }
.tg-orion-difference-list > div { display: grid; grid-template-columns: minmax(125px, .9fr) minmax(115px, .8fr) minmax(115px, 1fr); grid-gap: 8px; gap: 8px; align-items: center; min-height: 43px; padding: 6px 9px; border-top: 1px solid var(--p1-line); }
.tg-orion-difference-list > div:first-child { border-top: 0; }
.tg-orion-difference-list > div > span:first-child { display: flex; align-items: center; gap: 6px; }
.tg-orion-difference-list > div > span:first-child i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #dcf7ed; color: #08a575; }
.tg-orion-difference-list > div.is-purple > span:first-child i { background: #e8e1ff; color: #714fe8; }
.tg-orion-difference-list > div.is-amber > span:first-child i { background: #fff0c5; color: #ca8f00; }
.tg-orion-difference-list > div.is-red > span:first-child i { background: #ffe2e1; color: #db403c; }
.tg-orion-difference-list svg { width: 12px; }
.tg-orion-difference-list strong { font-size: 9px; }
.tg-orion-difference-list > div > small { color: var(--p1-muted); font-size: 8px; line-height: 1.25; }
.tg-orion-level { display: flex; align-items: center; gap: 2px; }
.tg-orion-level > i { width: 10px; height: 7px; background: #e4e9e7; }
.tg-orion-level > i.is-filled { background: #0aa575; }
.tg-orion-level b { margin-left: 5px; padding: 2px 5px; border-radius: 9px; background: #eef2f1; color: var(--p1-muted); font-size: 8px; }
.tg-orion-challenger { margin: 7px 10px; padding: 8px; border-radius: 4px; background: #f4f8f7; }
.tg-orion-challenger > span { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-gap: 3px 7px; gap: 3px 7px; align-items: center; }
.tg-orion-challenger > span > strong { grid-column: 1 / -1; font-size: 8px; }
.tg-orion-challenger b { font-size: 10px; }
.tg-orion-challenger small { color: var(--p1-muted); font-size: 8px; }
.tg-orion-differences > p { display: flex; gap: 5px; margin: 0; padding: 0 11px 9px; color: var(--p1-muted); font-size: 8px; line-height: 1.3; }
.tg-orion-differences > p svg { flex: 0 0 auto; color: #315fe7; }

.tg-orion-rationale > div { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 7px; gap: 7px; padding: 0 10px 10px; }
.tg-orion-rationale section { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-gap: 6px 8px; gap: 6px 8px; align-content: start; padding: 8px; border: 1px solid var(--p1-line); border-radius: 5px; }
.tg-orion-rationale section > header { grid-column: 1 / -1; display: flex; gap: 6px; align-items: center; }
.tg-orion-rationale section > header > span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #e4edff; color: #315fe7; }
.tg-orion-rationale section.is-mercury > header > span { background: #eee8ff; color: #714fe8; }
.tg-orion-rationale section.is-sirius > header > span { background: #dff7ee; color: #08a575; }
.tg-orion-rationale section > header svg { width: 15px; }
.tg-orion-rationale section > header div { display: grid; }
.tg-orion-rationale section > header strong { font-size: 10px; }
.tg-orion-rationale section > header small { color: var(--p1-muted); font-size: 8px; }
.tg-orion-rationale section > .tg-live-silk,
.tg-orion-no-silk { align-self: center; }
.tg-orion-no-silk { display: grid; width: 40px; height: 40px; place-items: center; color: var(--p1-muted); }
.tg-orion-rationale ul { display: grid; grid-gap: 3px; gap: 3px; margin: 0; padding: 0; list-style: none; }
.tg-orion-rationale li { display: grid; grid-template-columns: 12px minmax(0, 1fr); grid-gap: 3px; gap: 3px; color: #40534d; font-size: 8px; line-height: 1.3; }
.tg-orion-rationale li svg { width: 11px; color: #08a575; }
.tg-orion-rationale section > small { grid-column: 1 / -1; padding-top: 5px; border-top: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 7px; }
.tg-orion-rationale section.is-unavailable { background: #fafbfb; opacity: .72; }

.tg-orion-chart { padding: 0 12px 5px; }
.tg-orion-chart > div { display: flex; justify-content: flex-end; gap: 12px; }
.tg-orion-chart > div span { display: inline-flex; align-items: center; gap: 4px; color: var(--p1-muted); font-size: 8px; }
.tg-orion-chart > div i { width: 7px; height: 7px; border-radius: 50%; }
.tg-orion-chart svg { display: block; width: 100%; height: 145px; }
.tg-orion-chart svg line { stroke: #e4ebe8; stroke-width: 1; }
.tg-orion-chart svg text { fill: #657771; font-size: 8px; }
.tg-orion-chart svg .tg-orion-chart-time { font-size: 8px; }
.tg-orion-timeline > aside { margin: 0 10px 9px; padding: 8px; border-radius: 4px; background: #eaf8f3; color: #315b51; font-size: 8px; line-height: 1.35; }
.tg-orion-timeline-empty { display: grid; min-height: 132px; place-items: center; align-content: center; grid-gap: 4px; gap: 4px; padding: 14px; color: var(--p1-muted); text-align: center; }
.tg-orion-timeline-empty svg { color: var(--p1-amber-dark); }
.tg-orion-timeline-empty strong { color: var(--p1-heading); font-size: 12px; }
.tg-orion-timeline-empty span { font-size: 9px; }

.tg-orion-strongest .tg-orion-panel-heading { min-height: 52px; }
.tg-orion-strongest > div { overflow-x: auto; }
.tg-orion-strongest table { width: 100%; min-width: 850px; border-collapse: collapse; }
.tg-orion-strongest th { padding: 5px 9px; border-top: 1px solid var(--p1-line); border-bottom: 1px solid var(--p1-line); background: #f0f5f3; color: var(--p1-muted); font-size: 8px; text-align: left; }
.tg-orion-strongest td { height: 30px; padding: 4px 9px; border-bottom: 1px solid var(--p1-line); color: var(--p1-heading); font-size: 8px; }
.tg-orion-strongest tr:last-child td { border-bottom: 0; }
.tg-orion-strongest td > span { display: inline-flex; align-items: center; gap: 5px; }
.tg-orion-strongest td:nth-child(4) strong { color: var(--p1-green); }
.tg-orion-strongest td:last-child a { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: #f2f6f5; color: var(--p1-green); }

.tg-orion-education { display: grid; grid-template-columns: minmax(210px, .85fr) repeat(3, minmax(160px, 1fr)) auto; grid-gap: 8px; gap: 8px; align-items: center; padding: 9px 11px; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-orion-education > div { display: grid; grid-template-columns: 35px minmax(0, 1fr); grid-gap: 8px; gap: 8px; align-items: center; }
.tg-orion-education > div > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: #dff7ee; color: var(--p1-green); }
.tg-orion-education h2 { margin: 0 0 2px; font-size: 15px; }
.tg-orion-education p { margin: 0; color: var(--p1-muted); font-size: 8px; line-height: 1.3; }
.tg-orion-education article { display: grid; grid-template-columns: 26px minmax(0, 1fr); grid-gap: 6px; gap: 6px; align-items: center; min-height: 44px; padding: 5px 8px; border: 1px solid var(--p1-line); border-radius: 4px; }
.tg-orion-education article > svg { width: 18px; color: var(--p1-green); }
.tg-orion-education article > span { display: grid; }
.tg-orion-education article strong { font-size: 8px; }
.tg-orion-education article small { color: var(--p1-muted); font-size: 7px; line-height: 1.2; }
.tg-orion-education > a { display: inline-flex; align-items: center; gap: 4px; color: var(--p1-green); font-size: 8px; font-weight: 800; text-decoration: none; white-space: nowrap; }

@media (max-width: 1100px) {
  .tg-orion-filters { grid-template-columns: 1fr; }
  .tg-orion-filters form { border-top: 1px solid var(--p1-line); }
  .tg-orion-region-toggle { min-height: 42px; justify-content: center; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-orion-primary-grid,
  .tg-orion-secondary-grid { grid-template-columns: 1fr; }
  .tg-orion-education { grid-template-columns: repeat(3, 1fr); }
  .tg-orion-education > div { grid-column: 1 / -1; }
  .tg-orion-education > a { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 760px) {
  .tg-orion-hero { grid-template-columns: 1fr; gap: 14px; }
  .tg-orion-filters form { grid-template-columns: 1fr 1fr; }
  .tg-orion-filters form button { grid-column: 1 / -1; }
  .tg-orion-race-score { grid-template-columns: 1fr; }
  .tg-orion-score { justify-content: flex-start; }
  .tg-orion-model-table { overflow-x: auto; }
  .tg-orion-model-table > div { min-width: 560px; }
  .tg-orion-rationale > div { grid-template-columns: 1fr; }
  .tg-orion-education { grid-template-columns: 1fr; }
  .tg-orion-education > div,
  .tg-orion-education > a { grid-column: 1; }
  .tg-orion-access-state { grid-template-columns: auto minmax(0, 1fr); }
  .tg-orion-access-state > :where(a, button) { grid-column: 2; justify-self: start; }
}

@media (max-width: 500px) {
  .tg-orion-hero h1 { font-size: 34px; }
  .tg-orion-filters > nav { overflow-x: auto; grid-template-columns: repeat(4, 92px); }
  .tg-orion-filters form { grid-template-columns: 1fr; }
  .tg-orion-filters form button { grid-column: 1; }
  .tg-orion-panel-heading { grid-template-columns: 36px minmax(0, 1fr); }
  .tg-orion-panel-heading aside { grid-column: 2; }
  .tg-orion-race-picker { grid-template-columns: 26px minmax(0, 1fr) 26px; }
  .tg-orion-race-picker form { grid-template-columns: 1fr; }
  .tg-orion-race-picker button { min-height: 28px; border-radius: 0 0 4px 4px; }
  .tg-orion-race-picker select { border-radius: 4px 4px 0 0; }
  .tg-orion-difference-list > div { grid-template-columns: 1fr; gap: 4px; }
  .tg-orion-overview > footer { flex-direction: column; }
  .tg-orion-access-state { grid-template-columns: 1fr; }
  .tg-orion-access-state > :where(a, button) { grid-column: 1; }
}

/* Phase 3 · Point 10: approved Racing Profiles directory */
.tg-profiles-final { gap: 11px; }
.tg-profiles-hero { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); grid-gap: 28px; gap: 28px; align-items: center; padding: 12px 18px; border-radius: 6px; background: linear-gradient(100deg, #fff 0%, #fff 58%, #e8fbf6 100%); }
.tg-profiles-hero h1 { max-width: 780px; margin: 4px 0 5px; color: var(--p1-heading); font-size: clamp(30px, 3.5vw, 45px); line-height: 1.02; letter-spacing: -.035em; }
.tg-profiles-hero p { max-width: 780px; margin: 0; color: #505f9a; font-size: 14px; line-height: 1.45; }
.tg-profiles-hero aside { display: flex; gap: 11px; padding: 13px; border: 1px solid #cceee4; border-radius: 6px; background: rgb(234 253 247 / 82%); }
.tg-profiles-hero aside > span { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #bdf5e5; color: var(--p1-green); }
.tg-profiles-hero aside svg { width: 20px; }
.tg-profiles-hero aside div { display: grid; grid-gap: 3px; gap: 3px; }
.tg-profiles-hero aside strong { color: var(--p1-heading); font-size: 12px; }
.tg-profiles-hero aside small { color: var(--p1-muted); font-size: 10px; line-height: 1.4; }

.tg-profiles-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 6px 22px rgb(20 48 40 / 4%); }
.tg-profiles-controls form { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(420px, 1fr); }
.tg-profiles-search { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 9px; border-right: 1px solid var(--p1-line); }
.tg-profiles-search svg { flex: 0 0 auto; color: #315fe7; }
.tg-profiles-search input { width: 100%; min-width: 0; height: 30px; border: 0; outline: 0; color: var(--p1-heading); font-size: 12px; }
.tg-profiles-search button { min-height: 30px; padding: 0 10px; border: 0; border-radius: 4px; background: var(--p1-green); color: #fff; font-size: 10px; font-weight: 850; }
.tg-profiles-controls nav { display: grid; grid-template-columns: repeat(4, 1fr); min-width: 0; }
.tg-profiles-controls nav a { display: flex; min-width: 0; min-height: 42px; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border-right: 1px solid var(--p1-line); color: var(--p1-heading); font-size: 11px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tg-profiles-controls nav a svg { width: 17px; }
.tg-profiles-controls nav a.is-active { background: #d9f8ee; color: var(--p1-green); box-shadow: inset 0 -3px #0bac78; }
.tg-profiles-filter-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(125px, 1fr)) auto; grid-gap: 8px; gap: 8px; padding: 7px 9px; border-top: 1px solid var(--p1-line); }
.tg-profiles-filter-row label { display: grid; grid-gap: 2px; gap: 2px; }
.tg-profiles-filter-row label > span { color: var(--p1-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.tg-profiles-filter-row select { width: 100%; min-width: 0; height: 34px; padding: 0 28px 0 9px; border: 1px solid var(--p1-line); border-radius: 4px; background-color: #fff; color: var(--p1-heading); font-size: 10px; font-weight: 700; }
.tg-profiles-apply { display: inline-flex; min-height: 34px; align-self: end; align-items: center; gap: 5px; padding: 0 11px; border: 1px solid var(--p1-green); border-radius: 4px; background: #fff; color: var(--p1-green); font-size: 10px; font-weight: 850; }
.tg-profiles-region { display: flex; min-width: 182px; align-items: center; justify-content: center; gap: 7px; padding: 0 12px; border-left: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.tg-profiles-region > span { position: relative; width: 34px; height: 19px; border-radius: 11px; background: #b7c7c1; }
.tg-profiles-region > span::after { position: absolute; top: 3px; left: 3px; width: 13px; height: 13px; border-radius: 50%; background: #fff; content: ""; }
.tg-profiles-region.is-active > span { background: #0ca575; }
.tg-profiles-region.is-active > span::after { right: 3px; left: auto; }

.tg-profiles-error { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 13px; gap: 13px; align-items: center; padding: 22px; border: 1px solid #efcf82; border-left: 4px solid var(--p1-amber); border-radius: 6px; background: #fffaf0; }
.tg-profiles-error > svg { color: var(--p1-amber-dark); }
.tg-profiles-error h2 { margin: 0 0 3px; font-size: 17px; }
.tg-profiles-error p { margin: 0; color: var(--p1-muted); font-size: 12px; }
.tg-profiles-error a { display: inline-flex; align-items: center; gap: 5px; color: var(--p1-green); font-size: 11px; font-weight: 850; text-decoration: none; }

.tg-profiles-top-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); grid-gap: 9px; gap: 9px; }
.tg-profiles-middle-grid { display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr); grid-gap: 9px; gap: 9px; }
.tg-profiles-panel { min-width: 0; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 6px 22px rgb(20 48 40 / 4%); }
.tg-profiles-panel-heading { display: grid; grid-template-columns: 29px minmax(0, 1fr) auto; grid-gap: 8px; gap: 8px; align-items: center; min-height: 44px; padding: 7px 10px 5px; }
.tg-profiles-panel-heading > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #dff7ee; color: var(--p1-green); }
.tg-profiles-panel-heading svg { width: 16px; }
.tg-profiles-panel-heading h2 { margin: 0; color: var(--p1-heading); font-size: 16px; }
.tg-profiles-panel-heading aside { color: #315fe7; font-size: 8px; font-weight: 800; }
.tg-profiles-panel-heading aside a { color: inherit; text-decoration: none; }

.tg-profiles-feature-card { display: grid; grid-template-columns: minmax(0, 1fr) 92px 92px; grid-gap: 10px; gap: 10px; align-items: center; margin: 0 9px; padding: 10px; border: 1px solid var(--p1-line); border-radius: 5px; }
.tg-profiles-feature-identity { display: grid; grid-template-columns: 66px minmax(0, 1fr); grid-gap: 10px; gap: 10px; align-items: center; }
.tg-profiles-feature-identity .tg-live-silk { width: 60px; height: 60px; }
.tg-profiles-feature-identity h2 { margin: 0 0 3px; color: var(--p1-heading); font-size: 19px; }
.tg-profiles-feature-identity p { overflow: hidden; margin: 0 0 7px; color: #52627d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tg-profiles-mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #dff7ee; color: var(--p1-green); }
.tg-profiles-mark svg { width: 16px; }
.tg-profiles-mark.is-large { width: 60px; height: 60px; }
.tg-profiles-mark.is-large svg { width: 30px; }
.tg-profiles-gauge { display: grid; justify-items: center; grid-gap: 3px; gap: 3px; text-align: center; }
.tg-profiles-gauge > span { position: relative; display: grid; width: 61px; height: 61px; place-items: center; border-radius: 50%; background: conic-gradient(#09a878 0 var(--profile-gauge), #e2ece8 var(--profile-gauge) 360deg); }
.tg-profiles-gauge > span::before { position: absolute; inset: 7px; border-radius: 50%; background: #fff; content: ""; }
.tg-profiles-gauge strong { position: relative; z-index: 1; color: var(--p1-heading); font-size: 16px; }
.tg-profiles-gauge small { color: var(--p1-heading); font-size: 7px; font-weight: 750; }
.tg-profiles-feature-notes { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 7px; gap: 7px; margin: 7px 9px; }
.tg-profiles-feature-notes > span { display: grid; grid-template-columns: 25px minmax(0, 1fr); grid-gap: 1px 6px; gap: 1px 6px; align-items: center; min-height: 42px; padding: 5px 7px; border-radius: 4px; background: #f2f8f6; }
.tg-profiles-feature-notes svg { grid-row: 1 / span 2; width: 17px; color: #08a575; }
.tg-profiles-feature-notes strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tg-profiles-feature-notes small { color: var(--p1-muted); font-size: 7px; }
.tg-profiles-featured > p { margin: 0 9px 7px; padding: 7px; border-radius: 4px; background: #eef6ff; color: #485e81; font-size: 8px; line-height: 1.35; }
.tg-profiles-primary-action { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; margin: 0 9px 9px; border-radius: 4px; background: var(--p1-amber); color: var(--p1-heading); font-size: 10px; font-weight: 850; text-decoration: none; }
.tg-profiles-detail-state { display: flex; align-items: center; gap: 6px; margin: 0 9px 9px; padding: 8px; border: 1px solid var(--p1-line); border-radius: 4px; color: var(--p1-muted); font-size: 8px; }

.tg-profiles-snapshot > div { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 6px; gap: 6px; padding: 0 9px 8px; }
.tg-profiles-snapshot section { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-gap: 7px; gap: 7px; align-items: center; min-height: 64px; padding: 7px; border: 1px solid var(--p1-line); border-radius: 5px; }
.tg-profiles-snapshot section > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #ddf8ef; color: var(--p1-green); }
.tg-profiles-snapshot section > span svg { width: 17px; }
.tg-profiles-snapshot section > div { display: grid; grid-gap: 3px; gap: 3px; min-width: 0; }
.tg-profiles-snapshot section strong { font-size: 9px; }
.tg-profiles-snapshot section i { display: flex; gap: 2px; }
.tg-profiles-snapshot section i b { width: 14px; height: 7px; background: #e1e8e6; }
.tg-profiles-snapshot section i b.is-filled { background: #08a575; }
.tg-profiles-snapshot section small { color: var(--p1-muted); font-size: 7px; line-height: 1.25; }
.tg-profiles-snapshot > p { display: flex; align-items: center; gap: 5px; margin: 0 9px 8px; padding: 6px 8px; border-radius: 4px; background: #e8f5ff; color: #45617c; font-size: 7px; }
.tg-profiles-snapshot > p svg { flex: 0 0 auto; color: #315fe7; }

.tg-profiles-review > p,
.tg-profiles-trend > p,
.tg-profiles-directory > p { margin: -3px 10px 7px 47px; color: var(--p1-muted); font-size: 8px; }
.tg-profiles-review > div { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 6px; gap: 6px; padding: 0 9px 9px; }
.tg-profiles-review section { display: grid; grid-template-columns: 31px minmax(0, 1fr); grid-gap: 7px; gap: 7px; align-items: center; min-height: 49px; padding: 6px; border: 1px solid var(--p1-line); border-radius: 4px; }
.tg-profiles-review section > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #e0f8f0; color: var(--p1-green); }
.tg-profiles-review section svg { width: 16px; }
.tg-profiles-review section div { display: grid; }
.tg-profiles-review section strong { font-size: 8px; }
.tg-profiles-review section small { color: var(--p1-muted); font-size: 7px; line-height: 1.2; }

.tg-profiles-chart { padding: 0 9px 5px; }
.tg-profiles-chart > div { display: flex; justify-content: flex-end; gap: 13px; }
.tg-profiles-chart > div span { display: inline-flex; align-items: center; gap: 4px; color: var(--p1-muted); font-size: 7px; }
.tg-profiles-chart > div i { width: 7px; height: 7px; border-radius: 50%; }
.tg-profiles-chart > div i.is-finish { background: #08a575; }
.tg-profiles-chart > div i.is-rating { background: #315fe7; }
.tg-profiles-chart svg { display: block; width: 100%; height: 144px; }
.tg-profiles-chart svg line { stroke: #e4ebe8; stroke-width: 1; }
.tg-profiles-chart svg text { fill: #657771; font-size: 8px; }
.tg-profiles-finish-line { stroke: #08a575; stroke-width: 2.4; }
.tg-profiles-finish-dot { fill: #08a575; }
.tg-profiles-rating-line { stroke: #315fe7; stroke-width: 2; }
.tg-profiles-rating-dot { fill: #315fe7; }
.tg-profiles-chart svg .tg-profiles-chart-label { font-size: 7px; }
.tg-profiles-trend-empty { display: grid; min-height: 145px; place-items: center; align-content: center; grid-gap: 3px; gap: 3px; color: var(--p1-muted); text-align: center; }
.tg-profiles-trend-empty svg { color: var(--p1-amber-dark); }
.tg-profiles-trend-empty strong { color: var(--p1-heading); font-size: 11px; }
.tg-profiles-trend-empty span { font-size: 8px; }

.tg-profiles-directory > div { overflow-x: auto; border-top: 1px solid var(--p1-line); }
.tg-profiles-directory table { width: 100%; min-width: 940px; border-collapse: collapse; }
.tg-profiles-directory th { height: 28px; padding: 5px 9px; border-bottom: 1px solid var(--p1-line); background: #f0f5f3; color: var(--p1-muted); font-size: 7px; text-align: left; text-transform: uppercase; }
.tg-profiles-directory td { height: 38px; padding: 4px 9px; border-bottom: 1px solid var(--p1-line); color: var(--p1-heading); font-size: 8px; }
.tg-profiles-directory tr:last-child td { border-bottom: 0; }
.tg-profiles-directory td:first-child > span { display: inline-flex; align-items: center; gap: 7px; }
.tg-profiles-directory td:nth-child(3) { display: table-cell; }
.tg-profiles-directory td:nth-child(3) strong,
.tg-profiles-directory td:nth-child(3) small { display: block; }
.tg-profiles-directory td:nth-child(3) small { color: var(--p1-muted); font-size: 7px; }
.tg-profiles-directory td:nth-child(6) { max-width: 240px; color: var(--p1-muted); }
.tg-profiles-directory td:last-child a { display: inline-flex; min-height: 25px; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid #315fe7; border-radius: 3px; color: #244bbb; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tg-profiles-directory td:last-child > span { color: var(--p1-muted); font-size: 7px; white-space: nowrap; }
.tg-profiles-directory footer { padding: 7px 10px; border-top: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 8px; }
.tg-profiles-clear { display: inline-block; margin: 0 10px 8px; color: var(--p1-green); font-size: 8px; font-weight: 800; }
.tg-profiles-form { display: inline-flex; gap: 3px; }
.tg-profiles-form i { display: grid; min-width: 18px; height: 18px; place-items: center; border-radius: 3px; background: #edf1f0; color: #52635d; font-size: 7px; font-style: normal; font-weight: 850; }
.tg-profiles-form i.is-place { background: #fff0c7; color: #6f5307; }
.tg-profiles-form i.is-win { background: #08a575; color: #fff; }
.tg-profiles-no-form { color: var(--p1-muted); font-size: 8px; }

.tg-profiles-education { display: grid; grid-template-columns: minmax(210px, .9fr) repeat(3, minmax(160px, 1fr)) auto; grid-gap: 8px; gap: 8px; align-items: center; padding: 9px 11px; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-profiles-education > div { display: grid; grid-template-columns: 35px minmax(0, 1fr); grid-gap: 8px; gap: 8px; align-items: center; }
.tg-profiles-education > div > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; background: #dff7ee; color: var(--p1-green); }
.tg-profiles-education h2 { margin: 0 0 2px; font-size: 14px; }
.tg-profiles-education p { margin: 0; color: var(--p1-muted); font-size: 8px; line-height: 1.3; }
.tg-profiles-education article { display: grid; grid-template-columns: 25px minmax(0, 1fr); grid-gap: 6px; gap: 6px; align-items: center; min-height: 44px; padding: 5px 7px; border: 1px solid var(--p1-line); border-radius: 4px; }
.tg-profiles-education article > svg { width: 17px; color: var(--p1-green); }
.tg-profiles-education article > span { display: grid; }
.tg-profiles-education article strong { font-size: 8px; }
.tg-profiles-education article small { color: var(--p1-muted); font-size: 7px; line-height: 1.2; }
.tg-profiles-education > a { display: inline-flex; align-items: center; gap: 4px; color: var(--p1-green); font-size: 8px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.tg-hub-profile-search button { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; border: 0; border-radius: 3px; background: var(--p1-green); color: #fff; }

@media (max-width: 1100px) {
  .tg-profiles-controls { grid-template-columns: 1fr; }
  .tg-profiles-region { min-height: 42px; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-profiles-education { grid-template-columns: repeat(3, 1fr); }
  .tg-profiles-education > div { grid-column: 1 / -1; }
  .tg-profiles-education > a { grid-column: 1 / -1; justify-self: end; }
}

@media (max-width: 860px) {
  .tg-profiles-hero { grid-template-columns: 1fr; }
  .tg-profiles-controls form { grid-template-columns: 1fr; }
  .tg-profiles-search { border-right: 0; border-bottom: 1px solid var(--p1-line); }
  .tg-profiles-filter-row { grid-template-columns: 1fr 1fr; }
  .tg-profiles-apply { min-height: 38px; justify-content: center; }
  .tg-profiles-top-grid,
  .tg-profiles-middle-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .tg-profiles-hero { padding: 18px; }
  .tg-profiles-hero h1 { font-size: 34px; }
  .tg-profiles-controls nav { overflow-x: auto; grid-template-columns: repeat(4, 112px); }
  .tg-profiles-filter-row { grid-template-columns: 1fr; }
  .tg-profiles-feature-card { grid-template-columns: 1fr 1fr; }
  .tg-profiles-feature-identity { grid-column: 1 / -1; }
  .tg-profiles-feature-notes { grid-template-columns: 1fr; }
  .tg-profiles-snapshot > div { grid-template-columns: 1fr; }
  .tg-profiles-review > div { grid-template-columns: 1fr 1fr; }
  .tg-profiles-education { grid-template-columns: 1fr; }
  .tg-profiles-education > div,
  .tg-profiles-education > a { grid-column: 1; }
  .tg-profiles-error { grid-template-columns: auto minmax(0, 1fr); }
  .tg-profiles-error a { grid-column: 2; }
}

@media (max-width: 420px) {
  .tg-profiles-hero h1 { font-size: 30px; }
  .tg-profiles-feature-card { grid-template-columns: 1fr; }
  .tg-profiles-feature-identity { grid-column: 1; }
  .tg-profiles-review > div { grid-template-columns: 1fr; }
  .tg-profiles-error { grid-template-columns: 1fr; }
  .tg-profiles-error a { grid-column: 1; }
}

/* P1 final checkpoints 7–8: Insights and Offers */
.tg-insights-final { gap: 18px; }
.tg-insights-hero { position: relative; display: grid; min-height: 374px; align-content: space-between; overflow: hidden; padding: 34px 44px 22px; border-radius: 8px; background-image: linear-gradient(90deg, rgb(2 45 37 / 97%) 0%, rgb(2 45 37 / 87%) 43%, rgb(2 45 37 / 23%) 76%, rgb(2 45 37 / 14%) 100%), url("/images/auth/horse-racing-auth-bg.png"); background-position: center 43%; background-size: cover; color: #fff; }
.tg-insights-hero-copy { display: grid; grid-gap: 0; gap: 0; max-width: 650px; }
.tg-insights-hero .tg-eyebrow { color: #b7d9cc; }
.tg-insights-hero h1 { margin: 10px 0 12px; color: #fff; font-size: clamp(42px, 5.3vw, 62px); line-height: .98; letter-spacing: -.035em; }
.tg-insights-hero h1 strong { color: #29e99e; }
.tg-insights-hero p { max-width: 620px; margin: 0; color: #e0ede8; font-size: 16px; line-height: 1.5; }
.tg-insights-hero label { display: flex; align-items: center; gap: 10px; width: min(550px, 100%); min-height: 50px; margin-top: 22px; padding: 0 15px; border-radius: 6px; background: #fff; color: var(--p1-green); }
.tg-insights-hero input { width: 100%; min-width: 0; height: 48px; border: 0; outline: 0; background: transparent; color: var(--p1-heading); font-size: 15px; }
.tg-insights-hero nav { display: flex; gap: 9px; overflow-x: auto; padding-top: 22px; }
.tg-insights-hero nav button { flex: 0 0 auto; min-height: 37px; padding: 8px 17px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 19px; background: rgb(0 36 29 / 34%); color: #fff; font-size: 12px; font-weight: 750; }
.tg-insights-hero nav button.is-active { border-color: #29e99e; background: #29e99e; color: #032d25; }
.tg-insights-featured { display: grid; grid-template-columns: 1.35fr 1.25fr .86fr; grid-auto-rows: 250px; grid-gap: 12px; gap: 12px; }
.tg-insights-featured > article,
.tg-insights-featured-stack article { position: relative; min-width: 0; overflow: hidden; border-radius: 7px; background-image: linear-gradient(0deg, rgb(1 29 24 / 96%) 0%, rgb(1 29 24 / 38%) 70%), url("/images/auth/horse-racing-auth-bg.png"); background-position: center 48%; background-size: cover; }
.tg-insights-featured > article:nth-of-type(2) { background-position: 26% 70%; }
.tg-insights-featured article > div { position: absolute; inset: auto 0 0; display: grid; grid-gap: 6px; gap: 6px; padding: 22px; color: #fff; }
.tg-insights-featured article span { color: #bfe0d4; font-size: 10px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; }
.tg-insights-featured article h2,
.tg-insights-featured article h3 { max-width: 470px; margin: 0; color: #fff; line-height: 1.05; }
.tg-insights-featured article h2 { font-size: 24px; }
.tg-insights-featured article h3 { font-size: 16px; }
.tg-insights-featured article p { max-width: 510px; margin: 0; color: #d5e5df; font-size: 13px; line-height: 1.4; }
.tg-insights-featured article small { display: inline-flex; align-items: center; gap: 5px; color: #d5e5df; font-size: 11px; }
.tg-insights-featured article a { position: absolute; right: 17px; bottom: 17px; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #fff; color: var(--p1-green); }
.tg-insights-featured-stack { display: grid; grid-template-rows: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.tg-insights-featured-stack article > div { padding: 15px; }
.tg-insights-featured-stack article a { right: 12px; bottom: 12px; width: 32px; height: 32px; }
.tg-insights-no-results { grid-column: 1 / -1; display: grid; min-height: 190px; place-items: center; align-content: center; grid-gap: 10px; gap: 10px; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; color: var(--p1-muted); }
.tg-insights-no-results button { border: 0; background: transparent; color: var(--p1-green); font-weight: 850; }
.tg-insights-library { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); grid-gap: 20px; gap: 20px; align-items: stretch; }
.tg-insights-library > div,
.tg-insights-library > aside { min-width: 0; }
.tg-insights-library header { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 12px; }
.tg-insights-library header span { display: grid; }
.tg-insights-library header small { color: var(--p1-green); font-size: 10px; font-weight: 850; letter-spacing: .045em; text-transform: uppercase; }
.tg-insights-library h2 { margin: 2px 0 0; font-size: 25px; }
.tg-insights-library header button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--p1-green); font-size: 12px; font-weight: 850; }
.tg-insights-article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-gap: 11px; gap: 11px; }
.tg-insights-article-grid article { min-width: 0; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-insights-card-image { position: relative; min-height: 105px; background-image: linear-gradient(rgb(1 38 31 / 18%), rgb(1 38 31 / 49%)), url("/images/auth/horse-racing-auth-bg.png"); background-position: center; background-size: cover; }
.tg-insights-card-image.is-2 { background-position: 25% 62%; }
.tg-insights-card-image.is-3 { background-position: 70% 40%; }
.tg-insights-card-image.is-4 { background-position: 85% 55%; }
.tg-insights-card-image span { position: absolute; bottom: 9px; left: 10px; padding: 4px 6px; border-radius: 3px; background: rgb(0 52 42 / 86%); color: #fff; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-insights-article-grid article > div:last-child { display: grid; align-content: start; min-height: 178px; padding: 13px; }
.tg-insights-article-grid article > div:last-child > small { color: var(--p1-green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-insights-article-grid h3 { margin: 5px 0 7px; font-size: 15px; line-height: 1.16; }
.tg-insights-article-grid p { margin: 0; color: var(--p1-muted); font-size: 12px; line-height: 1.45; }
.tg-insights-article-grid a { display: inline-flex; align-items: center; justify-content: space-between; align-self: end; margin-top: 12px; color: var(--p1-green); font-size: 11px; font-weight: 850; text-decoration: none; }
.tg-insights-library > aside { padding: 18px; border: 1px solid #cbe0d8; border-radius: 7px; background: linear-gradient(145deg, #eef8f4, #fff); }
.tg-insights-training-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 10px; gap: 10px; align-items: center; min-height: 69px; padding: 9px 0; border-top: 1px solid var(--p1-line); color: var(--p1-heading); text-decoration: none; }
.tg-insights-training-link > span:first-child { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 5px; background: #fff; color: var(--p1-green); }
.tg-insights-training-link > span:nth-child(2) { display: grid; }
.tg-insights-training-link small { color: var(--p1-muted); font-size: 11px; line-height: 1.35; }
.tg-insights-training-link > svg { color: var(--p1-green); }
.tg-insights-library-action { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; min-height: 42px; margin-top: 12px; padding: 9px 11px; border: 1px solid var(--p1-green); color: var(--p1-green); font-size: 12px; font-weight: 850; text-decoration: none; }
.tg-insights-dictionary { display: grid; grid-gap: 15px; gap: 15px; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 9px 28px rgb(20 48 40 / 4%); }
.tg-insights-dictionary > .tg-p1-section-heading { padding-bottom: 2px; }
.tg-insights-dictionary .tg-p1-metric-dictionary { border-inline: 0; border-bottom: 0; }
.tg-insights-next { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 15px 20px; gap: 15px 20px; align-items: center; padding: 24px; border-radius: 7px; background: var(--p1-green-dark); color: #fff; }
.tg-insights-next > svg { color: var(--p1-amber); }
.tg-insights-next h2 { margin: 3px 0; color: #fff; font-size: 22px; }
.tg-insights-next p { margin: 0; color: #bdd1ca; font-size: 13px; }
.tg-insights-next nav { display: flex; gap: 8px; }
.tg-insights-next nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 9px 12px; border: 1px solid rgb(255 255 255 / 27%); color: #fff; font-size: 12px; font-weight: 850; text-decoration: none; }
.tg-insights-next nav a:first-child { border-color: var(--p1-amber); background: var(--p1-amber); color: var(--p1-heading); }

/* Phase 4 · Points 5–6 — Insights and canonical Knowledge Base articles. */
.tg-kb-article { gap: 16px; padding-bottom: 34px; }
.tg-kb-article-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 28px; gap: 28px; align-items: end; overflow: hidden; padding: 34px 38px; border-radius: 8px; background: radial-gradient(circle at 86% 16%, rgb(44 234 159 / 22%), transparent 27%), var(--p1-green-dark); color: #fff; }
.tg-kb-article-hero > div > span { color: #8fe5c3; font-size: 11px; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.tg-kb-article-hero h1 { max-width: 890px; margin: 8px 0 11px; color: #fff; font-size: clamp(36px, 4.5vw, 54px); line-height: 1.03; letter-spacing: -.035em; }
.tg-kb-article-hero > div > p { max-width: 790px; margin: 0; color: #c9ded6; font-size: 15px; line-height: 1.55; }
.tg-kb-article-hero dl { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 23px 0 0; }
.tg-kb-article-hero dl > div { display: grid; grid-template-columns: auto auto; grid-gap: 0 7px; gap: 0 7px; align-items: center; }
.tg-kb-article-hero dl svg { grid-row: 1 / 3; width: 17px; color: #5ee6b0; }
.tg-kb-article-hero dt { color: #9fc2b5; font-size: 10px; }
.tg-kb-article-hero dd { margin: 0; color: #fff; font-size: 11px; font-weight: 800; }
.tg-kb-article-hero > button { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid rgb(255 255 255 / 32%); background: rgb(255 255 255 / 8%); color: #fff; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.tg-kb-article-hero > button svg { width: 16px; }
.tg-kb-answer { display: grid; grid-template-columns: auto 1fr; grid-gap: 15px; gap: 15px; padding: 23px 27px; border: 1px solid #b7d9cc; border-left: 4px solid var(--p1-green-bright); border-radius: 6px; background: linear-gradient(135deg, #eaf8f2, #fff); }
.tg-kb-answer > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; background: var(--p1-green); color: #fff; }
.tg-kb-answer > span svg { width: 20px; }
.tg-kb-answer small { color: var(--p1-green); font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.tg-kb-answer h2 { margin: 2px 0 8px; font-size: 23px; }
.tg-kb-answer p { max-width: 920px; margin: 4px 0; color: var(--p1-muted); font-size: 14px; line-height: 1.55; }
.tg-kb-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); grid-gap: 19px; gap: 19px; align-items: start; }
.tg-kb-layout > aside { position: -webkit-sticky; position: sticky; top: 84px; display: grid; grid-gap: 10px; gap: 10px; }
.tg-kb-layout > aside nav { display: grid; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-kb-layout > aside nav strong { padding: 13px 14px; border-bottom: 1px solid var(--p1-line); font-size: 12px; }
.tg-kb-layout > aside nav a { padding: 9px 14px; border-top: 1px solid #eff3f1; color: var(--p1-muted); font-size: 11px; text-decoration: none; }
.tg-kb-layout > aside nav a:hover { background: var(--p1-green-soft); color: var(--p1-green); }
.tg-kb-layout > aside > a { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 12px 13px; border: 1px solid var(--p1-green); color: var(--p1-green); font-size: 11px; font-weight: 850; text-decoration: none; }
.tg-kb-layout > aside > a svg { width: 15px; }
.tg-kb-prose { display: grid; grid-gap: 13px; gap: 13px; min-width: 0; }
.tg-kb-prose > section { scroll-margin-top: 86px; overflow: hidden; padding: 23px 26px; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 7px 24px rgb(20 48 40 / 4%); }
.tg-kb-prose > section > header { display: flex; gap: 11px; align-items: center; margin-bottom: 15px; }
.tg-kb-prose > section > header > svg { width: 38px; height: 38px; padding: 9px; flex: 0 0 38px; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-kb-prose > section > header span { color: var(--p1-green); font-size: 9px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.tg-kb-prose > section h2 { margin: 2px 0 0; font-size: 23px; }
.tg-kb-prose > section h3 { margin: 0 0 4px; font-size: 15px; }
.tg-kb-prose > section > p,
.tg-kb-prose > section li { color: var(--p1-muted); font-size: 13px; line-height: 1.6; }
.tg-kb-prose > section > a { display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; color: var(--p1-green); font-size: 12px; font-weight: 850; text-decoration: none; }
.tg-kb-prose > section > a svg { width: 15px; }
.tg-kb-explanation-steps { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1px; gap: 1px; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 5px; background: var(--p1-line); }
.tg-kb-explanation-steps > div { display: grid; grid-template-columns: auto 1fr; grid-gap: 10px; gap: 10px; align-content: start; padding: 17px; background: #fff; }
.tg-kb-explanation-steps > div > b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--p1-green); color: #fff; font-size: 11px; }
.tg-kb-explanation-steps p { margin: 0; color: var(--p1-muted); font-size: 12px; line-height: 1.55; }
.tg-kb-prose ol { display: grid; grid-gap: 7px; gap: 7px; padding-left: 22px; }
.tg-kb-prose #worked-example > aside { display: flex; gap: 9px; margin-top: 16px; padding: 13px 15px; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-kb-prose #worked-example > aside svg { flex: 0 0 auto; }
.tg-kb-prose #worked-example > aside span { display: grid; grid-gap: 3px; gap: 3px; font-size: 12px; line-height: 1.5; }
.tg-kb-prose > section.is-caution { border-left: 4px solid var(--p1-amber); background: #fffaf0; }
.tg-kb-prose > section.is-caution > header > svg { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-kb-prose #limitations > ul { display: grid; grid-gap: 8px; gap: 8px; padding: 0; list-style: none; }
.tg-kb-prose #limitations > ul li { display: flex; gap: 8px; }
.tg-kb-prose #limitations > ul svg { width: 16px; flex: 0 0 16px; color: var(--p1-green); }
.tg-kb-source { display: grid; grid-gap: 3px; gap: 3px; margin-top: 15px !important; padding: 12px 14px; border-left: 3px solid var(--p1-green); background: #f3f8f6; }
.tg-kb-source strong { color: var(--p1-heading); font-size: 11px; }
.tg-kb-related { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 9px; gap: 9px; }
.tg-kb-related > a { display: grid; min-width: 0; min-height: 132px; align-content: start; padding: 14px; border: 1px solid var(--p1-line); color: var(--p1-heading); text-decoration: none; }
.tg-kb-related > a small { color: var(--p1-green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-kb-related > a strong { margin-top: 5px; font-size: 13px; line-height: 1.25; }
.tg-kb-related > a span { display: flex; align-items: center; justify-content: space-between; margin-top: auto; color: var(--p1-muted); font-size: 10px; }
.tg-kb-related > a svg { width: 14px; color: var(--p1-green); }
.tg-kb-prose #related-reading > nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.tg-kb-prose #related-reading > nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 37px; padding: 7px 10px; border: 1px solid var(--p1-green); color: var(--p1-green); font-size: 11px; font-weight: 850; text-decoration: none; }
.tg-kb-prose #related-reading > nav a:first-child { background: var(--p1-green); color: #fff; }
.tg-kb-prose #related-reading > nav svg { width: 14px; }
.tg-kb-prose > footer { scroll-margin-top: 86px; display: flex; gap: 11px; padding: 18px 21px; border: 1px solid var(--p1-line); background: #f5f8f7; color: var(--p1-muted); }
.tg-kb-prose > footer > svg { width: 20px; flex: 0 0 20px; color: var(--p1-green); }
.tg-kb-prose > footer > div { display: grid; grid-gap: 4px; gap: 4px; }
.tg-kb-prose > footer strong { color: var(--p1-heading); font-size: 12px; }
.tg-kb-prose > footer p { margin: 0; font-size: 11px; line-height: 1.5; }
.tg-kb-prose > footer small { font-size: 10px; line-height: 1.45; }
.tg-kb-feedback { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); grid-gap: 22px; gap: 22px; padding: 24px 27px; border-radius: 7px; background: var(--p1-green-dark); color: #fff; }
.tg-kb-feedback > div:first-child > span { color: #78dbb4; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.tg-kb-feedback h2 { margin: 3px 0 5px; color: #fff; font-size: 22px; }
.tg-kb-feedback > div:first-child p { margin: 0; color: #b9d1c8; font-size: 11px; line-height: 1.5; }
.tg-kb-feedback-controls { display: grid; grid-gap: 9px; gap: 9px; }
.tg-kb-feedback-controls > div { display: flex; gap: 7px; }
.tg-kb-feedback-controls button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border: 1px solid rgb(255 255 255 / 32%); background: transparent; color: #fff; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.tg-kb-feedback-controls button.is-selected { border-color: #62e2b0; background: #e8faf3; color: var(--p1-green); }
.tg-kb-feedback-controls button svg { width: 15px; }
.tg-kb-feedback-controls label { display: grid; grid-gap: 5px; gap: 5px; color: #bdd2ca; font-size: 10px; }
.tg-kb-feedback-controls textarea { width: 100%; resize: vertical; padding: 10px; border: 1px solid #77988c; border-radius: 3px; background: #fff; color: var(--p1-heading); font: inherit; font-size: 12px; }
.tg-kb-feedback-controls .tg-kb-feedback-submit { justify-self: start; border-color: var(--p1-amber); background: var(--p1-amber); color: var(--p1-heading); }
.tg-kb-feedback-controls .tg-kb-feedback-login { justify-self: start; }
.tg-kb-feedback-controls > p { margin: 0; color: #c9ded6; font-size: 11px; }

.tg-offers-final { gap: 19px; }
.tg-offers-final-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); grid-gap: 36px; gap: 36px; align-items: end; min-height: 300px; overflow: hidden; padding: 38px 44px; border-radius: 8px; background-image: linear-gradient(90deg, rgb(2 47 39 / 98%) 0%, rgb(2 47 39 / 87%) 58%, rgb(2 47 39 / 58%) 100%), url("/images/auth/horse-racing-auth-bg.png"); background-position: center 58%; background-size: cover; color: #fff; }
.tg-offers-final-hero .tg-eyebrow { color: #9ce5c8; }
.tg-offers-final-hero h1 { margin: 9px 0 13px; color: #fff; font-size: clamp(40px, 5vw, 58px); line-height: 1; letter-spacing: -.035em; }
.tg-offers-final-hero h1 strong { color: #29e99e; }
.tg-offers-final-hero p { max-width: 720px; margin: 0; color: #d9e9e3; font-size: 16px; line-height: 1.52; }
.tg-offers-final-hero > div > div { display: flex; align-items: center; gap: 18px; margin-top: 23px; }
.tg-offers-final-hero > div > div a { color: #fff; font-size: 13px; font-weight: 850; text-decoration: none; }
.tg-offers-final-hero > div > div a:first-child { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 9px 14px; border-radius: 4px; background: var(--p1-amber); color: var(--p1-heading); }
.tg-offers-final-hero aside { display: flex; gap: 12px; padding: 17px; border-left: 3px solid #29e99e; background: rgb(255 255 255 / 94%); color: var(--p1-heading); }
.tg-offers-final-hero aside > svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-offers-final-hero aside span { display: grid; grid-gap: 5px; gap: 5px; }
.tg-offers-final-hero aside small { color: var(--p1-muted); font-size: 12px; line-height: 1.5; }
.tg-offers-trust-strip { display: grid; grid-template-columns: .6fr .8fr 1.3fr 1.3fr; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-offers-trust-strip > span { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 2px 8px; gap: 2px 8px; align-items: center; min-height: 72px; padding: 12px 17px; border-left: 1px solid var(--p1-line); }
.tg-offers-trust-strip > span:first-child { border-left: 0; }
.tg-offers-trust-strip svg { grid-row: 1 / 3; color: var(--p1-green); }
.tg-offers-trust-strip strong { color: var(--p1-green); font-size: 15px; }
.tg-offers-trust-strip small { grid-column: 2; color: var(--p1-muted); font-size: 11px; }
.tg-offers-trust-strip > span:first-child strong { grid-row: 1 / 3; display: grid; width: 42px; height: 42px; place-items: center; border: 2px solid var(--p1-red); border-radius: 50%; color: var(--p1-heading); }
.tg-offers-trust-strip > span:first-child small { grid-column: 2; }
.tg-offers-final .tg-p1-offer-controls { border: 1px solid var(--p1-line); box-shadow: none; }
.tg-offers-final .tg-p1-offer-catalogue { padding: 22px; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 9px 28px rgb(20 48 40 / 4%); }
.tg-offers-final .tg-p1-offer-list { gap: 16px; }
.tg-offers-final .tg-p1-partner-offer { border: 1px solid var(--p1-line); box-shadow: 0 7px 22px rgb(20 48 40 / 5%); }
.tg-offers-final .tg-p1-partner-offer.is-featured { border-color: #dfb137; }
.tg-offers-final .tg-p1-offer-guidance { padding: 22px; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; }
.tg-offers-final .tg-p1-offer-safety { box-shadow: none; }
.tg-offers-final .tg-p1-offer-responsibility { background: linear-gradient(135deg, #eaf6f1, #fff); }

@media (max-width: 1050px) {
  .tg-insights-featured { grid-template-columns: 1fr 1fr; }
  .tg-insights-featured-stack { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: 145px; }
  .tg-insights-article-grid { grid-template-columns: 1fr 1fr; }
  .tg-insights-library { grid-template-columns: 1fr; }
  .tg-insights-next { grid-template-columns: auto 1fr; }
  .tg-insights-next nav { grid-column: 2; }
  .tg-kb-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .tg-kb-explanation-steps { grid-template-columns: 1fr; }
  .tg-kb-related { grid-template-columns: 1fr 1fr; }
  .tg-offers-final-hero { grid-template-columns: 1fr; gap: 22px; }
  .tg-offers-trust-strip { grid-template-columns: 1fr 1fr; }
  .tg-offers-trust-strip > span:nth-child(3) { border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-offers-trust-strip > span:nth-child(4) { border-top: 1px solid var(--p1-line); }
}

@media (max-width: 760px) {
  .tg-insights-hero { min-height: 430px; padding: 30px 20px 22px; background-position: 58% center; }
  .tg-insights-hero h1 { font-size: 41px; }
  .tg-insights-hero nav { margin-right: -20px; }
  .tg-insights-featured { grid-template-columns: 1fr; grid-auto-rows: 235px; }
  .tg-insights-featured-stack { grid-column: 1; grid-template-columns: 1fr; grid-template-rows: 145px 145px; }
  .tg-insights-article-grid { display: flex; overflow-x: auto; scroll-snap-type: x proximity; }
  .tg-insights-article-grid article { flex: 0 0 min(285px, 82vw); scroll-snap-align: start; }
  .tg-insights-dictionary .tg-p1-metric-dictionary details > div { grid-template-columns: 1fr; }
  .tg-insights-dictionary .tg-p1-metric-dictionary details p.is-caution { grid-column: 1; }
  .tg-insights-next { grid-template-columns: 1fr; }
  .tg-insights-next nav { grid-column: 1; align-items: stretch; flex-direction: column; }
  .tg-insights-next nav a { justify-content: space-between; }
  .tg-kb-article-hero { grid-template-columns: 1fr; padding: 27px 22px; }
  .tg-kb-article-hero > button { justify-self: start; }
  .tg-kb-answer { padding: 19px; }
  .tg-kb-layout { grid-template-columns: 1fr; }
  .tg-kb-layout > aside { position: static; }
  .tg-kb-layout > aside nav { grid-template-columns: 1fr 1fr; }
  .tg-kb-layout > aside nav strong { grid-column: 1 / -1; }
  .tg-kb-layout > aside nav a { border-right: 1px solid #eff3f1; }
  .tg-kb-prose > section { padding: 20px; }
  .tg-kb-feedback { grid-template-columns: 1fr; padding: 22px; }
  .tg-offers-final-hero { min-height: 0; padding: 28px 22px; }
  .tg-offers-final-hero h1 { font-size: 40px; }
  .tg-offers-final-hero > div > div { align-items: flex-start; flex-direction: column; }
  .tg-offers-trust-strip { grid-template-columns: 1fr; }
  .tg-offers-trust-strip > span { border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-offers-trust-strip > span:first-child { border-top: 0; }
  .tg-offers-final .tg-p1-offer-catalogue,
  .tg-offers-final .tg-p1-offer-guidance { padding: 17px; }
}

@media (max-width: 460px) {
  .tg-insights-hero h1,
  .tg-offers-final-hero h1 { font-size: 35px; }
  .tg-insights-featured article p { display: none; }
  .tg-insights-library > aside { padding: 15px; }
  .tg-kb-article-hero h1 { font-size: 34px; }
  .tg-kb-article-hero dl { display: grid; }
  .tg-kb-answer { grid-template-columns: 1fr; }
  .tg-kb-layout > aside nav { grid-template-columns: 1fr; }
  .tg-kb-layout > aside nav strong { grid-column: 1; }
  .tg-kb-related { grid-template-columns: 1fr; }
  .tg-kb-prose #related-reading > nav { display: grid; }
  .tg-offers-final-hero { padding: 24px 18px; }
}

/* P1 final checkpoints 9–11: Membership, Checkout and Authentication */
.tg-membership-shell { min-height: 100vh; background: var(--p1-page); color: var(--p1-ink); }
.tg-membership-masthead { display: flex; align-items: center; justify-content: space-between; width: min(var(--p1-content-max), calc(100% - 32px)); min-height: 70px; margin-inline: auto; }
.tg-membership-masthead .tg-brand-logo { width: 164px; }
.tg-membership-masthead nav { display: flex; align-items: center; gap: 20px; }
.tg-membership-masthead nav a { color: var(--p1-green); font-size: 12px; font-weight: 800; text-decoration: none; }
.tg-membership-masthead nav a:last-child { min-height: 38px; padding: 11px 14px; border: 1px solid var(--p1-green); border-radius: 4px; }
.tg-membership-shell > main { display: grid; grid-gap: 0; gap: 0; }
.tg-membership-hero { min-height: 430px; background-image: linear-gradient(90deg, rgb(1 45 36 / 81%), rgb(1 45 36 / 57%) 55%, rgb(1 45 36 / 35%)), url("/images/auth/horse-racing-auth-bg.png"); background-position: center 45%; background-size: cover; color: #fff; }
.tg-membership-hero-copy { display: grid; justify-items: center; width: min(720px, calc(100% - 32px)); margin-inline: auto; padding: 41px 0 22px; text-align: center; }
.tg-membership-hero-copy > span { color: #d8e8e2; font-size: 11px; font-weight: 850; letter-spacing: .22em; text-transform: uppercase; }
.tg-membership-hero h1 { margin: 15px 0 11px; color: #fff; font-size: clamp(45px, 5vw, 66px); line-height: .95; letter-spacing: -.035em; }
.tg-membership-hero h1 strong { color: #22e89b; }
.tg-membership-hero-copy > p { max-width: 680px; margin: 0; color: #e7f1ed; font-size: 15px; line-height: 1.55; }
.tg-membership-hero form { display: grid; grid-template-columns: minmax(270px, 1fr) auto; grid-gap: 9px; gap: 9px; width: min(650px, 100%); margin-top: 20px; }
.tg-membership-hero form input[type="email"] { min-width: 0; min-height: 50px; padding: 0 18px; border: 0; border-radius: 6px; background: #fff; color: var(--p1-heading); font: inherit; }
.tg-membership-hero form button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; padding: 0 20px; border: 0; border-radius: 6px; background: var(--p1-amber); color: #17241f; font: inherit; font-weight: 900; }
.tg-membership-assurances { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(610px, 100%); margin-top: 23px; }
.tg-membership-assurances > span { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 1px 10px; gap: 1px 10px; align-items: center; padding-inline: 16px; text-align: left; }
.tg-membership-assurances > span + span { border-left: 1px solid rgb(255 255 255 / 18%); }
.tg-membership-assurances svg { grid-row: 1 / 3; width: 25px; color: #fff; }
.tg-membership-assurances b { font-size: 12px; }
.tg-membership-assurances small { color: #cbded7; font-size: 11px; }

.tg-membership-plans,
.tg-membership-compare,
.tg-membership-responsibility { width: min(var(--p1-content-max), calc(100% - 32px)); margin-inline: auto; }
.tg-membership-plans { padding: 30px 0 25px; }
.tg-membership-plans-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 18px; }
.tg-membership-plans-head > div:first-child { max-width: 720px; }
.tg-membership-plans-head span,
.tg-membership-compare > header > span { color: var(--p1-green); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tg-membership-plans-head h2,
.tg-membership-compare h2 { margin: 6px 0 4px; font-size: 27px; line-height: 1.08; }
.tg-membership-plans-head p,
.tg-membership-compare header p { margin: 0; color: var(--p1-muted); font-size: 13px; line-height: 1.45; }
.tg-membership-billing { display: inline-flex; flex: 0 0 auto; padding: 4px; border: 1px solid var(--p1-line); border-radius: 24px; background: #fff; }
.tg-membership-billing button { min-height: 34px; padding: 7px 14px; border: 0; border-radius: 18px; background: transparent; color: var(--p1-muted); font: inherit; font-size: 12px; font-weight: 800; }
.tg-membership-billing button.is-active { background: var(--p1-green-soft); color: var(--p1-green); }
.tg-membership-billing button span { margin-left: 4px; color: var(--p1-green-bright); font-size: 9px; }
.tg-membership-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 11px; gap: 11px; }
.tg-membership-plan { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; padding: 22px; border: 1px solid var(--p1-line); border-top: 3px solid #c6d6d0; border-radius: 7px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-membership-plan.is-featured { border-color: var(--p1-amber); border-top-color: var(--p1-amber); }
.tg-membership-plan > header { position: relative; }
.tg-membership-plan > header > span { color: var(--p1-green); font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.tg-membership-plan > header > strong { position: absolute; top: -8px; right: 0; display: inline-flex; align-items: center; gap: 5px; color: var(--p1-amber-dark); font-size: 9px; text-transform: uppercase; }
.tg-membership-plan h3 { margin: 6px 0 5px; font-size: 25px; }
.tg-membership-plan header p { min-height: 75px; margin: 0; color: #63716c; font-size: 12px; line-height: 1.42; }
.tg-membership-price { display: grid; grid-template-columns: auto 1fr; grid-gap: 3px 5px; gap: 3px 5px; align-items: baseline; padding: 14px 0 13px; border-bottom: 1px solid var(--p1-line); }
.tg-membership-price strong { color: var(--p1-green); font-size: 31px; line-height: 1; }
.tg-membership-price > span { color: var(--p1-muted); font-size: 11px; }
.tg-membership-price small { grid-column: 1 / -1; color: var(--p1-green-bright); font-size: 10px; }
.tg-membership-plan ul { display: grid; align-content: start; grid-gap: 8px; gap: 8px; margin: 14px 0 18px; padding: 0; list-style: none; }
.tg-membership-plan li { display: flex; gap: 8px; color: #40534d; font-size: 11px; line-height: 1.34; }
.tg-membership-plan li svg { flex: 0 0 auto; color: var(--p1-green-bright); }
.tg-membership-plan > a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; border: 1px solid var(--p1-green); border-radius: 4px; color: var(--p1-green); font-weight: 900; text-decoration: none; }
.tg-membership-plan.is-featured > a { border-color: var(--p1-amber); background: var(--p1-amber); color: #17241f; }
.tg-membership-compare { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-gap: 30px; gap: 30px; align-items: start; padding: 24px 0; border-top: 1px solid var(--p1-line); }
.tg-membership-compare > div { overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-membership-compare [role="row"] { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); }
.tg-membership-compare [role="row"] + [role="row"] { border-top: 1px solid var(--p1-line); }
.tg-membership-compare [role="row"] > * { padding: 11px 13px; border-left: 1px solid var(--p1-line); font-size: 11px; }
.tg-membership-compare [role="row"] > *:first-child { border-left: 0; }
.tg-membership-compare [role="columnheader"] { background: #eef4f1; color: var(--p1-muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.tg-membership-responsibility { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 38px; padding: 15px 17px; border-left: 3px solid var(--p1-amber); background: var(--p1-amber-soft); }
.tg-membership-responsibility svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-membership-responsibility p { margin: 0; color: #5e511f; font-size: 12px; line-height: 1.5; }

.tg-checkout-page,
.tg-auth-final { display: grid; min-height: 100svh; place-items: center; padding: 34px 16px; background-image: linear-gradient(90deg, rgb(1 35 29 / 86%), rgb(1 35 29 / 58%), rgb(1 35 29 / 83%)), url("/images/auth/horse-racing-auth-bg.png"); background-position: center; background-size: cover; color: var(--p1-ink); }
.tg-checkout-page { align-content: center; gap: 14px; }
.tg-checkout-card { width: min(930px, 100%); padding: 23px 26px 26px; border-radius: 8px; background: #fff; box-shadow: 0 30px 80px rgb(0 0 0 / 32%); }
.tg-checkout-card.is-payment { width: min(1040px, 100%); }
.tg-checkout-card-head,
.tg-auth-final-card > header { position: relative; min-height: 43px; }
.tg-checkout-card-head .tg-brand-logo,
.tg-auth-final-card > header .tg-brand-logo { width: 175px; margin: 0; }
.tg-checkout-card-head > a:not(.tg-brand-logo),
.tg-auth-final-card > header > a:not(.tg-brand-logo) { position: absolute; top: 0; right: 0; display: grid; width: 35px; height: 35px; place-items: center; color: var(--p1-ink); }
.tg-checkout-steps { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 0; gap: 0; margin: 10px 0 24px; padding: 0; list-style: none; }
.tg-checkout-steps li { position: relative; display: flex; align-items: center; gap: 8px; color: #82918c; font-size: 11px; font-weight: 750; }
.tg-checkout-steps li::after { position: absolute; z-index: 0; top: 14px; right: 9px; left: 40px; height: 1px; background: #cad6d2; content: ""; }
.tg-checkout-steps li:last-child::after { display: none; }
.tg-checkout-steps li > span { z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #c9d4dc; color: #fff; font-weight: 900; }
.tg-checkout-steps li.is-complete,
.tg-checkout-steps li.is-active { color: var(--p1-ink); }
.tg-checkout-steps li.is-complete > span,
.tg-checkout-steps li.is-active > span { background: var(--p1-green); }
.tg-checkout-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr); grid-gap: 28px; gap: 28px; }
.tg-checkout-review { min-width: 0; }
.tg-checkout-eyebrow { color: var(--p1-green); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.tg-checkout-review h1 { margin: 6px 0; font-size: 29px; line-height: 1.06; }
.tg-checkout-review > p { margin: 0 0 18px; color: var(--p1-muted); font-size: 12px; line-height: 1.5; }
.tg-checkout-detail-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 13px; gap: 13px; margin-top: 18px; }
.tg-checkout-detail-grid label { display: grid; grid-gap: 6px; gap: 6px; color: var(--p1-ink); font-size: 11px; font-weight: 850; }
.tg-checkout-detail-grid label.is-wide { grid-column: 1 / -1; }
.tg-checkout-detail-grid input,
.tg-checkout-detail-grid select { width: 100%; min-height: 43px; padding: 0 11px; border: 1px solid #cbd6d2; border-radius: 4px; background: #fff; color: var(--p1-ink); font: inherit; font-size: 13px; }
.tg-checkout-detail-grid input:focus,
.tg-checkout-detail-grid select:focus { border-color: var(--p1-green-bright); box-shadow: 0 0 0 3px rgb(22 138 97 / 11%); outline: 0; }
.tg-checkout-detail-grid input[readonly] { background: #f3f6f5; color: #5a6a64; }
.tg-checkout-detail-grid small { color: var(--p1-muted); font-size: 9px; font-weight: 500; }
.tg-checkout-selection { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid var(--p1-line); border-left: 3px solid var(--p1-amber); background: #fbfcfb; }
.tg-checkout-selection > div:first-child { display: grid; grid-gap: 3px; gap: 3px; }
.tg-checkout-selection > div:first-child > span { color: var(--p1-green); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.tg-checkout-selection h2 { margin: 0; font-size: 18px; }
.tg-checkout-selection small { color: var(--p1-muted); }
.tg-checkout-selection > div:last-child { text-align: right; white-space: nowrap; }
.tg-checkout-selection > div:last-child strong { font-size: 25px; }
.tg-checkout-selection > div:last-child span { color: var(--p1-muted); font-size: 11px; }
.tg-checkout-security { display: flex; gap: 11px; align-items: center; margin: 14px 0; padding: 13px; background: #f1f4f3; }
.tg-checkout-security svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-checkout-security span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-checkout-security small { color: var(--p1-muted); }
.tg-checkout-message,
.tg-auth-final-message { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--p1-red); background: var(--p1-red-soft); }
.tg-checkout-message p,
.tg-auth-final-message p { margin: 3px 0 0; color: #6b4842; font-size: 12px; line-height: 1.45; }
.tg-checkout-message a { display: inline-block; margin-top: 5px; color: var(--p1-green); font-weight: 850; text-decoration: underline; }
.tg-checkout-terms { display: grid; grid-template-columns: auto 1fr; grid-gap: 9px; gap: 9px; align-items: start; margin: 15px 0; color: var(--p1-muted); font-size: 11px; line-height: 1.45; }
.tg-checkout-terms input { width: 18px; height: 18px; margin: 0; accent-color: var(--p1-green); }
.tg-checkout-terms a { color: var(--p1-green); text-decoration: underline; }
.tg-checkout-actions { display: grid; grid-template-columns: .65fr 1.35fr; grid-gap: 10px; gap: 10px; }
.tg-checkout-actions > * { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 45px; padding: 10px 14px; border: 1px solid var(--p1-green); border-radius: 4px; font: inherit; font-size: 12px; font-weight: 900; text-decoration: none; }
.tg-checkout-actions a { color: var(--p1-green); }
.tg-checkout-actions button { background: var(--p1-amber); border-color: var(--p1-amber); color: #17241f; }
.tg-checkout-actions button:disabled { cursor: not-allowed; opacity: .58; }
.tg-checkout-renewal { display: block; margin-top: 8px; color: var(--p1-muted); font-size: 10px; text-align: right; }
.tg-checkout-summary { min-width: 0; border-left: 1px solid var(--p1-line); padding-left: 23px; }
.tg-checkout-summary > div { display: grid; grid-gap: 2px; gap: 2px; padding: 14px; border-left: 3px solid var(--p1-amber); background: linear-gradient(105deg, #fff7df, #eef7f3); }
.tg-checkout-summary > div > span { font-weight: 900; }
.tg-checkout-summary > div > strong { font-size: 29px; }
.tg-checkout-summary > div > strong small { color: var(--p1-muted); font-size: 10px; }
.tg-checkout-summary > div > em { color: var(--p1-green); font-size: 10px; font-style: normal; }
.tg-checkout-summary > .tg-checkout-trial { display: grid; grid-gap: 3px; gap: 3px; margin-top: 11px; padding: 12px 13px; border: 1px solid var(--p1-line); border-left: 3px solid #7e918a; background: #f4f7f6; }
.tg-checkout-summary > .tg-checkout-trial.is-eligible { border-left-color: var(--p1-green-bright); background: var(--p1-green-soft); }
.tg-checkout-summary > .tg-checkout-trial span { color: var(--p1-green); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.tg-checkout-summary > .tg-checkout-trial strong { font-size: 17px; }
.tg-checkout-summary > .tg-checkout-trial small { color: var(--p1-muted); font-size: 9px; line-height: 1.35; }
.tg-checkout-summary ul { display: grid; grid-gap: 12px; gap: 12px; margin: 18px 0; padding: 0; list-style: none; }
.tg-checkout-summary li { display: flex; gap: 9px; color: #45564f; font-size: 11px; line-height: 1.35; }
.tg-checkout-summary li svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-checkout-summary > p { display: flex; gap: 8px; margin: 0; padding: 12px; background: var(--p1-green-soft); }
.tg-checkout-summary > p svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-checkout-summary > p span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-checkout-summary > p small { color: var(--p1-muted); font-size: 10px; line-height: 1.4; }
.tg-checkout-help { margin: 0; color: #dcebe5; font-size: 12px; }
.tg-checkout-help a { color: #fff; font-weight: 850; text-decoration: underline; }
.tg-checkout-payment-step { min-width: 0; }
.tg-checkout-payment-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 25px; gap: 25px; align-items: end; margin-bottom: 16px; }
.tg-checkout-payment-head h1 { margin: 5px 0; font-size: 28px; line-height: 1.08; }
.tg-checkout-payment-head p { max-width: 590px; margin: 0; color: var(--p1-muted); font-size: 11px; line-height: 1.45; }
.tg-checkout-due { display: grid; min-width: 180px; grid-gap: 1px; gap: 1px; padding: 12px 14px; border-left: 3px solid var(--p1-green-bright); background: var(--p1-green-soft); text-align: right; }
.tg-checkout-due small { color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-checkout-due strong { color: var(--p1-green); font-size: 25px; line-height: 1.1; }
.tg-checkout-due span { color: var(--p1-muted); font-size: 9px; }
.tg-embedded-checkout { min-height: 420px; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 5px; background: #fff; }
.tg-checkout-back-button { display: inline-flex; align-items: center; gap: 6px; margin-top: 13px; padding: 7px 0; border: 0; background: transparent; color: var(--p1-green); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.tg-checkout-back-button:disabled { cursor: wait; opacity: .6; }
.tg-checkout-result-card { width: min(590px, 100%); text-align: center; }
.tg-checkout-result-icon { display: grid; width: 58px; height: 58px; margin: 12px auto 10px; place-items: center; border-radius: 50%; background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-checkout-result-icon.is-active { background: #ddf5e8; color: #0ca867; }
.tg-checkout-result-icon.is-cancelled { background: var(--p1-red-soft); color: var(--p1-red); }
.tg-checkout-result-icon.is-failure { background: var(--p1-red-soft); color: var(--p1-red); }
.tg-checkout-result-icon.is-processing { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-checkout-result-icon svg { width: 33px; height: 33px; }
.tg-checkout-result-icon .is-spinning { animation: tg-checkout-spin .9s linear infinite; }
@keyframes tg-checkout-spin { to { transform: rotate(360deg); } }
.tg-checkout-result-card > span { color: var(--p1-green); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.tg-checkout-result-card > h1 { margin: 6px 0; font-size: 28px; }
.tg-checkout-result-card > p { max-width: 470px; margin: 0 auto 18px; color: var(--p1-muted); line-height: 1.5; }
.tg-checkout-result-facts { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 1px; gap: 1px; margin: 0 0 14px; background: var(--p1-line); text-align: left; }
.tg-checkout-result-facts span { display: flex; align-items: center; gap: 6px; padding: 11px; background: var(--p1-green-soft); color: var(--p1-green); font-size: 10px; font-weight: 750; }
.tg-checkout-result-facts svg { flex: 0 0 auto; }
.tg-checkout-confirmation-facts { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 1px; gap: 1px; margin: 0 0 14px; border: 1px solid var(--p1-line); background: var(--p1-line); text-align: left; }
.tg-checkout-confirmation-facts > span { display: grid; grid-gap: 4px; gap: 4px; min-width: 0; padding: 12px; background: #fff; }
.tg-checkout-confirmation-facts small { color: var(--p1-muted); font-size: 9px; text-transform: uppercase; }
.tg-checkout-confirmation-facts strong { overflow-wrap: anywhere; color: var(--p1-heading); font-size: 12px; }
.tg-checkout-recovery-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; padding: 12px 14px; border-left: 3px solid var(--p1-red); background: var(--p1-red-soft); text-align: left; }
.tg-checkout-recovery-note > svg { flex: 0 0 auto; color: var(--p1-red); }
.tg-checkout-recovery-note > span { display: grid; grid-gap: 3px; gap: 3px; }
.tg-checkout-recovery-note small { color: #6b4842; font-size: 10px; line-height: 1.4; }
.tg-checkout-result-actions { display: grid; grid-gap: 8px; gap: 8px; }
.tg-checkout-result-actions :where(a, button) { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 43px; border: 1px solid var(--p1-green); background: #fff; color: var(--p1-green); font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; }
.tg-checkout-result-actions > :first-child { background: var(--p1-green); color: #fff; }

.tg-auth-final-card { width: min(560px, 100%); padding: 28px 34px 24px; border-radius: 9px; background: #fff; box-shadow: 0 30px 80px rgb(0 0 0 / 35%); }
.tg-auth-final-card > header .tg-brand-logo { width: 215px; margin-inline: auto; }
.tg-auth-final-card > nav { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; border-bottom: 1px solid var(--p1-line); }
.tg-auth-final-card > nav a { min-height: 42px; padding: 12px 8px; color: #75837e; font-weight: 800; text-align: center; text-decoration: none; }
.tg-auth-final-card > nav a.is-active { color: var(--p1-green); box-shadow: inset 0 -2px var(--p1-green); }
.tg-auth-final-intro { margin: 22px 0 18px; text-align: center; }
.tg-auth-final-intro h1 { margin: 0 0 7px; font-size: 31px; line-height: 1.05; }
.tg-auth-final-intro p { max-width: 440px; margin: 0 auto; color: var(--p1-muted); font-size: 14px; line-height: 1.45; }
.tg-auth-final-message.is-success { border-color: var(--p1-green-bright); background: var(--p1-green-soft); }
.tg-auth-final-message.is-success p { color: var(--p1-green); }
.tg-auth-final-form { display: grid; grid-gap: 13px; gap: 13px; }
.tg-auth-final-form > label,
.tg-auth-final-name-grid label { display: grid; grid-gap: 6px; gap: 6px; color: var(--p1-ink); font-size: 12px; font-weight: 800; }
.tg-auth-final-name-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 12px; gap: 12px; }
.tg-auth-final-name-grid input { width: 100%; min-height: 43px; padding: 0 11px; border: 1px solid #cbd6d2; border-radius: 4px; font: inherit; }
.tg-auth-final-input { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; min-height: 44px; padding-left: 12px; border: 1px solid #cbd6d2; border-radius: 4px; background: #fff; color: #5e746c; }
.tg-auth-final-input:focus-within,
.tg-auth-final-name-grid input:focus { border-color: var(--p1-green-bright); box-shadow: 0 0 0 3px rgb(22 138 97 / 11%); outline: 0; }
.tg-auth-final-input input { min-width: 0; height: 42px; padding: 0 10px; border: 0; outline: 0; background: transparent; color: var(--p1-ink); font: inherit; }
.tg-auth-final-input button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; background: transparent; color: var(--p1-muted); }
.tg-auth-final-forgot { justify-self: end; margin-top: -4px; color: var(--p1-green); font-size: 12px; text-decoration: underline; }
.tg-auth-final-check { display: grid !important; grid-template-columns: auto 1fr; grid-gap: 9px !important; gap: 9px !important; align-items: start; color: #3f514a !important; font-weight: 500 !important; line-height: 1.4; }
.tg-auth-final-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--p1-green); }
.tg-auth-final-check a { color: var(--p1-green); text-decoration: underline; }
.tg-auth-final-submit { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 10px 16px; border: 0; border-radius: 4px; background: var(--p1-amber); color: #17241f; font: inherit; font-weight: 900; text-decoration: none; }
.tg-auth-final-submit:disabled { cursor: wait; opacity: .68; }
.tg-auth-final-switch { margin: 17px 0 0; color: var(--p1-muted); font-size: 12px; text-align: center; }
.tg-auth-final-switch a { color: var(--p1-green); font-weight: 900; }
.tg-auth-final-card > footer { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 12px; gap: 12px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--p1-line); }
.tg-auth-final-card > footer > span { display: grid; grid-template-columns: auto 1fr; grid-gap: 1px 7px; gap: 1px 7px; align-items: center; }
.tg-auth-final-card > footer svg { grid-row: 1 / 3; color: var(--p1-green); }
.tg-auth-final-card > footer b { font-size: 10px; }
.tg-auth-final-card > footer small { color: var(--p1-muted); font-size: 9px; }
.tg-auth-action-card { width: min(500px, 100%); text-align: center; }
.tg-auth-action-icon { display: grid; width: 54px; height: 54px; margin: 15px auto 0; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-auth-action-icon svg { width: 27px; height: 27px; }
.tg-auth-action-card .tg-auth-final-form { text-align: left; }
.tg-auth-action-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 17px; color: var(--p1-green); font-size: 12px; font-weight: 850; }

@media (max-width: 900px) {
  .tg-membership-plan-grid { grid-template-columns: 1fr; }
  .tg-membership-plan { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 0 24px; }
  .tg-membership-plan > header,
  .tg-membership-price { grid-column: 1; }
  .tg-membership-plan ul { grid-column: 2; grid-row: 1 / 3; }
  .tg-membership-plan > a { grid-column: 2; }
  .tg-membership-plan header p { min-height: 0; }
  .tg-membership-compare { grid-template-columns: 1fr; gap: 15px; }
  .tg-checkout-layout { grid-template-columns: 1fr; }
  .tg-checkout-summary { border-top: 1px solid var(--p1-line); border-left: 0; padding-top: 20px; padding-left: 0; }
}

@media (max-width: 650px) {
  .tg-membership-masthead { min-height: 62px; }
  .tg-membership-masthead .tg-brand-logo { width: 145px; }
  .tg-membership-masthead nav a:first-child { display: none; }
  .tg-membership-masthead nav a:last-child { padding: 9px 10px; font-size: 10px; }
  .tg-membership-hero { min-height: 0; background-position: 58% center; }
  .tg-membership-hero-copy { padding: 36px 0 27px; }
  .tg-membership-hero h1 { font-size: 42px; }
  .tg-membership-hero form { grid-template-columns: 1fr; }
  .tg-membership-assurances { grid-template-columns: 1fr; gap: 10px; width: min(310px, 100%); }
  .tg-membership-assurances > span { padding: 0; }
  .tg-membership-assurances > span + span { border-left: 0; }
  .tg-membership-plans-head { align-items: stretch; flex-direction: column; }
  .tg-membership-billing { display: grid; grid-template-columns: 1fr 1fr; }
  .tg-membership-plan { grid-template-columns: 1fr; padding: 18px; }
  .tg-membership-plan > header,
  .tg-membership-price,
  .tg-membership-plan ul,
  .tg-membership-plan > a { grid-column: 1; grid-row: auto; }
  .tg-membership-compare [role="row"]:first-child { display: none; }
  .tg-membership-compare [role="row"] { grid-template-columns: repeat(3, 1fr); padding: 12px; }
  .tg-membership-compare [role="row"] strong { grid-column: 1 / -1; padding: 0 0 9px; border: 0; }
  .tg-membership-compare [role="row"] span { display: grid; grid-gap: 3px; gap: 3px; padding: 8px; }
  .tg-membership-compare [role="row"] span::before { color: var(--p1-muted); font-size: 8px; font-weight: 900; text-transform: uppercase; content: attr(data-plan); }
  .tg-checkout-page,
  .tg-auth-final { align-items: start; padding: 12px; background-attachment: fixed; }
  .tg-checkout-card,
  .tg-auth-final-card { padding: 20px 17px; border-radius: 7px; }
  .tg-checkout-steps { margin-bottom: 20px; }
  .tg-checkout-steps li { display: grid; justify-items: center; grid-gap: 4px; gap: 4px; font-size: 9px; text-align: center; }
  .tg-checkout-steps li::after { top: 14px; right: -25%; left: 58%; }
  .tg-checkout-selection { align-items: flex-start; flex-direction: column; }
  .tg-checkout-selection > div:last-child { text-align: left; }
  .tg-checkout-actions { grid-template-columns: 1fr; }
  .tg-checkout-actions button { grid-row: 1; }
  .tg-checkout-result-facts { grid-template-columns: 1fr; }
  .tg-checkout-confirmation-facts { grid-template-columns: 1fr 1fr; }
  .tg-checkout-detail-grid { grid-template-columns: 1fr; }
  .tg-checkout-detail-grid label.is-wide { grid-column: auto; }
  .tg-checkout-payment-head { grid-template-columns: 1fr; }
  .tg-checkout-due { min-width: 0; text-align: left; }
  .tg-auth-final-card > header .tg-brand-logo { width: 190px; }
  .tg-auth-final-intro h1 { font-size: 27px; }
  .tg-auth-final-name-grid { grid-template-columns: 1fr; }
  .tg-auth-final-card > footer { grid-template-columns: 1fr; }
}

/* Phase 1: canonical shell, interaction layers and accessibility baseline. */
html { font-size: 16px; }
body { min-width: 320px; font-size: 16px; line-height: 1.5; }
.tg-shell { min-width: 320px; }
.tg-main,
.tg-main:has(.tg-p1-page) { width: min(1180px, calc(100% - 32px)); max-width: 1180px; }
.tg-p1-header-inner { width: min(1180px, calc(100% - 32px)); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tg-p1-desktop-nav { align-items: stretch; }
.tg-p1-desktop-nav > * { align-self: stretch; }
.tg-p1-search input { font-size: 14px; }
.tg-p1-icon-action { cursor: pointer; }

/* Auth is a modal for in-product entry points and remains a direct route fallback. */
.tg-modal-backdrop {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: rgb(2 29 24 / 72%);
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
}
.tg-modal-dialog { width: min(560px, 100%); max-height: calc(100svh - 48px); overflow-y: auto; border-radius: 10px; }
.tg-auth-modal-card { width: 100%; box-shadow: 0 32px 90px rgb(0 0 0 / 42%); }
.tg-upgrade-modal-card { width: 100%; padding: 25px 28px 27px; border-radius: 10px; background: #fff; box-shadow: 0 32px 90px rgb(0 0 0 / 42%); text-align: center; }
.tg-upgrade-modal-card > header { position: relative; min-height: 44px; }
.tg-upgrade-modal-card > header .tg-brand-logo { width: 175px; margin: 0; }
.tg-upgrade-modal-card > header > button { position: absolute; top: 0; right: 0; display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--p1-ink); cursor: pointer; }
.tg-upgrade-modal-card > header > button:hover { background: var(--p1-gray-soft); }
.tg-upgrade-modal-icon { display: grid; width: 54px; height: 54px; margin: 7px auto 9px; place-items: center; border-radius: 50%; background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-upgrade-modal-card > span { color: var(--p1-green); font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.tg-upgrade-modal-card > h1 { margin: 5px 0; color: var(--p1-heading); font-size: 29px; line-height: 1.08; }
.tg-upgrade-modal-card > p { max-width: 450px; margin: 0 auto 17px; color: var(--p1-muted); font-size: 14px; line-height: 1.45; }
.tg-upgrade-modal-plan { padding: 15px 17px; border: 1px solid var(--p1-line); border-left: 3px solid var(--p1-amber); background: linear-gradient(105deg, #fff7df, #eef7f3); text-align: left; }
.tg-upgrade-modal-plan > div { display: flex; align-items: center; gap: 10px; }
.tg-upgrade-modal-plan > div > svg { color: var(--p1-green); }
.tg-upgrade-modal-plan > div > span { display: grid; }
.tg-upgrade-modal-plan small { color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-upgrade-modal-plan strong { color: var(--p1-heading); font-size: 20px; }
.tg-upgrade-modal-plan ul { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 8px; gap: 8px; margin: 13px 0 0; padding: 12px 0 0; border-top: 1px solid rgb(0 75 62 / 12%); list-style: none; }
.tg-upgrade-modal-plan li { display: flex; gap: 5px; color: #40534d; font-size: 10px; line-height: 1.35; }
.tg-upgrade-modal-plan li svg { flex: 0 0 auto; width: 14px; color: var(--p1-green-bright); }
.tg-upgrade-modal-card > aside { display: flex; gap: 9px; align-items: flex-start; margin: 12px 0; padding: 11px 12px; background: var(--p1-green-soft); text-align: left; }
.tg-upgrade-modal-card > aside > svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-upgrade-modal-card > aside > span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-upgrade-modal-card > aside small { color: var(--p1-muted); font-size: 10px; line-height: 1.4; }
.tg-upgrade-modal-actions { display: grid; grid-gap: 8px; gap: 8px; }
.tg-upgrade-modal-actions :where(a, button) { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--p1-green); background: #fff; color: var(--p1-green); font: inherit; font-size: 12px; font-weight: 900; text-decoration: none; cursor: pointer; }
.tg-upgrade-modal-actions > a:first-child { border-color: var(--p1-amber); background: var(--p1-amber); color: var(--p1-ink); }
.tg-upgrade-modal-actions > button { border: 0; }
.tg-auth-final-card > header > button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--p1-ink);
  cursor: pointer;
}
.tg-auth-final-card > header > button:hover { background: var(--p1-gray-soft); }
.tg-auth-final-card > nav :where(a, button) {
  min-height: 44px;
  padding: 12px 8px;
  border: 0;
  background: transparent;
  color: #677872;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.tg-auth-final-card > nav :where(a, button).is-active { color: var(--p1-green); box-shadow: inset 0 -2px var(--p1-green); }
.tg-auth-final-form > label,
.tg-auth-final-name-grid label { font-size: 14px; }
.tg-auth-final-switch { font-size: 14px; }
.tg-auth-final-switch button { padding: 0; border: 0; background: transparent; color: var(--p1-green); font: inherit; font-weight: 900; cursor: pointer; }

/* Header notification popover. */
.tg-p1-notifications { position: relative; }
.tg-p1-notification-panel {
  position: absolute;
  z-index: 110;
  top: calc(100% + 12px);
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(120px, auto) auto;
  width: min(390px, calc(100vw - 24px));
  max-height: min(620px, calc(100svh - 86px));
  overflow: hidden;
  border: 1px solid #cedbd6;
  border-top: 3px solid var(--p1-green-bright);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 24px 65px rgb(3 37 29 / 24%);
}
.tg-p1-notification-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 17px; border-bottom: 1px solid var(--p1-line); }
.tg-p1-notification-panel > header span { color: var(--p1-green-bright); font-size: 12px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.tg-p1-notification-panel h2 { margin: 2px 0 0; color: var(--p1-heading); font-size: 21px; }
.tg-p1-notification-panel > header button { display: grid; width: 40px; height: 40px; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--p1-muted); cursor: pointer; }
.tg-p1-notification-panel > header button:hover { background: var(--p1-gray-soft); color: var(--p1-ink); }
.tg-p1-notification-list { min-height: 0; overflow-y: auto; }
.tg-p1-notification-list > a { position: relative; display: grid; grid-template-columns: 8px minmax(0, 1fr); grid-gap: 10px; gap: 10px; padding: 14px 17px; border-bottom: 1px solid var(--p1-line); color: var(--p1-ink); text-decoration: none; }
.tg-p1-notification-list > a:hover { background: #f8fbfa; }
.tg-p1-notification-list > a > span:first-child { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #c4d0cc; }
.tg-p1-notification-list > a.is-unread > span:first-child { background: var(--p1-green-bright); box-shadow: 0 0 0 4px var(--p1-green-soft); }
.tg-p1-notification-list strong { display: block; font-size: 14px; }
.tg-p1-notification-list p { display: -webkit-box; margin: 4px 0; overflow: hidden; color: var(--p1-muted); font-size: 14px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tg-p1-notification-list small { color: #71837c; font-size: 12px; }
.tg-p1-notification-state { display: grid; justify-items: center; align-content: center; min-height: 210px; padding: 26px; color: var(--p1-muted); text-align: center; }
.tg-p1-notification-state > svg { margin-bottom: 10px; color: var(--p1-green); }
.tg-p1-notification-state p { margin: 5px 0 0; font-size: 14px; }
.tg-p1-notification-state button { margin-top: 12px; min-height: 42px; padding: 9px 14px; border: 0; border-radius: 4px; background: var(--p1-green); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.tg-p1-notification-state .is-spinning { animation: tg-p1-spin 850ms linear infinite; }
.tg-p1-notification-panel > footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 15px; border-top: 1px solid var(--p1-line); background: #f5f8f7; }
.tg-p1-notification-panel > footer span { color: var(--p1-muted); font-size: 12px; }
.tg-p1-notification-panel > footer a { color: var(--p1-green); font-size: 13px; font-weight: 850; white-space: nowrap; }

/* Shared discovery overlay uses readable interface text at every breakpoint. */
.tg-p1-mega-head > div:first-child > span,
.tg-p1-mega-alerts > header > div > span { font-size: 12px; }
.tg-p1-mega-search input { font-size: 14px; }
.tg-p1-mega-day-filter button,
.tg-p1-mega-followed,
.tg-p1-mega-reset { font-size: 13px; }
.tg-p1-mega-filters > label > span { font-size: 12px; }
.tg-p1-mega-filters select { font-size: 14px; }
.tg-p1-mega-tabs button { font-size: 14px; }
.tg-p1-mega-inline-note,
.tg-p1-mega-entity-copy small,
.tg-p1-mega-entity-race small,
.tg-p1-mega-entity-list > small,
.tg-p1-mega-empty p,
.tg-p1-mega-loading { font-size: 12px; }
.tg-p1-mega-entity-copy strong { font-size: 14px; }
.tg-p1-mega-menu .tg-p1-mega-alert > span:nth-child(2) > strong { font-size: 14px; }
.tg-p1-mega-alert p { font-size: 12px; }
.tg-p1-mega-alert > span:nth-child(2) > small { font-size: 12px; }

/* Search submitted from the global header is reflected as a live racecard filter. */
.tg-racecards-final .tg-racecards-filterbar { grid-template-columns: 1.25fr 1fr 1.05fr 1fr auto; }
.tg-racecards-final .tg-racecards-search-filter input[type="search"] { -webkit-appearance: none; -moz-appearance: none; appearance: none; }

/* Footer keeps the approved constrained composition and readable link sizes. */
.tg-footer-grid h2 { margin: 0 0 15px; color: #fff; font-size: 13px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.tg-footer .tg-footer-grid a,
.tg-footer-brand > p { font-size: 14px; }
.tg-footer-brand-proof strong { font-size: 13px; }
.tg-footer-support-mark { color: #fff; font-size: 15px; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; }

@media (max-width: 1060px) {
  .tg-racecards-final .tg-racecards-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tg-racecards-final .tg-racecards-search-filter { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .tg-main,
  .tg-main:has(.tg-p1-page) { width: 100%; max-width: none; padding-inline: 14px; }
  .tg-p1-header-inner { width: 100%; }
}

@media (max-width: 650px) {
  .tg-modal-backdrop { align-items: end; padding: 0; }
  .tg-modal-dialog { width: 100%; height: 100svh; max-height: 100svh; border-radius: 0; }
  .tg-auth-modal-card { min-height: 100svh; border-radius: 0; box-shadow: none; }
  .tg-upgrade-modal-card { min-height: 100svh; padding: 20px 17px; border-radius: 0; box-shadow: none; }
  .tg-upgrade-modal-plan ul { grid-template-columns: 1fr; }
  .tg-p1-notification-panel { position: fixed; top: 62px; right: 8px; left: 8px; width: auto; max-height: calc(100svh - 74px); }
  .tg-racecards-final .tg-racecards-filterbar { grid-template-columns: 1fr; }
  .tg-racecards-final .tg-racecards-search-filter,
  .tg-racecards-final .tg-racecards-date-picker,
  .tg-racecards-final .tg-racecards-reset { grid-column: 1; }
}

@media (max-width: 360px) {
  .tg-p1-header-inner { gap: 4px; padding-inline: 8px; }
  .tg-p1-header .tg-brand-logo { width: 108px; flex-basis: 108px; }
  .tg-p1-header-actions { gap: 0; }
  .tg-p1-header-actions :where(a, button) { width: 40px; min-width: 40px; height: 40px; min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .tg-p1-notification-state .is-spinning { animation-duration: 1ms; }
}

/* Phase 5 · Join, authentication, recovery and verification. */
.tg-membership-plan > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--p1-green);
  border-radius: 4px;
  background: #fff;
  color: var(--p1-green);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.tg-membership-plan.is-featured > button { border-color: var(--p1-amber); background: var(--p1-amber); color: #17241f; }
.tg-membership-plan > button:disabled { cursor: not-allowed; filter: grayscale(.25); opacity: .58; }
.tg-membership-catalogue-message { margin: 0 0 18px; padding: 13px 15px; border-left: 3px solid var(--p1-amber); background: var(--p1-amber-soft); color: #604f16; }
.tg-membership-catalogue-message p { margin: 3px 0 0; font-size: 13px; }
.tg-membership-price strong { min-height: 31px; }
.tg-auth-inline-action { margin-top: 8px; padding: 0; border: 0; background: transparent; color: var(--p1-green); font: inherit; font-size: 12px; font-weight: 850; text-decoration: underline; cursor: pointer; }
.tg-auth-inline-action:disabled { cursor: wait; opacity: .65; }
.tg-auth-complete-actions { display: grid; grid-gap: 9px; gap: 9px; }
.tg-auth-final-submit.is-secondary { border: 1px solid var(--p1-green); background: #fff; color: var(--p1-green); }
.tg-auth-action-icon .is-spinning { animation: tg-checkout-spin .9s linear infinite; }
.tg-auth-action-secondary { display: inline-flex; margin-top: 15px; color: var(--p1-green); font-size: 12px; font-weight: 850; text-decoration: underline; }

@media (max-width: 900px) {
  .tg-membership-plan > button { grid-column: 2; }
}

@media (max-width: 650px) {
  .tg-membership-plan > button { grid-column: 1; grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .tg-auth-action-icon .is-spinning { animation-duration: 1ms; }
}

/* Phase 4 · Account, Watchlist, Notifications and Security. */
.tg-p1-account-page { gap: 22px; }
.tg-p1-account-nav a {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-left: 3px solid transparent;
  color: var(--p1-muted);
  font-size: 14px;
  text-decoration: none;
}
.tg-p1-account-nav a:hover { background: #f7faf8; color: var(--p1-heading); }
.tg-p1-account-nav a.is-active { border-left-color: var(--p1-green); background: var(--p1-green-soft); color: var(--p1-green); font-weight: 850; }
.tg-account-details-panel,
.tg-account-security > .tg-p1-surface { padding: 22px; }
.tg-account-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 16px; gap: 16px; margin-top: 18px; }
.tg-account-details-grid label,
.tg-account-password-grid label { display: grid; grid-gap: 6px; gap: 6px; color: var(--p1-heading); font-size: 13px; font-weight: 800; }
.tg-account-details-grid label.is-wide { grid-column: 1 / -1; }
.tg-account-details-grid input,
.tg-account-password-grid input { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #cbd9d5; border-radius: 4px; background: #fff; color: var(--p1-ink); font: inherit; font-size: 14px; }
.tg-account-details-grid input:focus,
.tg-account-password-grid input:focus { border-color: var(--p1-green-bright); outline: 3px solid rgb(22 138 97 / 10%); }
.tg-account-details-grid label > small,
.tg-account-password-grid label > small { color: var(--p1-muted); font-size: 12px; font-weight: 500; }
.tg-account-verified-input { position: relative; display: block; }
.tg-account-verified-input input { padding-right: 126px; }
.tg-account-verified-input em { position: absolute; top: 50%; right: 10px; display: inline-flex; align-items: center; gap: 5px; color: var(--p1-green-bright); font-size: 11px; font-style: normal; transform: translateY(-50%); }
.tg-account-panel-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--p1-line); }
.tg-account-panel-actions > :where(span, small) { display: inline-flex; align-items: center; gap: 5px; color: var(--p1-muted); font-size: 12px; }
.tg-account-panel-actions > span { color: var(--p1-green); }
.tg-account-panel-actions > a { color: var(--p1-green); font-size: 12px; font-weight: 800; }

.tg-account-watchlist,
.tg-account-notifications { overflow: hidden; border-radius: 6px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-account-watchlist > header,
.tg-account-notifications > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 22px 17px; border-bottom: 1px solid var(--p1-line); }
.tg-account-watchlist > header > div,
.tg-account-notifications > header > div { display: grid; grid-gap: 3px; gap: 3px; }
.tg-account-watchlist > header span,
.tg-account-notifications > header span { color: var(--p1-green); font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.tg-account-watchlist > header h2,
.tg-account-notifications > header h2 { margin: 0; color: var(--p1-heading); font-size: 28px; line-height: 1.08; }
.tg-account-watchlist > header p,
.tg-account-notifications > header p { margin: 0; color: var(--p1-muted); font-size: 13px; line-height: 1.45; }
.tg-account-watchlist > header > a { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #b9cec6; border-radius: 4px; color: var(--p1-green); font-size: 12px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tg-account-notifications > header > strong { padding: 6px 9px; border-radius: 999px; background: var(--p1-green-soft); color: var(--p1-green); font-size: 11px; white-space: nowrap; }
.tg-account-watchlist > .tg-p1-notice,
.tg-account-notifications > .tg-p1-notice { margin: 14px 20px 0; }
.tg-account-watchlist-tools { display: flex; justify-content: flex-end; padding: 14px 20px 0; }
.tg-account-watchlist-tools label { display: flex; width: min(370px, 100%); min-height: 40px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid #cbd9d5; border-radius: 4px; color: var(--p1-muted); }
.tg-account-watchlist-tools input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 13px; }
.tg-account-watchlist > nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 14px 20px; border: 1px solid #cbd9d5; border-radius: 4px; }
.tg-account-watchlist > nav button { min-height: 40px; border: 0; border-left: 1px solid #dbe4e1; background: #fff; color: var(--p1-green); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.tg-account-watchlist > nav button:first-child { border-left: 0; }
.tg-account-watchlist > nav button.is-active { background: var(--p1-green); color: #fff; }
.tg-account-watchlist > nav small { color: inherit; font-size: 10px; }
.tg-account-watchlist-table { margin: 0 20px; border: 1px solid var(--p1-line); border-radius: 4px; }
.tg-account-watchlist-table > :where(header, article) { display: grid; grid-template-columns: 1.1fr .55fr 1fr .5fr .9fr; grid-gap: 12px; gap: 12px; align-items: center; padding: 11px 13px; }
.tg-account-watchlist-table > header { background: #eff5f2; color: var(--p1-muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-account-watchlist-table > article { border-top: 1px solid var(--p1-line); font-size: 12px; }
.tg-account-watchlist-table > article > div:first-child { display: flex; min-width: 0; align-items: center; gap: 8px; color: var(--p1-heading); }
.tg-account-watchlist-table > article > div:first-child svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-account-watchlist-table > article > :where(span) { color: var(--p1-muted); }
.tg-account-watchlist-table > article > div:last-child { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.tg-account-watchlist-table > article > div:last-child :where(a, button) { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: var(--p1-green); font: inherit; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.tg-account-watchlist-table > article > div:last-child button { color: var(--p1-muted); }
.tg-account-watchlist > footer { padding: 13px 20px 16px; color: var(--p1-muted); font-size: 11px; }
.tg-account-watchlist > footer a { color: var(--p1-green); font-weight: 800; }
.tg-account-alert-toggle { display: inline-flex; min-height: 32px; align-items: center; justify-content: center; gap: 5px; border: 1px solid #cbd9d5; border-radius: 999px; background: #fff; color: var(--p1-muted); font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.tg-account-alert-toggle.is-active { border-color: var(--p1-green-bright); background: var(--p1-green-soft); color: var(--p1-green); }
.tg-account-list-state { display: grid; min-height: 170px; justify-items: center; align-content: center; grid-gap: 6px; gap: 6px; padding: 24px; color: var(--p1-muted); text-align: center; }
.tg-account-list-state > svg { color: var(--p1-green); }
.tg-account-list-state p { max-width: 440px; margin: 0; font-size: 12px; }
.tg-account-list-state a { color: var(--p1-green); font-size: 12px; font-weight: 850; }

.tg-account-notification-grid { display: grid; grid-template-columns: .85fr 1.2fr .9fr; grid-gap: 1px; gap: 1px; margin: 20px; border: 1px solid var(--p1-line); background: var(--p1-line); }
.tg-account-notification-card { min-width: 0; padding: 16px; background: #f9fbfa; }
.tg-account-notification-card > header { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 13px; }
.tg-account-notification-card > header > svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-account-notification-card > header span { display: grid; }
.tg-account-notification-card > header strong { color: var(--p1-heading); font-size: 13px; }
.tg-account-notification-card > header small { color: var(--p1-muted); font-size: 11px; }
.tg-account-notification-card > div { display: grid; grid-gap: 8px; gap: 8px; }
.tg-account-notification-choice { display: flex; min-height: 36px; align-items: center; gap: 7px; padding: 6px 8px; border: 1px solid #dce6e2; border-radius: 4px; background: #fff; color: var(--p1-heading); font-size: 12px; }
.tg-account-notification-choice input { accent-color: var(--p1-green-bright); }
.tg-account-alert-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-gap: 6px; gap: 6px; }
.tg-account-coming-soon { display: inline-flex; align-items: center; gap: 6px; padding: 7px; border-radius: 4px; background: #eef2f0; color: #7e8d88; font-size: 11px; }
.tg-account-threshold { display: grid; grid-gap: 5px; gap: 5px; color: var(--p1-heading); font-size: 11px; font-weight: 800; }
.tg-account-threshold select { width: 100%; min-height: 38px; padding: 7px 9px; border: 1px solid #cbd9d5; border-radius: 4px; background: #fff; color: var(--p1-heading); font: inherit; font-size: 12px; }
.tg-account-quiet-hours { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 112px 112px; grid-gap: 12px; gap: 12px; align-items: center; margin: 0 20px 20px; padding: 14px 16px; border: 1px solid var(--p1-line); border-left: 3px solid var(--p1-green); background: #f8fbfa; }
.tg-account-quiet-hours > svg { color: var(--p1-green); }
.tg-account-quiet-hours > div { display: grid; grid-gap: 2px; gap: 2px; }
.tg-account-quiet-hours p { margin: 0; color: var(--p1-muted); font-size: 11px; }
.tg-account-quiet-hours > label:not(.tg-account-alert-toggle) { display: grid; grid-gap: 3px; gap: 3px; color: var(--p1-muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.tg-account-quiet-hours input[type="time"] { min-width: 0; width: 100%; min-height: 36px; padding: 6px; border: 1px solid #cbd9d5; background: #fff; color: var(--p1-heading); }
.tg-account-alert-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.tg-account-alert-toggle i { position: relative; width: 29px; height: 17px; border-radius: 999px; background: #cbd7d3; }
.tg-account-alert-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.tg-account-alert-toggle input:checked + i { background: var(--p1-green-bright); }
.tg-account-alert-toggle input:checked + i::after { transform: translateX(12px); }
.tg-account-alert-history { margin: 0 20px 20px; border: 1px solid var(--p1-line); border-radius: 4px; }
.tg-account-alert-history > header { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 15px; background: #f5f8f7; }
.tg-account-alert-history h3 { margin: 0; font-size: 17px; }
.tg-account-alert-history header p { margin: 2px 0 0; color: var(--p1-muted); font-size: 11px; }
.tg-account-alert-history header button { display: inline-flex; min-height: 36px; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--p1-green); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.tg-account-alert-history article { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; grid-gap: 11px; gap: 11px; align-items: center; padding: 12px 14px; border-top: 1px solid var(--p1-line); }
.tg-account-alert-history article > span { width: 8px; height: 8px; border-radius: 50%; background: #c6d1cd; }
.tg-account-alert-history article.is-unread > span { background: var(--p1-green-bright); box-shadow: 0 0 0 4px var(--p1-green-soft); }
.tg-account-alert-history article > div { display: grid; grid-gap: 2px; gap: 2px; }
.tg-account-alert-history article p { margin: 0; color: var(--p1-muted); font-size: 11px; }
.tg-account-alert-history article small { color: #7b8a85; font-size: 10px; }
.tg-account-alert-history article > a { display: inline-flex; align-items: center; gap: 4px; color: var(--p1-green); font-size: 11px; font-weight: 850; text-decoration: none; }
.tg-account-alert-history article > button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; background: transparent; color: var(--p1-muted); cursor: pointer; }
.tg-account-notifications > .tg-account-panel-actions { margin: 0; padding: 14px 20px; background: #f2f8f5; }

.tg-account-notification-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 10px; gap: 10px; align-items: center; min-height: 42px; padding: 8px 10px; background: #f5f8f7; }
.tg-account-notification-summary span { padding: 5px 8px; border-radius: 3px; background: var(--p1-green-soft); color: var(--p1-green); font-size: 11px; font-weight: 800; }
.tg-account-notification-summary small { color: var(--p1-muted); font-size: 11px; }
.tg-account-notification-summary a { color: var(--p1-green); font-size: 11px; font-weight: 850; }

.tg-account-security { display: grid; grid-gap: 16px; gap: 16px; }
.tg-account-security-assurance { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; padding: 13px; border-left: 3px solid var(--p1-green-bright); background: var(--p1-green-soft); }
.tg-account-security-assurance > svg { flex: 0 0 auto; color: var(--p1-green); }
.tg-account-security-assurance span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-account-security-assurance small { color: var(--p1-muted); font-size: 11px; }
.tg-account-subheading { display: flex; align-items: flex-start; gap: 10px; }
.tg-account-subheading > svg { color: var(--p1-green); }
.tg-account-subheading > div { flex: 1 1; }
.tg-account-subheading h3 { margin: 0; font-size: 18px; }
.tg-account-subheading p { margin: 3px 0 0; color: var(--p1-muted); font-size: 12px; }
.tg-account-subheading > strong { padding: 5px 8px; border-radius: 999px; background: var(--p1-green-soft); color: var(--p1-green); font-size: 11px; }
.tg-account-password-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 13px; gap: 13px; margin-top: 17px; }
.tg-account-session-list { display: grid; margin-top: 15px; border: 1px solid var(--p1-line); }
.tg-account-session-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 11px; gap: 11px; align-items: center; padding: 12px; border-top: 1px solid var(--p1-line); }
.tg-account-session-list article:first-child { border-top: 0; }
.tg-account-session-list article > svg { color: var(--p1-green); }
.tg-account-session-list article > div { display: grid; grid-gap: 2px; gap: 2px; }
.tg-account-session-list article p { margin: 0; color: var(--p1-muted); font-size: 11px; }
.tg-account-session-list article small { color: #82908c; font-size: 10px; }
.tg-account-session-list article > span { padding: 4px 7px; border-radius: 999px; background: var(--p1-green-soft); color: var(--p1-green); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.tg-account-danger-action { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 8px 12px; border: 1px solid #bd5b53; border-radius: 4px; background: #fff; color: #963b35; font: inherit; font-size: 12px; font-weight: 850; cursor: pointer; }
.tg-course-follow { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.tg-course-follow button { display: inline-flex; min-height: 38px; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--p1-green); border-radius: 4px; background: var(--p1-green); color: #fff; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.tg-course-follow small { color: #ffd8d4; font-size: 11px; }

@media (max-width: 1050px) {
  .tg-account-notification-grid { grid-template-columns: 1fr 1fr; }
  .tg-account-notification-card:last-child { grid-column: 1 / -1; }
  .tg-account-quiet-hours { grid-template-columns: auto minmax(0, 1fr) auto; }
  .tg-account-quiet-hours > label:not(.tg-account-alert-toggle) { grid-column: span 1; }
}

@media (max-width: 980px) {
  .tg-p1-account-nav a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .tg-p1-account-nav a.is-active { border-bottom-color: var(--p1-green); }
}

@media (max-width: 700px) {
  .tg-account-details-grid,
  .tg-account-password-grid,
  .tg-account-notification-grid { grid-template-columns: 1fr; }
  .tg-account-notification-card:last-child { grid-column: auto; }
  .tg-account-watchlist > header,
  .tg-account-notifications > header,
  .tg-account-panel-actions { align-items: flex-start; flex-direction: column; }
  .tg-account-watchlist > header > a { width: 100%; justify-content: center; }
  .tg-account-watchlist-tools { justify-content: stretch; }
  .tg-account-watchlist-tools label { width: 100%; }
  .tg-account-watchlist > nav { display: flex; overflow-x: auto; }
  .tg-account-watchlist > nav button { min-width: 105px; padding-inline: 10px; }
  .tg-account-watchlist-table > header { display: none; }
  .tg-account-watchlist-table > article { grid-template-columns: 1fr auto; gap: 8px; }
  .tg-account-watchlist-table > article > div:first-child,
  .tg-account-watchlist-table > article > span:nth-child(3) { grid-column: 1 / -1; }
  .tg-account-watchlist-table > article > div:last-child { justify-content: flex-start; }
  .tg-account-alert-categories { grid-template-columns: 1fr; }
  .tg-account-quiet-hours { grid-template-columns: auto 1fr; }
  .tg-account-quiet-hours .tg-account-alert-toggle,
  .tg-account-quiet-hours > label:not(.tg-account-alert-toggle) { grid-column: 2; width: 100%; }
  .tg-account-alert-history > header { align-items: flex-start; flex-direction: column; }
  .tg-account-alert-history article { grid-template-columns: 8px minmax(0, 1fr) auto; }
  .tg-account-alert-history article > a { grid-column: 2; }
  .tg-account-notification-summary { grid-template-columns: 1fr; }
  .tg-account-panel-actions > :where(button, a) { width: 100%; justify-content: center; }
}

/* Phase 2 · Point 3 — approved RaceId / Race Detail composition. */
.tg-race-final-page { gap: 14px; }
.tg-race-final-page .tg-race-final-breadcrumb { padding: 1px 2px; font-size: 12px; }
.tg-race-final-page .tg-race-final-times { box-shadow: 0 5px 18px rgb(20 48 40 / 4%); }
.tg-race-final-page .tg-race-final-times-back { min-width: 126px; }
.tg-race-final-page .tg-race-final-times > div a { min-width: 84px; min-height: 52px; font-size: 13px; }
.tg-race-final-page .tg-race-final-hero {
  display: block;
  padding: 9px 8px 16px;
  border-bottom: 0;
}
.tg-race-final-page .tg-race-final-hero > div { min-width: 0; }
.tg-race-final-page .tg-race-final-hero h1 { margin: 0 0 5px; font-size: clamp(38px, 4.2vw, 52px); letter-spacing: -.035em; }
.tg-race-final-page .tg-race-final-hero h1 strong { color: var(--p1-heading); }
.tg-race-final-page .tg-race-final-hero p { max-width: 880px; color: #53645e; font-size: 18px; }
.tg-race-final-page .tg-race-final-hero dl {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin: 14px 0 0;
  border: 0;
  background: transparent;
}
.tg-race-final-page .tg-race-final-hero dl > div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
}
.tg-race-final-page .tg-race-final-hero dt { color: var(--p1-green); }
.tg-race-final-page .tg-race-final-hero dd { margin: 0; color: var(--p1-muted); font-size: 13px; font-weight: 700; }
.tg-race-distance-icon { display: grid; width: 16px; height: 16px; place-items: center; color: var(--p1-green); font-size: 17px; font-weight: 900; }

.tg-race-final-page .tg-p1-race-decision { gap: 14px; }
.tg-race-sirius {
  display: grid;
  grid-template-columns: minmax(245px, .78fr) minmax(0, 1.35fr) 150px;
  grid-gap: 22px;
  gap: 22px;
  align-items: center;
  min-height: 142px;
  padding: 16px;
  border: 1px solid #b8ccc5;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(20 48 40 / 4%);
}
.tg-race-sirius-visual {
  position: relative;
  display: grid;
  min-height: 108px;
  place-items: center;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(145deg, #063e33, #0a6c59);
  color: #fff;
}
.tg-race-sirius-visual::before,
.tg-race-sirius-visual::after { content: ""; position: absolute; border: 2px solid rgb(255 255 255 / 26%); border-radius: 50%; }
.tg-race-sirius-visual::before { width: 210px; height: 76px; }
.tg-race-sirius-visual::after { width: 150px; height: 45px; }
.tg-race-sirius-visual > svg { position: absolute; top: 10px; left: 12px; color: #79dfb8; }
.tg-race-sirius-visual > .tg-live-silk,
.tg-race-sirius-visual > span { position: relative; z-index: 1; }
.tg-race-sirius-visual > span { display: grid; width: 52px; height: 52px; place-items: center; border: 2px solid rgb(255 255 255 / 48%); border-radius: 50%; background: rgb(255 255 255 / 12%); font-size: 26px; font-weight: 900; }
.tg-race-sirius > div:nth-child(2) > span { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.tg-race-sirius h2 { margin: 3px 0; font-size: 22px; }
.tg-race-sirius p { margin: 0; color: var(--p1-muted); font-size: 13px; line-height: 1.5; }
.tg-race-sirius ul { display: grid; grid-gap: 4px; gap: 4px; margin: 9px 0 0; padding: 0; list-style: none; }
.tg-race-sirius li,
.tg-race-sirius div:nth-child(2) > small { display: flex; align-items: center; gap: 6px; color: #3e514a; font-size: 12px; }
.tg-race-sirius li svg { width: 16px; color: var(--p1-green-bright); }
.tg-race-sirius div:nth-child(2) > small { margin-top: 9px; color: var(--p1-muted); }
.tg-race-sirius dl { display: grid; grid-gap: 1px; gap: 1px; margin: 0; background: var(--p1-line); }
.tg-race-sirius dl > div { padding: 10px 12px; background: #f8fbfa; }
.tg-race-sirius dt { color: var(--p1-muted); font-size: 10px; text-transform: uppercase; }
.tg-race-sirius dd { margin: 3px 0 0; color: var(--p1-heading); font-size: 14px; font-weight: 850; }
.tg-race-sirius.is-unavailable .tg-race-sirius-visual { background: linear-gradient(145deg, #25483f, #41655c); }

.tg-race-final-page .tg-p1-evidence-tabs { position: static; z-index: auto; top: auto; gap: 42px; padding: 0 10px; background: transparent; }
.tg-race-final-page .tg-p1-evidence-tabs button { min-height: 48px; padding-inline: 5px; font-size: 14px; cursor: pointer; }

.tg-race-final-page .tg-p1-runner-evidence,
.tg-race-final-page .tg-p1-market-evidence,
.tg-race-final-page .tg-race-pace-draw,
.tg-race-final-page .tg-race-quality-final { padding: 0; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 8px 26px rgb(20 48 40 / 4%); }
.tg-race-runner-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px;
  border-bottom: 1px solid var(--p1-line);
  background: #fbfdfc;
}
.tg-race-view-controls { display: flex; align-items: center; gap: 7px; overflow-x: auto; }
.tg-race-view-controls > span,
.tg-race-sort-controls label > span { flex: 0 0 auto; color: var(--p1-muted); font-size: 11px; font-weight: 800; }
.tg-race-view-controls button {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid #d5e1dd;
  background: #fff;
  color: var(--p1-green);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.tg-race-view-controls button.is-active { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-race-sort-controls { flex: 0 0 auto; }
.tg-race-sort-controls label { display: flex; align-items: center; gap: 8px; }
.tg-race-sort-controls select { min-height: 40px; padding: 7px 28px 7px 10px; border: 1px solid #d5e1dd; background: #fff; color: var(--p1-heading); font-size: 12px; font-weight: 750; }
.tg-race-access-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-gap: 11px;
  gap: 11px;
  align-items: center;
  margin: 12px;
  padding: 12px 14px;
  border-left: 3px solid var(--p1-amber);
  background: var(--p1-amber-soft);
  color: #6c520e;
}
.tg-race-access-note > svg { align-self: start; }
.tg-race-access-note > span { display: grid; grid-gap: 2px; gap: 2px; font-size: 12px; }
.tg-race-access-note :where(a, button) { min-height: 40px; padding: 8px 12px; border: 0; border-radius: 4px; background: var(--p1-green); color: #fff; font: inherit; font-size: 12px; font-weight: 850; text-decoration: none; cursor: pointer; }
.tg-race-access-note.is-warning { border-left-color: var(--p1-red); background: var(--p1-red-soft); color: #7f332e; }

.tg-race-runner-table-wrap { width: 100%; }
.tg-race-final-page .tg-p1-runner-table { min-width: 1120px; font-size: 12px; }
.tg-race-final-page .tg-p1-runner-table th { padding: 11px 9px; background: #f5f8f7; font-size: 10px; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.tg-race-final-page .tg-p1-runner-table th small { color: #86958f; font-size: 9px; font-weight: 650; }
.tg-race-final-page .tg-p1-runner-table td { padding: 12px 9px; vertical-align: middle; }
.tg-race-final-page .tg-p1-runner-table th:nth-child(2),
.tg-race-final-page .tg-p1-runner-table td:nth-child(2) { min-width: 218px; }
.tg-race-final-page .tg-p1-runner-table th:nth-child(6),
.tg-race-final-page .tg-p1-runner-table td:nth-child(6) { min-width: 150px; }
.tg-race-final-page .tg-p1-runner-table th:nth-child(11),
.tg-race-final-page .tg-p1-runner-table td:nth-child(11) { min-width: 126px; }
.tg-race-final-page .tg-p1-runner-table tr.is-top { box-shadow: inset 3px 0 var(--p1-green-bright); }
.tg-race-final-page .tg-p1-rank-number { width: 24px; height: 24px; border-radius: 0; background: transparent; color: var(--p1-heading); font-size: 13px; }
.tg-race-final-page .tg-p1-runner-identity.is-compact strong { font-size: 13px; }
.tg-race-final-page .tg-p1-runner-identity > div > span { max-width: 205px; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tg-race-final-page .tg-p1-spotlight-toggle { min-height: 40px; font-size: 11px; white-space: nowrap; cursor: pointer; }
.tg-race-form-chips { display: inline-flex; gap: 2px; }
.tg-race-form-chips i { display: grid; width: 21px; height: 24px; place-items: center; border-radius: 3px; background: #98a29f; color: #fff; font-size: 10px; font-style: normal; font-weight: 850; }
.tg-race-form-chips i.is-win { background: var(--p1-green-bright); }
.tg-race-form-chips i.is-place { background: #5b7189; }
.tg-race-form-empty { color: var(--p1-muted); }
.tg-race-locked-value { display: inline-flex; align-items: center; gap: 4px; color: var(--p1-muted); font-size: 10px; font-weight: 750; }
.tg-race-final-page .tg-p1-runner-spotlight { margin: 0; border-width: 1px 0 0 3px; }
.tg-race-final-page .tg-p1-runner-spotlight > footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-size: 12px; font-weight: 850; text-decoration: none; }

.tg-race-final-page .tg-p1-race-angles { gap: 10px; margin: 0; padding: 14px; border-top: 1px solid var(--p1-line); background: #f8fbfa; }
.tg-race-final-page .tg-p1-race-angles article { display: grid; grid-template-columns: auto auto minmax(0, 1fr); min-height: 145px; padding: 16px; background: #fff; }
.tg-race-final-page .tg-p1-race-angles article:nth-child(1) { background: #effaf5; }
.tg-race-final-page .tg-p1-race-angles article:nth-child(2) { background: #f2f7fb; }
.tg-race-final-page .tg-p1-race-angles article:nth-child(3) { background: #fff8ee; }
.tg-race-final-page .tg-p1-race-angles article > span { grid-column: 2 / -1; }
.tg-race-final-page .tg-p1-race-angles article > svg { width: 22px; }
.tg-race-final-page .tg-p1-race-angles strong { font-size: 14px; }
.tg-race-final-page .tg-p1-race-angles p { font-size: 11px; line-height: 1.45; }
.tg-race-final-page .tg-p1-race-angles button { min-height: 30px; font-size: 11px; cursor: pointer; }

.tg-race-final-page .tg-p1-market-evidence,
.tg-race-final-page .tg-race-pace-draw { display: grid; grid-gap: 14px; gap: 14px; padding: 20px; }
.tg-race-final-page .tg-p1-market-table,
.tg-race-final-page .tg-race-pace-table { min-width: 780px; }
.tg-race-market-list { display: grid; border-block: 1px solid var(--p1-line); }
.tg-race-market-list article { display: grid; grid-template-columns: auto minmax(0, 1fr) 80px 90px; grid-gap: 11px; gap: 11px; align-items: center; min-height: 62px; padding: 9px 12px; border-top: 1px solid var(--p1-line); }
.tg-race-market-list article:first-child { border-top: 0; }
.tg-race-market-list article > span { display: grid; }
.tg-race-market-list article small { color: var(--p1-muted); font-size: 11px; }
.tg-race-market-list article em { font-style: normal; font-weight: 850; text-align: right; }

.tg-race-quality-final > .tg-p1-section-heading { margin: 0; padding: 20px; }
.tg-race-quality-final > .tg-p1-section-heading h2 { font-size: 26px; }
.tg-race-quality-final > .tg-p1-section-heading p { font-size: 13px; }
.tg-race-quality-final > .tg-p1-section-heading a { font-size: 12px; white-space: nowrap; }
.tg-race-quality-tabs { display: flex; gap: 7px; padding: 0 20px 12px; overflow-x: auto; border-bottom: 1px solid var(--p1-line); }
.tg-race-quality-tabs button { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px; min-width: 104px; min-height: 42px; padding: 8px 13px; border: 1px solid #d5e1dd; background: #fff; color: var(--p1-green); font-size: 12px; font-weight: 800; cursor: pointer; }
.tg-race-quality-tabs button.is-active { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-race-quality-tabs button:nth-last-child(-n + 3):not(.is-active) { color: #6e5a1d; }
.tg-race-quality-grid { display: grid; grid-template-columns: .92fr 1.05fr .95fr; grid-gap: 1px; gap: 1px; margin: 14px; border: 1px solid var(--p1-line); background: var(--p1-line); }
.tg-race-quality-grid > article { min-width: 0; padding: 16px; background: #fff; }
.tg-race-quality-grid article > header { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 12px; color: var(--p1-heading); }
.tg-mark { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 4px; background: var(--p1-heading); color: #fff; font-size: 10px; font-weight: 900; }
.tg-race-verdict > div { display: grid; grid-template-columns: 30px auto minmax(0, 1fr); grid-gap: 8px; gap: 8px; align-items: center; min-height: 48px; border-top: 1px solid var(--p1-line); }
.tg-race-verdict > div > b { font-size: 11px; }
.tg-race-verdict > div > span { display: grid; min-width: 0; }
.tg-race-verdict > div strong,
.tg-race-verdict > div small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-race-verdict > div small { color: var(--p1-muted); font-size: 10px; }
.tg-race-verdict > p { margin: 12px 0 0; color: var(--p1-muted); font-size: 11px; line-height: 1.5; }
.tg-race-evidence-coverage > header svg { color: var(--p1-green); }
.tg-race-rating-ring { display: grid; width: 122px; height: 122px; margin: 3px auto 14px; place-items: center; border-radius: 50%; background: conic-gradient(var(--p1-green-bright) var(--tg-ring-value), #e9efed 0); }
.tg-race-rating-ring::before { content: ""; grid-area: 1 / 1; width: 88px; height: 88px; border-radius: 50%; background: #fff; }
.tg-race-rating-ring > span { z-index: 1; display: flex; grid-area: 1 / 1; align-items: baseline; }
.tg-race-rating-ring b { color: var(--p1-heading); font-size: 32px; }
.tg-race-rating-ring small { color: var(--p1-muted); }
.tg-race-evidence-coverage dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.tg-race-evidence-coverage dl > div { padding: 0 8px; border-left: 1px solid var(--p1-line); text-align: center; }
.tg-race-evidence-coverage dl > div:first-child { border-left: 0; }
.tg-race-evidence-coverage dt { color: var(--p1-muted); font-size: 9px; }
.tg-race-evidence-coverage dd { margin: 3px 0 0; font-size: 12px; font-weight: 850; }
.tg-race-selections > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-gap: 9px; gap: 9px; align-items: center; min-height: 48px; border-top: 1px solid var(--p1-line); }
.tg-race-selections > div > b { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 4px; background: var(--p1-green-bright); color: #fff; }
.tg-race-selections > div:nth-of-type(2) > b { background: var(--p1-amber); color: var(--p1-heading); }
.tg-race-selections > div:nth-of-type(3) > b { background: #2676d8; }
.tg-race-selections > div:nth-of-type(4) > b { background: #e33f55; }
.tg-race-selections > div > span { display: grid; min-width: 0; }
.tg-race-selections small { color: var(--p1-muted); font-size: 9px; }
.tg-race-selections strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tg-race-selections em { overflow: hidden; color: var(--p1-muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.tg-race-flags { margin: 0 14px 14px; border: 1px solid var(--p1-line); }
.tg-race-flags summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 8px; gap: 8px; align-items: center; min-height: 48px; padding: 8px 12px; background: #f8faf9; cursor: pointer; }
.tg-race-flags summary::marker { content: ""; }
.tg-race-flags[open] summary > svg { transform: rotate(180deg); }
.tg-race-flags > div { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 9px 18px; gap: 9px 18px; padding: 14px; border-top: 1px solid var(--p1-line); }
.tg-race-flags > div span { display: flex; align-items: flex-start; gap: 7px; color: var(--p1-muted); font-size: 11px; }
.tg-race-flags > div svg { width: 16px; flex: 0 0 auto; color: var(--p1-green); }
.tg-race-quality-final > .tg-p1-notice,
.tg-race-model-evidence,
.tg-race-hints { margin: 14px; }
.tg-race-model-evidence { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-gap: 1px; gap: 1px; border: 1px solid var(--p1-line); background: var(--p1-line); }
.tg-race-model-evidence > header { grid-column: 1 / -1; display: flex; gap: 9px; padding: 14px; background: #f8faf9; }
.tg-race-model-evidence > header > span,
.tg-race-model-evidence article > span { display: grid; min-width: 0; }
.tg-race-model-evidence small { color: var(--p1-muted); font-size: 10px; }
.tg-race-model-evidence article { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 8px; gap: 8px; padding: 13px; background: #fff; }
.tg-race-hints .tg-p1-condition-grid { margin-top: 0; }

@media (max-width: 1050px) {
  .tg-race-sirius { grid-template-columns: 230px minmax(0, 1fr); }
  .tg-race-sirius dl { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .tg-race-quality-grid { grid-template-columns: 1fr 1fr; }
  .tg-race-selections { grid-column: 1 / -1; }
  .tg-race-flags > div { grid-template-columns: 1fr 1fr; }
  .tg-race-model-evidence { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .tg-race-final-page .tg-race-final-times { grid-template-columns: 48px minmax(0, 1fr); }
  .tg-race-final-page .tg-race-final-times-back { min-width: 0; }
  .tg-race-final-page .tg-race-final-hero { padding-inline: 2px; }
  .tg-race-final-page .tg-race-final-hero h1 { font-size: 36px; }
  .tg-race-final-page .tg-race-final-hero p { font-size: 16px; }
  .tg-race-final-page .tg-race-final-hero dl { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 10px 14px; gap: 10px 14px; }
  .tg-race-final-page .tg-race-final-hero dl > div { min-width: 0; }
  .tg-race-final-page .tg-race-final-hero dd { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tg-race-sirius { grid-template-columns: 1fr; gap: 14px; }
  .tg-race-sirius-visual { min-height: 130px; }
  .tg-race-sirius dl { grid-column: 1; }
  .tg-race-final-page .tg-p1-evidence-tabs { gap: 22px; padding-inline: 2px; }
  .tg-race-runner-toolbar { align-items: stretch; flex-direction: column; }
  .tg-race-sort-controls label { justify-content: space-between; }
  .tg-race-sort-controls select { flex: 1 1; }
  .tg-race-access-note { grid-template-columns: auto minmax(0, 1fr); }
  .tg-race-access-note :where(a, button) { grid-column: 1 / -1; text-align: center; }
  .tg-race-final-page .tg-p1-race-angles { grid-template-columns: 1fr; }
  .tg-race-final-page .tg-p1-race-angles article { min-height: 0; }
  .tg-race-final-page .tg-p1-market-evidence,
  .tg-race-final-page .tg-race-pace-draw { padding: 15px; }
  .tg-race-quality-final > .tg-p1-section-heading { align-items: flex-start; flex-direction: column; padding: 16px; }
  .tg-race-quality-tabs { padding-inline: 16px; }
  .tg-race-quality-grid { grid-template-columns: 1fr; margin: 10px; }
  .tg-race-selections { grid-column: auto; }
  .tg-race-flags { margin: 0 10px 10px; }
  .tg-race-flags > div { grid-template-columns: 1fr; }
  .tg-race-model-evidence { grid-template-columns: 1fr 1fr; }
  .tg-race-hints .tg-p1-condition-status { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .tg-race-final-page .tg-race-final-hero dl { grid-template-columns: 1fr; }
  .tg-race-final-page .tg-p1-evidence-tabs button { min-height: 44px; font-size: 12px; }
  .tg-race-view-controls button { min-height: 44px; }
  .tg-race-quality-tabs { padding-inline: 10px; }
  .tg-race-quality-tabs button { min-width: 96px; min-height: 44px; }
  .tg-race-evidence-coverage dl { grid-template-columns: 1fr; }
  .tg-race-evidence-coverage dl > div { padding: 7px 0; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-race-evidence-coverage dl > div:first-child { border-top: 0; }
  .tg-race-model-evidence { grid-template-columns: 1fr; }
}

/* Phase 2 · Point 4 — Results & Race Reviews. */
.tg-results-review-final { gap: 16px; }
.tg-results-review-hero {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr);
  grid-gap: 18px 26px;
  gap: 18px 26px;
  align-items: start;
  padding-top: 8px;
}
.tg-results-review-title h1 { margin: 5px 0 6px; color: var(--p1-heading); font-size: clamp(38px, 4.8vw, 58px); line-height: 1; letter-spacing: -.035em; }
.tg-results-review-title > p { max-width: 680px; margin: 0; color: var(--p1-muted); font-size: 15px; line-height: 1.5; }
.tg-results-review-title > nav { display: flex; gap: 8px; margin-top: 18px; }
.tg-results-review-title > nav a { display: inline-flex; min-width: 108px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 16px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-heading); font-size: 13px; font-weight: 800; text-decoration: none; }
.tg-results-review-title > nav a.is-active { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-results-date-control { display: flex; justify-content: flex-end; gap: 7px; }
.tg-results-date-control :where(a, label, button) { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 7px; padding: 8px 12px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-heading); font: inherit; font-size: 12px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.tg-results-date-control label { min-width: 178px; }
.tg-results-date-control input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--p1-heading); font: inherit; }
.tg-results-date-control button { border-color: var(--p1-green); background: var(--p1-green); color: #fff; cursor: pointer; }
.tg-results-date-control svg { color: var(--p1-green); }
.tg-results-date-control button svg { color: inherit; }
.tg-results-metrics { grid-column: 2; display: grid; grid-template-columns: repeat(4, 1fr); min-width: 0; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: var(--p1-line); }
.tg-results-metrics article { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 10px; gap: 10px; min-width: 0; min-height: 92px; align-items: center; padding: 13px; background: #fff; }
.tg-results-metrics article > svg { width: 28px; height: 28px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-results-metrics article:nth-child(2) > svg { background: #e8f0ff; color: #296fd2; }
.tg-results-metrics article:nth-child(3) > svg { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-results-metrics article:nth-child(4) > svg { background: #fff0ef; color: var(--p1-red); }
.tg-results-metrics article > span { display: grid; min-width: 0; grid-gap: 2px; gap: 2px; }
.tg-results-metrics strong { overflow: hidden; color: var(--p1-heading); font-size: 20px; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.tg-results-metrics small { color: var(--p1-muted); font-size: 10px; font-weight: 700; }
.tg-results-metrics em { overflow: hidden; color: #82918c; font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.tg-results-metrics article.is-negative strong { color: var(--p1-red); }
.tg-results-metrics article.is-positive strong { color: var(--p1-green-bright); }

.tg-results-review-filters {
  position: relative;
  display: grid;
  grid-template-columns: auto repeat(4, minmax(130px, 1fr)) auto auto auto;
  grid-gap: 8px;
  gap: 8px;
  align-items: end;
  padding: 12px 14px;
  border: 1px solid var(--p1-line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 7px 23px rgb(20 48 40 / 4%);
}
.tg-results-filter-label { display: inline-flex; min-height: 43px; align-items: center; gap: 6px; padding-inline: 4px 8px; color: var(--p1-green); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.tg-results-review-filters > label,
.tg-results-more-filters label { display: grid; grid-gap: 3px; gap: 3px; min-width: 0; color: var(--p1-muted); font-size: 9px; font-weight: 750; }
.tg-results-review-filters select { width: 100%; min-width: 0; min-height: 43px; padding: 8px 28px 8px 10px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-heading); font: inherit; font-size: 12px; }
.tg-results-review-filters > button,
.tg-results-review-filters > a,
.tg-results-more-filters summary { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-green); font: inherit; font-size: 11px; font-weight: 850; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tg-results-review-filters > button { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-results-review-filters > a { border: 0; }
.tg-results-more-filters { position: relative; }
.tg-results-more-filters summary { list-style: none; }
.tg-results-more-filters summary::-webkit-details-marker { display: none; }
.tg-results-more-filters[open] summary > svg:last-child { transform: rotate(180deg); }
.tg-results-more-filters > div { position: absolute; z-index: 8; top: calc(100% + 8px); right: 0; display: grid; width: 265px; grid-gap: 10px; gap: 10px; padding: 13px; border: 1px solid var(--p1-line); border-radius: 5px; background: #fff; box-shadow: 0 13px 34px rgb(20 48 40 / 13%); }

.tg-results-fast-preview,
.tg-results-review-list { overflow: hidden; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 4%); }
.tg-results-fast-preview > header,
.tg-results-review-list > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border-bottom: 1px solid var(--p1-line); }
.tg-results-fast-preview > header h2,
.tg-results-review-list > header h2 { margin: 0; color: var(--p1-heading); font-size: 22px; }
.tg-results-fast-preview > header p,
.tg-results-review-list > header p { margin: 3px 0 0; color: var(--p1-muted); font-size: 12px; }
.tg-results-fast-preview > header > a { display: inline-flex; min-height: 39px; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--p1-green); border-radius: 4px; color: var(--p1-green); font-size: 12px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tg-results-fast-preview > div { display: grid; grid-template-columns: repeat(5, minmax(195px, 1fr)); overflow-x: auto; }
.tg-results-fast-card { position: relative; display: grid; min-width: 0; align-content: start; padding: 12px 13px 11px; border-left: 1px solid var(--p1-line); box-shadow: inset 0 3px var(--p1-green); }
.tg-results-fast-card:first-child { border-left: 0; }
.tg-results-fast-card.is-live { box-shadow: inset 0 3px var(--p1-red); }
.tg-results-fast-card.is-upcoming { box-shadow: inset 0 3px #287de1; }
.tg-results-fast-card.is-pending { box-shadow: inset 0 3px var(--p1-amber); }
.tg-results-fast-card.is-void { box-shadow: inset 0 3px #8b9692; }
.tg-results-fast-card header { display: flex; justify-content: space-between; gap: 7px; }
.tg-results-fast-card header > span { display: flex; min-width: 0; align-items: baseline; gap: 7px; }
.tg-results-fast-card header strong { color: var(--p1-heading); font-size: 18px; }
.tg-results-fast-card header b { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tg-results-fast-card header em { height: -moz-fit-content; height: fit-content; padding: 3px 6px; border-radius: 10px; background: var(--p1-green-soft); color: var(--p1-green); font-size: 8px; font-style: normal; font-weight: 850; white-space: nowrap; }
.tg-results-fast-card.is-live header em { background: var(--p1-red-soft); color: var(--p1-red); }
.tg-results-fast-card.is-upcoming header em { background: #e9f2fe; color: #1e66bd; }
.tg-results-fast-card.is-pending header em { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-results-fast-card > p { margin: 5px 0 9px; color: var(--p1-muted); font-size: 10px; }
.tg-results-fast-card > div { display: grid; grid-gap: 4px; gap: 4px; }
.tg-results-fast-card > div > span { display: grid; grid-template-columns: 20px auto minmax(0, 1fr) auto; grid-gap: 5px; gap: 5px; align-items: center; min-height: 29px; }
.tg-results-fast-card > div > span > b { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #eef3f1; color: var(--p1-heading); font-size: 9px; }
.tg-results-fast-card > div strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tg-results-fast-card > div small { color: var(--p1-muted); font-size: 9px; }
.tg-results-fast-card > a { display: inline-flex; align-items: center; gap: 6px; width: -moz-fit-content; width: fit-content; margin-top: 9px; color: var(--p1-green); font-size: 10px; font-weight: 850; text-decoration: none; }

.tg-results-list-controls { display: flex; align-items: center; gap: 8px; }
.tg-results-list-controls form { display: flex; align-items: center; gap: 6px; }
.tg-results-list-controls label { display: flex; align-items: center; gap: 6px; color: var(--p1-muted); font-size: 10px; }
.tg-results-list-controls select { min-height: 38px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-heading); font: inherit; font-size: 11px; }
.tg-results-list-controls form button { min-height: 38px; padding: 6px 10px; border: 1px solid var(--p1-line); background: #fff; color: var(--p1-green); font-weight: 800; }
.tg-results-list-controls nav { display: flex; border: 1px solid var(--p1-line); border-radius: 4px; }
.tg-results-list-controls nav a { display: inline-flex; min-width: 78px; min-height: 38px; align-items: center; justify-content: center; border-left: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 10px; font-weight: 850; text-decoration: none; }
.tg-results-list-controls nav a:first-child { border-left: 0; }
.tg-results-list-controls nav a.is-active { background: var(--p1-green); color: #fff; }
.tg-results-review-columns,
.tg-results-review-row > summary { display: grid; grid-template-columns: 105px 155px minmax(220px, 1fr) minmax(220px, 1fr) 135px 98px; grid-gap: 11px; gap: 11px; }
.tg-results-review-columns { padding: 8px 14px; background: #edf3f1; color: var(--p1-muted); font-size: 9px; font-weight: 850; letter-spacing: .02em; text-transform: uppercase; }
.tg-results-review-row { border-top: 1px solid var(--p1-line); }
.tg-results-review-row > summary { min-height: 107px; align-items: center; padding: 11px 14px; cursor: pointer; list-style: none; }
.tg-results-review-row > summary::-webkit-details-marker { display: none; }
.tg-results-review-row > summary:hover { background: #f8fbfa; }
.tg-results-review-row[open] > summary { background: #f5faf8; box-shadow: inset 3px 0 var(--p1-green); }
.tg-results-review-race,
.tg-results-review-context { display: grid; min-width: 0; }
.tg-results-review-race strong { color: var(--p1-heading); font-size: 22px; line-height: 1; }
.tg-results-review-race b { overflow: hidden; margin-top: 4px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tg-results-review-context strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tg-results-review-context small { overflow: hidden; margin-top: 3px; color: var(--p1-muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tg-results-place-list { display: grid; min-width: 0; grid-gap: 3px; gap: 3px; }
.tg-results-place-list > span { display: grid; grid-template-columns: 20px auto minmax(0, 1fr) 42px; grid-gap: 5px; gap: 5px; align-items: center; min-width: 0; }
.tg-results-place-list > span > b { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #eef3f1; color: var(--p1-heading); font-size: 8px; }
.tg-results-place-list > span:first-child > b { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-results-place-list > span > strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tg-results-place-list > span > small { color: var(--p1-muted); font-size: 8px; text-align: right; }
.tg-results-place-list > small { color: var(--p1-muted); font-size: 10px; }
.tg-results-review-found { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 7px; gap: 7px; align-items: center; color: var(--p1-muted); }
.tg-results-review-found > svg { width: 24px; height: 24px; color: #88948f; }
.tg-results-review-found > span { display: grid; }
.tg-results-review-found strong { font-size: 13px; }
.tg-results-review-found small { color: var(--p1-muted); font-size: 8px; }
.tg-results-review-found.is-positive > svg,
.tg-results-review-found.is-positive strong { color: var(--p1-green-bright); }
.tg-results-review-found.is-negative > svg,
.tg-results-review-found.is-negative strong { color: var(--p1-red); }
.tg-results-review-open { display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--p1-green); font-size: 9px; font-weight: 850; }
.tg-results-review-open svg { transition: transform .2s ease; }
.tg-results-review-row[open] .tg-results-review-open svg { transform: rotate(180deg); }

.tg-results-race-review { display: grid; grid-gap: 0; gap: 0; padding: 0 17px 17px; background: #f8fbfa; }
.tg-results-race-review-title { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 9px; gap: 9px; align-items: center; padding: 13px 0; }
.tg-results-race-review-title > svg { color: var(--p1-green); }
.tg-results-race-review-title > span { display: grid; }
.tg-results-race-review-title small { color: var(--p1-muted); font-size: 9px; }
.tg-results-race-review-title em { padding: 4px 7px; border-radius: 10px; background: var(--p1-green-soft); color: var(--p1-green); font-size: 9px; font-style: normal; font-weight: 850; }
.tg-results-review-facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--p1-line); background: var(--p1-line); }
.tg-results-review-facts > div { display: grid; align-content: start; grid-gap: 4px; gap: 4px; min-height: 112px; padding: 13px; background: #fff; }
.tg-results-review-facts > div > span { color: var(--p1-muted); font-size: 9px; text-transform: uppercase; }
.tg-results-review-facts > div > strong { font-size: 14px; }
.tg-results-review-facts > div > small { color: var(--p1-muted); font-size: 9px; }
.tg-results-review-facts > div.is-positive > strong { color: var(--p1-green-bright); }
.tg-results-review-facts > div.is-negative > strong { color: var(--p1-red); }
.tg-results-review-facts .tg-decision-signal { width: -moz-fit-content; width: fit-content; margin-top: 3px; }
.tg-results-review-orders { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 1px; gap: 1px; margin-top: 1px; border-inline: 1px solid var(--p1-line); border-bottom: 1px solid var(--p1-line); background: var(--p1-line); }
.tg-results-review-orders section { padding: 13px; background: #fff; }
.tg-results-review-orders h3 { margin: 0 0 9px; font-size: 11px; }
.tg-results-review-orders .tg-results-place-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tg-results-review-orders .tg-results-place-list > span { padding-left: 8px; border-left: 1px solid var(--p1-line); }
.tg-results-review-orders .tg-results-place-list > span:first-child { padding-left: 0; border-left: 0; }
.tg-results-what-happened { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border: 1px solid var(--p1-line); border-top: 0; background: #fff; }
.tg-results-what-happened > span { display: grid; grid-gap: 3px; gap: 3px; }
.tg-results-what-happened p { margin: 0; color: var(--p1-muted); font-size: 10px; line-height: 1.5; }
.tg-results-what-happened > a { display: inline-flex; min-height: 39px; flex: 0 0 auto; align-items: center; gap: 6px; padding: 8px 11px; border: 1px solid var(--p1-green); color: var(--p1-green); font-size: 10px; font-weight: 850; text-decoration: none; }
.tg-results-method-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; color: var(--p1-muted); font-size: 11px; text-align: center; }
.tg-results-method-note svg { color: var(--p1-green); }

@media (max-width: 1080px) {
  .tg-results-review-hero { grid-template-columns: 1fr; }
  .tg-results-date-control { justify-content: flex-start; grid-row: 2; }
  .tg-results-metrics { grid-column: 1; }
  .tg-results-review-filters { grid-template-columns: auto repeat(3, minmax(135px, 1fr)); }
  .tg-results-review-filters > label:nth-of-type(4) { grid-column: 2; }
  .tg-results-review-columns,
  .tg-results-review-row > summary { grid-template-columns: 92px 135px minmax(205px, 1fr) minmax(205px, 1fr) 115px 58px; gap: 8px; }
  .tg-results-review-open span { display: none; }
}

@media (max-width: 820px) {
  .tg-results-metrics { grid-template-columns: 1fr 1fr; }
  .tg-results-review-filters { grid-template-columns: 1fr 1fr; }
  .tg-results-filter-label { grid-column: 1 / -1; }
  .tg-results-review-filters > label:nth-of-type(4) { grid-column: auto; }
  .tg-results-more-filters { position: static; }
  .tg-results-more-filters > div { right: auto; left: 0; }
  .tg-results-review-list > header { align-items: flex-start; flex-direction: column; }
  .tg-results-list-controls { width: 100%; justify-content: space-between; }
  .tg-results-review-columns { display: none; }
  .tg-results-review-row > summary { grid-template-columns: 1fr auto; gap: 10px; padding: 15px; }
  .tg-results-review-race { grid-column: 1; }
  .tg-results-review-context { grid-column: 1 / -1; }
  .tg-results-review-row > summary > .tg-results-place-list { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); padding-top: 9px; border-top: 1px solid var(--p1-line); }
  .tg-results-review-row > summary > .tg-results-place-list > span { display: grid; grid-template-columns: 20px auto minmax(0, 1fr); padding-left: 8px; border-left: 1px solid var(--p1-line); }
  .tg-results-review-row > summary > .tg-results-place-list > span:first-child { padding-left: 0; border-left: 0; }
  .tg-results-review-row > summary > .tg-results-place-list > span small { grid-column: 3; text-align: left; }
  .tg-results-review-found { grid-column: 1; }
  .tg-results-review-open { grid-column: 2; grid-row: 1; }
  .tg-results-review-facts { grid-template-columns: 1fr 1fr; }
  .tg-results-review-orders { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .tg-results-review-title h1 { font-size: 38px; }
  .tg-results-review-title > nav { overflow-x: auto; }
  .tg-results-review-title > nav a { min-width: 102px; min-height: 44px; }
  .tg-results-date-control { display: grid; grid-template-columns: 1fr 1fr; }
  .tg-results-date-control label { min-width: 0; }
  .tg-results-date-control button { grid-column: 2; grid-row: 1; }
  .tg-results-metrics { grid-template-columns: 1fr; }
  .tg-results-metrics article { min-height: 78px; }
  .tg-results-review-filters { grid-template-columns: 1fr; }
  .tg-results-filter-label { grid-column: 1; }
  .tg-results-more-filters > div { position: static; width: 100%; margin-top: 7px; box-shadow: none; }
  .tg-results-fast-preview > header { align-items: flex-start; flex-direction: column; }
  .tg-results-fast-preview > div { grid-template-columns: repeat(5, 220px); }
  .tg-results-list-controls { align-items: stretch; flex-direction: column; }
  .tg-results-list-controls form { justify-content: space-between; }
  .tg-results-list-controls label { min-width: 0; }
  .tg-results-list-controls select { max-width: 180px; }
  .tg-results-list-controls nav a { flex: 1 1; }
  .tg-results-review-row > summary > .tg-results-place-list { grid-template-columns: 1fr; }
  .tg-results-review-row > summary > .tg-results-place-list > span { padding: 0; border: 0; }
  .tg-results-review-facts { grid-template-columns: 1fr; }
  .tg-results-review-orders .tg-results-place-list { grid-template-columns: 1fr; }
  .tg-results-review-orders .tg-results-place-list > span { padding: 0; border: 0; }
  .tg-results-what-happened { align-items: flex-start; flex-direction: column; }
  .tg-results-what-happened > a { width: 100%; justify-content: center; }
}

/* Staging, human-verification and privacy controls */
.tg-environment-banner { display: flex; min-height: 34px; align-items: center; justify-content: center; gap: 10px; padding: 7px 18px; background: #f8b817; color: #10241e; font-size: 12px; line-height: 1.35; text-align: center; }
.tg-environment-banner strong { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.tg-human-challenge { min-height: 65px; display: grid; align-items: center; justify-content: center; }
.tg-cookie-banner { position: fixed; z-index: 250; right: 22px; bottom: 22px; left: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-gap: 24px; gap: 24px; width: min(1180px, calc(100% - 44px)); margin: 0 auto; padding: 20px 22px; border: 1px solid rgba(115, 222, 178, .3); border-radius: 12px; background: #04382f; color: #fff; box-shadow: 0 22px 60px rgba(0, 28, 23, .28); }
.tg-cookie-banner > div:first-child { display: grid; grid-gap: 5px; gap: 5px; max-width: 720px; }
.tg-cookie-banner strong { font-size: 16px; }
.tg-cookie-banner p { margin: 0; color: #d7e7e2; font-size: 13px; line-height: 1.55; }
.tg-cookie-banner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tg-cookie-banner > div:last-child, .tg-cookie-settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tg-cookie-banner button, .tg-cookie-settings button { min-height: 40px; padding: 0 16px; border: 1px solid #8ab2a7; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.tg-cookie-banner button.is-primary, .tg-cookie-settings button.is-primary { border-color: #f8b817; background: #f8b817; color: #10241e; }
.tg-cookie-overlay { position: fixed; z-index: 260; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(0, 27, 22, .68); }
.tg-cookie-settings { width: min(560px, 100%); max-height: calc(100vh - 44px); overflow: auto; padding: 28px; border-radius: 12px; background: #fff; color: #10241e; box-shadow: 0 28px 80px rgba(0, 23, 19, .3); }
.tg-cookie-settings > span { color: var(--p1-green); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tg-cookie-settings h2 { margin: 8px 0; font-size: 26px; }
.tg-cookie-settings > p { margin: 0 0 20px; color: var(--p1-muted); font-size: 13px; line-height: 1.55; }
.tg-cookie-choice { display: flex; min-height: 68px; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; border-top: 1px solid var(--p1-line); }
.tg-cookie-choice > span { display: grid; grid-gap: 4px; gap: 4px; }
.tg-cookie-choice strong { font-size: 13px; }
.tg-cookie-choice small { color: var(--p1-muted); font-size: 11px; line-height: 1.45; }
.tg-cookie-choice input { width: 19px; height: 19px; accent-color: var(--p1-green); }
.tg-cookie-settings-actions { padding-top: 20px; border-top: 1px solid var(--p1-line); color: var(--p1-green-deep); }
.tg-footer-cookie-button { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tg-footer-cookie-button:hover { text-decoration: underline; }
.tg-admin-invite { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.2fr); grid-gap: 18px 30px; gap: 18px 30px; margin: 18px 0; padding: 20px; border: 1px solid var(--p1-line); border-left: 4px solid var(--p1-green); border-radius: 8px; background: #fff; }
.tg-admin-invite > div:first-child { display: grid; align-content: start; grid-gap: 5px; gap: 5px; }
.tg-admin-invite > div:first-child > span { display: flex; align-items: center; gap: 6px; color: var(--p1-green); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tg-admin-invite h2 { margin: 0; font-size: 20px; }
.tg-admin-invite p { grid-column: 1 / -1; margin: 0; color: var(--p1-muted); font-size: 11px; }
.tg-admin-invite form { display: flex; align-items: end; gap: 8px; }
.tg-admin-invite label { display: grid; flex: 1 1; grid-gap: 5px; gap: 5px; color: var(--p1-muted); font-size: 10px; font-weight: 800; }
.tg-admin-invite input { min-height: 42px; padding: 0 12px; border: 1px solid var(--p1-line); border-radius: 5px; font: inherit; }
.tg-admin-invite button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 5px; background: var(--p1-green); color: #fff; font: inherit; font-size: 11px; font-weight: 900; cursor: pointer; }
.tg-admin-invite > div:last-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 9px; background: #f2f7f5; }
.tg-admin-invite code { flex: 1 1; min-width: 0; overflow: hidden; color: var(--p1-green-deep); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tg-admin-invite > div:last-child button { display: inline-flex; align-items: center; gap: 5px; }

@media (max-width: 720px) {
  .tg-environment-banner { align-items: flex-start; flex-direction: column; gap: 2px; text-align: left; }
  .tg-cookie-banner { right: 10px; bottom: 10px; left: 10px; grid-template-columns: 1fr; gap: 15px; width: auto; padding: 18px; }
  .tg-cookie-banner > div:last-child { display: grid; grid-template-columns: 1fr 1fr; }
  .tg-cookie-banner button.is-primary { grid-column: 1 / -1; grid-row: 1; }
  .tg-cookie-overlay { padding: 0; place-items: end stretch; }
  .tg-cookie-settings { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; }
  .tg-admin-invite { grid-template-columns: 1fr; }
  .tg-admin-invite form { align-items: stretch; flex-direction: column; }
}

/* Phase 4 · Points 1–4 — Horse, Jockey, Trainer and Racecourse profiles. */
.tg-profile-final,
.tg-course-profile { gap: 12px; padding-bottom: 30px; }
.tg-profile-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; padding: 7px 2px 1px; color: var(--p1-muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.tg-profile-breadcrumb a { color: var(--p1-green); text-decoration: none; }
.tg-profile-breadcrumb strong { color: var(--p1-heading); }
.tg-profile-hero { display: grid; grid-template-columns: 94px minmax(310px, 1.3fr) minmax(230px, .75fr) auto; grid-gap: 17px; gap: 17px; align-items: center; min-height: 150px; padding: 17px 18px; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 8px 26px rgb(20 48 40 / 5%); }
.tg-profile-hero.is-horse { grid-template-columns: 104px minmax(315px, 1.15fr) minmax(190px, .55fr) auto; }
.tg-profile-hero.is-horse .tg-profile-snapshot { grid-column: 1 / -1; }
.tg-profile-mark { display: grid; width: 86px; height: 86px; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #ecf6f2, #d8ebe4); color: var(--p1-green); }
.tg-profile-mark > svg { width: 46px; height: 46px; }
.tg-profile-identity { min-width: 0; }
.tg-profile-identity > span { color: var(--p1-green); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.tg-profile-identity h1 { margin: 3px 0 5px; overflow-wrap: anywhere; color: var(--p1-heading); font-size: clamp(29px, 3.3vw, 42px); line-height: 1; letter-spacing: -.035em; }
.tg-profile-identity > p { margin: 0; color: var(--p1-muted); font-size: 9px; }
.tg-profile-identity dl { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; }
.tg-profile-identity dl > div { display: grid; grid-gap: 2px; gap: 2px; }
.tg-profile-identity dt { color: var(--p1-muted); font-size: 7px; }
.tg-profile-identity dd { margin: 0; color: var(--p1-heading); font-size: 9px; font-weight: 850; }
.tg-profile-identity dd a { color: var(--p1-green); text-decoration: none; }
.tg-profile-rating { display: grid; grid-gap: 5px; gap: 5px; padding: 12px; border-radius: 6px; background: var(--p1-green-soft); }
.tg-profile-rating small { color: var(--p1-green); font-size: 8px; font-weight: 850; }
.tg-profile-rating strong { color: var(--p1-green); font-size: 27px; line-height: 1; }
.tg-profile-rating strong em { color: var(--p1-muted); font-size: 10px; font-style: normal; }
.tg-profile-rating > i { display: block; height: 6px; overflow: hidden; border-radius: 3px; background: #d2dfda; }
.tg-profile-rating > i b { display: block; height: 100%; border-radius: inherit; background: var(--p1-green-bright); }
.tg-profile-rating > span { color: var(--p1-muted); font-size: 7px; }
.tg-profile-actions { display: flex; flex-wrap: wrap; max-width: 200px; gap: 6px; justify-content: flex-end; }
.tg-profile-actions button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--p1-green); border-radius: 4px; background: #fff; color: var(--p1-green); font: inherit; font-size: 8px; font-weight: 850; cursor: pointer; }
.tg-profile-actions button:first-child { border-color: var(--p1-amber); background: var(--p1-amber); color: var(--p1-heading); }
.tg-profile-actions button svg { width: 14px; }
.tg-profile-actions > small { width: 100%; color: var(--p1-red); font-size: 7px; text-align: right; }
.tg-profile-snapshot { display: grid; grid-template-columns: auto 1fr; grid-gap: 10px; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--p1-line); background: #f8fbfa; }
.tg-profile-snapshot > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-profile-snapshot > span svg { width: 15px; }
.tg-profile-snapshot > div > strong { font-size: 10px; }
.tg-profile-snapshot ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 5px 0 0; padding: 0; list-style: none; }
.tg-profile-snapshot li { display: flex; align-items: center; gap: 4px; color: var(--p1-muted); font-size: 8px; }
.tg-profile-snapshot li svg { width: 12px; color: var(--p1-green-bright); }
.tg-profile-quick-stats { display: grid; grid-template-columns: repeat(2, minmax(110px, 1fr)); overflow: hidden; border: 1px solid var(--p1-line); border-radius: 5px; }
.tg-profile-quick-stats.is-trainer { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
.tg-profile-quick-stats > span { display: grid; min-height: 80px; align-content: center; grid-gap: 3px; gap: 3px; padding: 10px; border-left: 1px solid var(--p1-line); }
.tg-profile-quick-stats > span:first-child { border-left: 0; }
.tg-profile-quick-stats small { color: var(--p1-muted); font-size: 7px; }
.tg-profile-quick-stats strong { font-size: 20px; }
.tg-profile-quick-stats em { color: var(--p1-muted); font-size: 7px; font-style: normal; }
.tg-profile-tabs { display: flex; overflow-x: auto; border: 1px solid var(--p1-line); border-radius: 5px; background: #fff; }
.tg-profile-tabs a { display: inline-flex; min-width: 112px; min-height: 38px; flex: 1 0 auto; align-items: center; justify-content: center; border-left: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 8px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tg-profile-tabs a:first-child { border-left: 0; }
.tg-profile-tabs a.is-active { background: var(--p1-green); color: #fff; }
.tg-profile-kpis,
.tg-course-kpis { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 1px; gap: 1px; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: var(--p1-line); }
.tg-profile-kpis article,
.tg-course-kpis article { display: grid; grid-template-columns: auto 1fr; grid-gap: 9px; gap: 9px; min-height: 84px; align-items: center; padding: 10px 12px; background: #fff; }
.tg-profile-kpis article > span,
.tg-course-kpis article > span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-profile-kpis article:nth-child(4) > span { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-profile-kpis article svg,
.tg-course-kpis article svg { width: 16px; }
.tg-profile-kpis article > div,
.tg-course-kpis article > div { display: grid; grid-gap: 2px; gap: 2px; }
.tg-profile-kpis small,
.tg-course-kpis small { color: var(--p1-muted); font-size: 7px; }
.tg-profile-kpis strong,
.tg-course-kpis strong { font-size: 17px; }
.tg-profile-kpis em { color: var(--p1-muted); font-size: 6px; font-style: normal; }
.tg-profile-main-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .9fr); grid-gap: 12px; gap: 12px; }
.tg-profile-main-grid.is-trend { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); }
.tg-profile-main-grid.is-insights { grid-template-columns: 1fr 1.4fr; }
.tg-profile-three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.tg-profile-three-grid.is-two-by-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tg-profile-panel,
.tg-course-panel { overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 6px 22px rgb(20 48 40 / 4%); }
.tg-profile-panel-title { display: flex; min-height: 56px; align-items: center; gap: 9px; padding: 10px 12px; border-bottom: 1px solid var(--p1-line); }
.tg-profile-panel-title > span { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 4px; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-profile-panel-title svg { width: 15px; }
.tg-profile-panel-title h2 { margin: 0; font-size: 13px; }
.tg-profile-panel-title p { margin: 2px 0 0; color: var(--p1-muted); font-size: 7px; }
.tg-profile-runs { overflow-x: auto; }
.tg-profile-runs table { width: 100%; min-width: 650px; border-collapse: collapse; }
.tg-profile-runs th { padding: 7px 8px; background: #edf3f1; color: var(--p1-muted); font-size: 7px; text-align: left; }
.tg-profile-runs td { padding: 8px; border-top: 1px solid var(--p1-line); font-size: 8px; }
.tg-profile-runs td > a { display: inline-flex; align-items: center; gap: 3px; color: var(--p1-green); font-weight: 850; text-decoration: none; }
.tg-profile-runs td > a svg { width: 11px; }
.tg-profile-suitability { display: grid; }
.tg-profile-suitability > div { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(130px, 1fr) 105px; grid-gap: 12px; gap: 12px; min-height: 57px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--p1-line); }
.tg-profile-suitability > div:first-child { border-top: 0; }
.tg-profile-suitability > div > span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-profile-suitability strong { font-size: 9px; }
.tg-profile-suitability small,
.tg-profile-suitability em { color: var(--p1-muted); font-size: 7px; font-style: normal; }
.tg-profile-suitability > div > i { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: 2px; gap: 2px; }
.tg-profile-suitability > div > i b { height: 9px; border-radius: 2px; background: #e1e9e6; }
.tg-profile-suitability > div > i b.is-filled { background: var(--p1-green-bright); }
.tg-profile-partnership-cards { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 1px; gap: 1px; background: var(--p1-line); }
.tg-profile-partnership-cards article { display: grid; grid-template-columns: auto 1fr; grid-gap: 8px; gap: 8px; min-height: 115px; padding: 12px; background: #fff; }
.tg-profile-partnership-cards article > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-profile-partnership-cards article > span svg { width: 16px; }
.tg-profile-partnership-cards article > div { display: grid; align-content: start; grid-gap: 2px; gap: 2px; }
.tg-profile-partnership-cards small { color: var(--p1-muted); font-size: 7px; text-transform: capitalize; }
.tg-profile-partnership-cards strong { font-size: 10px; }
.tg-profile-partnership-cards p { margin: 3px 0 5px; color: var(--p1-muted); font-size: 7px; }
.tg-profile-partnership-cards a { display: inline-flex; align-items: center; gap: 3px; color: var(--p1-green); font-size: 7px; font-weight: 850; text-decoration: none; }
.tg-profile-partnership-cards a svg { width: 10px; }
.tg-profile-evidence-grid { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 1px; gap: 1px; background: var(--p1-line); }
.tg-profile-evidence-grid section { min-height: 105px; padding: 11px; background: #fff; }
.tg-profile-evidence-grid section.is-strength { background: #eef9f4; }
.tg-profile-evidence-grid section.is-risk { background: #fff4f3; }
.tg-profile-evidence-grid section.is-context { background: #fff9e9; }
.tg-profile-evidence-grid h3 { display: flex; align-items: center; gap: 5px; margin: 0 0 6px; font-size: 9px; }
.tg-profile-evidence-grid h3 svg { width: 13px; }
.tg-profile-evidence-grid p { margin: 3px 0; color: var(--p1-muted); font-size: 7px; }
.tg-profile-trend { padding: 13px 15px 9px; }
.tg-profile-trend > div { display: flex; height: 145px; align-items: flex-end; gap: 5px; padding: 8px 3px 0; border-bottom: 1px solid var(--p1-line); background-image: repeating-linear-gradient(to bottom, transparent 0 35px, #eef2f0 35px 36px); }
.tg-profile-trend > div > span { position: relative; display: flex; min-width: 28px; flex: 1 1; height: 100%; align-items: flex-end; justify-content: center; gap: 2px; }
.tg-profile-trend > div i { width: min(14px, 35%); min-height: 3px; border-radius: 2px 2px 0 0; }
.tg-profile-trend i.is-win { background: var(--p1-green-bright); }
.tg-profile-trend i.is-place { background: #3c7bdf; }
.tg-profile-trend > div small { position: absolute; bottom: -16px; color: var(--p1-muted); font-size: 6px; }
.tg-profile-trend footer { display: flex; gap: 12px; margin-top: 21px; color: var(--p1-muted); font-size: 7px; }
.tg-profile-trend footer span { display: flex; align-items: center; gap: 4px; }
.tg-profile-trend footer i { width: 8px; height: 8px; }
.tg-profile-related > div { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 1px; gap: 1px; background: var(--p1-line); }
.tg-profile-related > div > a { display: grid; grid-template-columns: auto 1fr auto; grid-gap: 7px; gap: 7px; min-height: 69px; align-items: center; padding: 9px 10px; background: #fff; color: var(--p1-heading); font-size: 8px; font-weight: 850; text-decoration: none; }
.tg-profile-related > div > a > svg:first-child { width: 16px; color: var(--p1-green); }
.tg-profile-related > div > a > svg:last-child { width: 11px; color: var(--p1-green); }
.tg-profile-related > div > a span { grid-column: 2; color: var(--p1-muted); font-size: 7px; font-weight: 500; }
.tg-profile-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: 1px; gap: 1px; background: var(--p1-line); }
.tg-profile-kpi-row > span { display: grid; min-height: 82px; align-content: center; grid-gap: 3px; gap: 3px; padding: 10px 14px; background: #fff; }
.tg-profile-kpi-row small { color: var(--p1-muted); font-size: 8px; }
.tg-profile-kpi-row strong { font-size: 20px; }
.tg-profile-breakdown,
.tg-course-breakdown { display: grid; }
.tg-profile-breakdown > span,
.tg-course-breakdown > span { display: grid; grid-template-columns: minmax(105px, 1.4fr) repeat(4, minmax(42px, .55fr)); grid-gap: 6px; gap: 6px; min-height: 34px; align-items: center; padding: 5px 9px; border-top: 1px solid var(--p1-line); font-size: 7px; }
.tg-profile-breakdown > span.is-head,
.tg-course-breakdown > span.is-head { border-top: 0; background: #edf3f1; color: var(--p1-muted); text-transform: uppercase; }
.tg-profile-breakdown > span > b:not(:first-child),
.tg-course-breakdown > span > b:not(:first-child) { color: var(--p1-green); }
.tg-profile-leader-list { display: grid; }
.tg-profile-leader-list > span { display: grid; grid-template-columns: minmax(110px, 1fr) 55px 55px 55px; grid-gap: 6px; gap: 6px; min-height: 41px; align-items: center; padding: 6px 9px; border-top: 1px solid var(--p1-line); font-size: 8px; }
.tg-profile-leader-list > span:first-child { border-top: 0; }
.tg-profile-leader-list small { color: var(--p1-muted); }
.tg-profile-leader-list em { color: var(--p1-green); font-style: normal; font-weight: 850; }
.tg-profile-compact-runs { display: grid; }
.tg-profile-compact-runs > a { display: grid; grid-template-columns: 1fr 42px 40px; grid-gap: 7px; gap: 7px; min-height: 48px; align-items: center; padding: 7px 10px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); text-decoration: none; }
.tg-profile-compact-runs > a:first-child { border-top: 0; }
.tg-profile-compact-runs a > span { display: grid; }
.tg-profile-compact-runs strong { font-size: 8px; }
.tg-profile-compact-runs small { color: var(--p1-muted); font-size: 7px; }
.tg-profile-insights ul,
.tg-course-insights ul { display: grid; grid-gap: 7px; gap: 7px; margin: 0; padding: 12px 14px; list-style: none; }
.tg-profile-insights li,
.tg-course-insights li { display: flex; align-items: flex-start; gap: 6px; color: var(--p1-muted); font-size: 8px; line-height: 1.4; }
.tg-profile-insights li svg,
.tg-course-insights li svg { width: 12px; flex: 0 0 12px; color: var(--p1-green-bright); }
.tg-profile-empty,
.tg-course-data-gap { display: flex; min-height: 105px; align-items: center; justify-content: center; gap: 8px; padding: 15px; color: var(--p1-muted); text-align: left; }
.tg-profile-empty > svg,
.tg-course-data-gap > svg { width: 18px; color: var(--p1-amber-dark); }
.tg-profile-empty > span { display: grid; }
.tg-profile-empty strong,
.tg-course-data-gap strong { color: var(--p1-heading); font-size: 9px; }
.tg-profile-empty small,
.tg-course-data-gap p { margin: 2px 0 0; font-size: 7px; }
.tg-profile-method { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 1px 0 0; color: var(--p1-muted); font-size: 8px; text-align: center; }
.tg-profile-method svg { width: 13px; color: var(--p1-green); }

.tg-course-hero { display: grid; grid-template-columns: 84px minmax(300px, .8fr) minmax(540px, 1.45fr); grid-gap: 17px; gap: 17px; align-items: center; padding: 17px 18px; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 8px 26px rgb(20 48 40 / 5%); }
.tg-course-mark { display: grid; width: 76px; height: 76px; place-items: center; border: 9px solid #8fdbbf; border-radius: 50%; background: #eaf8f3; color: var(--p1-green); box-shadow: inset 0 0 0 4px #fff; }
.tg-course-mark svg { width: 28px; }
.tg-course-hero > div:nth-child(2) > span { color: var(--p1-green); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.tg-course-hero h1 { margin: 3px 0 5px; font-size: clamp(30px, 3.4vw, 43px); line-height: 1; letter-spacing: -.035em; }
.tg-course-hero p { margin: 0; color: var(--p1-muted); font-size: 9px; }
.tg-course-hero > div:nth-child(2) > div { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.tg-course-hero > div:nth-child(2) b { padding: 4px 6px; border: 1px solid var(--p1-line); border-radius: 3px; color: var(--p1-green); font-size: 7px; }
.tg-course-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--p1-line); border-radius: 5px; }
.tg-course-hero-stats > span { display: grid; min-height: 88px; align-content: center; grid-gap: 3px; gap: 3px; padding: 10px; border-left: 1px solid var(--p1-line); }
.tg-course-hero-stats > span:first-child { border-left: 0; }
.tg-course-hero-stats small { color: var(--p1-muted); font-size: 7px; }
.tg-course-hero-stats strong { font-size: 19px; }
.tg-course-hero-stats em { color: var(--p1-muted); font-size: 6px; font-style: normal; }
.tg-course-top-grid { display: grid; grid-template-columns: 1fr 1fr .9fr; grid-gap: 12px; gap: 12px; }
.tg-course-characteristics { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 1px; gap: 1px; background: var(--p1-line); }
.tg-course-characteristics > span { display: grid; grid-template-columns: auto 1fr; grid-gap: 3px 7px; gap: 3px 7px; min-height: 72px; align-content: center; padding: 10px; background: #fff; }
.tg-course-characteristics > span > i { display: grid; grid-row: 1 / 3; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-course-characteristics svg { width: 14px; }
.tg-course-characteristics small { color: var(--p1-muted); font-size: 7px; }
.tg-course-characteristics strong { font-size: 8px; }
.tg-course-map-unavailable { display: grid; min-height: 215px; place-items: center; align-content: center; grid-gap: 7px; gap: 7px; padding: 20px; background: repeating-linear-gradient(135deg, #f7faf9 0 12px, #f1f6f4 12px 24px); text-align: center; }
.tg-course-map-unavailable > svg { width: 35px; color: var(--p1-green); }
.tg-course-map-unavailable strong { font-size: 10px; }
.tg-course-map-unavailable p { max-width: 290px; margin: 0; color: var(--p1-muted); font-size: 8px; line-height: 1.45; }
.tg-course-main-grid { display: grid; grid-template-columns: 1.1fr .9fr; grid-gap: 12px; gap: 12px; }
.tg-course-three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-gap: 12px; gap: 12px; }
.tg-course-lower-grid { display: grid; grid-template-columns: 1.6fr .7fr .7fr; grid-gap: 12px; gap: 12px; }
.tg-course-distribution { display: flex; height: 190px; align-items: flex-end; gap: 9px; padding: 20px 17px 28px; background-image: repeating-linear-gradient(to bottom, transparent 0 39px, #edf2f0 39px 40px); }
.tg-course-distribution > span { position: relative; display: grid; min-width: 38px; flex: 1 1; height: 100%; align-items: flex-end; justify-items: center; }
.tg-course-distribution i { width: min(46px, 70%); min-height: 4px; border-radius: 3px 3px 0 0; background: linear-gradient(#55cfaa, var(--p1-green)); }
.tg-course-distribution strong { position: absolute; top: -2px; font-size: 8px; }
.tg-course-distribution small { position: absolute; bottom: -17px; color: var(--p1-muted); font-size: 7px; white-space: nowrap; }
.tg-course-recent { display: grid; overflow-x: auto; }
.tg-course-recent > span,
.tg-course-recent > a { display: grid; grid-template-columns: 68px minmax(180px, 1fr) 68px minmax(100px, .7fr) 70px 85px; grid-gap: 7px; gap: 7px; min-width: 650px; min-height: 38px; align-items: center; padding: 6px 9px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); font-size: 7px; text-decoration: none; }
.tg-course-recent > span.is-head { min-height: 30px; border-top: 0; background: #edf3f1; color: var(--p1-muted); text-transform: uppercase; }
.tg-course-professionals { display: grid; }
.tg-course-professionals > :where(a, div) { display: grid; grid-template-columns: 20px 1fr 50px 45px; grid-gap: 6px; gap: 6px; min-height: 45px; align-items: center; padding: 6px 8px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); font-size: 7px; text-decoration: none; }
.tg-course-professionals > :where(a, div):first-child { border-top: 0; }
.tg-course-professionals > :where(a, div) > b:first-child { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-course-professionals span { display: grid; }
.tg-course-professionals span small { color: var(--p1-muted); }
.tg-course-professionals em { color: var(--p1-muted); font-style: normal; }

@media (max-width: 1100px) {
  .tg-profile-hero,
  .tg-profile-hero.is-horse { grid-template-columns: 88px 1fr minmax(210px, .7fr); }
  .tg-profile-actions { grid-column: 1 / -1; max-width: none; justify-content: flex-start; }
  .tg-profile-actions > small { text-align: left; }
  .tg-profile-three-grid { grid-template-columns: 1fr 1fr; }
  .tg-profile-three-grid > :last-child { grid-column: 1 / -1; }
  .tg-profile-three-grid.is-two-by-two > :last-child { grid-column: auto; }
  .tg-course-hero { grid-template-columns: 84px 1fr; }
  .tg-course-hero-stats { grid-column: 1 / -1; }
  .tg-course-top-grid { grid-template-columns: 1fr 1fr; }
  .tg-course-insights { grid-column: 1 / -1; }
  .tg-course-lower-grid { grid-template-columns: 1.4fr 1fr; }
  .tg-course-lower-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .tg-profile-hero,
  .tg-profile-hero.is-horse { grid-template-columns: 76px 1fr; }
  .tg-profile-mark { width: 70px; height: 70px; }
  .tg-profile-rating,
  .tg-profile-quick-stats { grid-column: 1 / -1; }
  .tg-profile-kpis,
  .tg-course-kpis { grid-template-columns: 1fr 1fr; }
  .tg-profile-kpis article:last-child,
  .tg-course-kpis article:last-child { grid-column: 1 / -1; }
  .tg-profile-main-grid,
  .tg-profile-main-grid.is-trend,
  .tg-profile-main-grid.is-insights,
  .tg-profile-three-grid,
  .tg-course-main-grid,
  .tg-course-three-grid,
  .tg-course-lower-grid { grid-template-columns: 1fr; }
  .tg-profile-three-grid > :last-child,
  .tg-course-lower-grid > :last-child { grid-column: 1; }
  .tg-course-top-grid { grid-template-columns: 1fr; }
  .tg-course-insights { grid-column: 1; }
}

@media (max-width: 520px) {
  .tg-profile-hero,
  .tg-profile-hero.is-horse,
  .tg-course-hero { grid-template-columns: 1fr; padding: 14px; }
  .tg-profile-mark,
  .tg-course-mark { width: 64px; height: 64px; }
  .tg-profile-identity h1,
  .tg-course-hero h1 { font-size: 31px; }
  .tg-profile-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .tg-profile-actions button { width: 100%; }
  .tg-profile-quick-stats.is-trainer,
  .tg-course-hero-stats { grid-template-columns: 1fr 1fr; grid-column: 1; }
  .tg-profile-quick-stats.is-trainer > span:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--p1-line); border-left: 0; }
  .tg-course-hero-stats > span:nth-child(3) { border-left: 0; border-top: 1px solid var(--p1-line); }
  .tg-course-hero-stats > span:nth-child(4) { border-top: 1px solid var(--p1-line); }
  .tg-profile-kpis,
  .tg-course-kpis { grid-template-columns: 1fr; }
  .tg-profile-kpis article:last-child,
  .tg-course-kpis article:last-child { grid-column: 1; }
  .tg-profile-suitability > div { grid-template-columns: 1fr; gap: 6px; }
  .tg-profile-partnership-cards,
  .tg-profile-evidence-grid,
  .tg-profile-related > div { grid-template-columns: 1fr; }
  .tg-profile-kpi-row { grid-template-columns: 1fr 1fr; }
  .tg-course-characteristics { grid-template-columns: 1fr; }
  .tg-profile-method { align-items: flex-start; text-align: left; }
}

/* Phase 2 · Point 5 — Fast Results. */
.tg-fast-results-final { gap: 14px; }
.tg-fast-results-hero { display: grid; justify-items: start; padding-top: 9px; }
.tg-fast-results-hero h1 { margin: 5px 0 6px; color: var(--p1-heading); font-size: clamp(40px, 5vw, 58px); line-height: 1; letter-spacing: -.035em; }
.tg-fast-results-hero > p { max-width: 690px; margin: 0; color: var(--p1-muted); font-size: 15px; }
.tg-fast-results-hero > nav { display: flex; gap: 8px; margin-top: 17px; }
.tg-fast-results-hero > nav a { display: inline-flex; min-width: 108px; min-height: 43px; align-items: center; justify-content: center; padding: 8px 15px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-heading); font-size: 12px; font-weight: 850; text-decoration: none; }
.tg-fast-results-hero > nav a.is-active { border-color: var(--p1-green); background: var(--p1-green); color: #fff; }
.tg-fast-results-dates { display: grid; grid-template-columns: repeat(5, minmax(110px, 1fr)) minmax(230px, 1.05fr); overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-fast-results-dates > a { display: grid; min-height: 64px; place-content: center; padding: 9px 14px; border-right: 1px solid var(--p1-line); color: var(--p1-heading); text-align: center; text-decoration: none; }
.tg-fast-results-dates > a strong { font-size: 13px; }
.tg-fast-results-dates > a small { margin-top: 2px; color: var(--p1-muted); font-size: 10px; }
.tg-fast-results-dates > a.is-active { background: var(--p1-green); color: #fff; box-shadow: inset 0 -3px var(--p1-green-bright); }
.tg-fast-results-dates > a.is-active small { color: #d6eee6; }
.tg-fast-results-dates > form { display: flex; align-items: center; gap: 6px; padding: 9px 11px; }
.tg-fast-results-dates label { display: flex; min-width: 0; flex: 1 1; align-items: center; gap: 6px; color: var(--p1-green); }
.tg-fast-results-dates input { width: 100%; min-width: 0; min-height: 40px; border: 0; outline: 0; color: var(--p1-heading); font: inherit; }
.tg-fast-results-dates button { min-height: 38px; padding: 7px 11px; border: 0; border-radius: 4px; background: var(--p1-green); color: #fff; font-weight: 850; }
.tg-fast-results-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; }
.tg-fast-results-filters > label { position: relative; display: grid; min-width: 175px; grid-gap: 2px; gap: 2px; color: var(--p1-muted); font-size: 9px; font-weight: 750; }
.tg-fast-results-filters select { width: 100%; min-height: 42px; padding: 7px 28px 7px 10px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-heading); font: inherit; font-size: 12px; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
.tg-fast-results-filters label > svg { position: absolute; right: 9px; bottom: 13px; color: var(--p1-green); pointer-events: none; }
.tg-fast-results-apply { display: inline-flex; min-height: 42px; align-items: center; gap: 6px; align-self: end; padding: 8px 12px; border: 1px solid var(--p1-green); border-radius: 4px; background: #fff; color: var(--p1-green); font: inherit; font-size: 11px; font-weight: 850; }
.tg-fast-results-toggle { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; margin-left: auto; border: 0; background: transparent; color: var(--p1-muted); font: inherit; font-size: 11px; font-weight: 800; }
.tg-fast-results-toggle i { position: relative; width: 38px; height: 21px; border: 1px solid #b9c9c3; border-radius: 12px; background: #e7ecea; }
.tg-fast-results-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(20 48 40 / 20%); transition: transform .18s ease; }
.tg-fast-results-toggle.is-active { color: var(--p1-green); }
.tg-fast-results-toggle.is-active i { border-color: var(--p1-green); background: var(--p1-green-bright); }
.tg-fast-results-toggle.is-active i::after { transform: translateX(17px); }
.tg-fast-results-list { overflow: hidden; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 8px 28px rgb(20 48 40 / 5%); }
.tg-fast-results-list > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 18px; border-bottom: 1px solid var(--p1-line); }
.tg-fast-results-list > header h2 { margin: 0; color: var(--p1-heading); font-size: 23px; }
.tg-fast-results-list > header p { margin: 3px 0 0; color: var(--p1-muted); font-size: 11px; }
.tg-fast-results-list > header > span { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-muted); font-size: 11px; }
.tg-fast-result-row { display: grid; grid-template-columns: 148px minmax(190px, .8fr) minmax(500px, 1.9fr) 105px; grid-gap: 17px; gap: 17px; min-height: 96px; align-items: center; padding: 12px 15px; border-top: 1px solid var(--p1-line); box-shadow: inset 3px 0 var(--p1-green); }
.tg-fast-result-row:first-of-type { border-top: 0; }
.tg-fast-result-row.is-live { box-shadow: inset 3px 0 var(--p1-red); }
.tg-fast-result-row.is-upcoming { box-shadow: inset 3px 0 #287de1; }
.tg-fast-result-row.is-pending,
.tg-fast-result-row.is-provisional { box-shadow: inset 3px 0 var(--p1-amber); }
.tg-fast-result-row.is-void { box-shadow: inset 3px 0 #87928e; }
.tg-fast-result-identity { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 9px; gap: 9px; align-items: center; }
.tg-fast-result-identity > strong { color: var(--p1-heading); font-size: 24px; }
.tg-fast-result-identity > span { display: grid; min-width: 0; }
.tg-fast-result-identity b { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.tg-fast-result-identity em { width: -moz-fit-content; width: fit-content; margin-top: 3px; padding: 3px 7px; border-radius: 10px; background: var(--p1-green-soft); color: var(--p1-green); font-size: 8px; font-style: normal; font-weight: 850; }
.tg-fast-result-row.is-live .tg-fast-result-identity em { background: var(--p1-red-soft); color: var(--p1-red); }
.tg-fast-result-row.is-upcoming .tg-fast-result-identity em { background: #e8f2ff; color: #236abc; }
.tg-fast-result-row.is-pending .tg-fast-result-identity em,
.tg-fast-result-row.is-provisional .tg-fast-result-identity em { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-fast-result-context { display: grid; min-width: 0; grid-gap: 3px; gap: 3px; }
.tg-fast-result-context strong,
.tg-fast-result-context span,
.tg-fast-result-context small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-fast-result-context strong { font-size: 12px; }
.tg-fast-result-context span,
.tg-fast-result-context small { color: var(--p1-muted); font-size: 9px; }
.tg-fast-result-places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
.tg-fast-result-places > span { display: grid; grid-template-columns: 27px auto minmax(0, 1fr); grid-gap: 7px; gap: 7px; align-items: center; min-width: 0; padding-inline: 11px; border-left: 1px solid var(--p1-line); }
.tg-fast-result-places > span:first-child { padding-left: 0; border-left: 0; }
.tg-fast-result-places > span > b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 4px; background: #eef3f1; color: var(--p1-heading); font-size: 9px; }
.tg-fast-result-places > span:first-child > b { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-fast-result-places > span > strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tg-fast-result-places > span > small { grid-column: 3; color: var(--p1-muted); font-size: 9px; }
.tg-fast-result-row > a { display: inline-flex; min-height: 40px; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 10px; border: 1px solid var(--p1-line); border-radius: 4px; color: var(--p1-green); font-size: 9px; font-weight: 850; text-decoration: none; }
.tg-fast-results-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; color: var(--p1-muted); font-size: 11px; text-align: center; }
.tg-fast-results-note svg { color: var(--p1-green); }

/* Phase 2 · Point 6 — Daily Proof. */
.tg-proof-final { gap: 13px; }
.tg-proof-final-header { display: grid; grid-template-columns: minmax(440px, 1fr) auto; grid-gap: 25px; gap: 25px; align-items: end; padding-top: 8px; }
.tg-proof-final-header h1 { margin: 5px 0 5px; color: var(--p1-heading); font-size: clamp(38px, 4.6vw, 55px); line-height: 1; letter-spacing: -.035em; }
.tg-proof-final-header > div > p { margin: 0; color: var(--p1-muted); font-size: 14px; }
.tg-proof-final-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 9px; color: var(--p1-muted); font-size: 9px; }
.tg-proof-final-meta b { color: var(--p1-heading); }
.tg-proof-final-meta i { width: 3px; height: 3px; border-radius: 50%; background: #95a49f; }
.tg-proof-final-meta svg { color: var(--p1-green); }
.tg-proof-final-header > nav { display: flex; align-items: center; gap: 7px; }
.tg-proof-final-header > nav > :where(a, span),
.tg-proof-final-header form { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-heading); font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.tg-proof-final-header > nav > span[aria-disabled="true"] { opacity: .45; }
.tg-proof-final-header form { padding-right: 0; }
.tg-proof-final-header select { max-width: 155px; min-height: 36px; border: 0; outline: 0; color: var(--p1-heading); font: inherit; }
.tg-proof-final-header form button { min-height: 40px; border: 0; background: var(--p1-green); color: #fff; font-weight: 850; }
.tg-proof-final-header .is-primary { border-color: var(--p1-amber); background: var(--p1-amber); color: var(--p1-heading); }
.tg-proof-summary-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: var(--p1-line); }
.tg-proof-summary-strip article { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-gap: 11px; gap: 11px; min-height: 86px; align-items: center; padding: 12px 15px; background: #fff; }
.tg-proof-summary-strip article > svg { width: 28px; height: 28px; padding: 6px; box-sizing: content-box; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-proof-summary-strip article:nth-child(2) > svg { background: #edf2ff; color: #3476dc; }
.tg-proof-summary-strip article:nth-child(3) > svg { background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-proof-summary-strip article:nth-child(4) > svg { background: #fff0ef; color: var(--p1-red); }
.tg-proof-summary-strip article > span { display: grid; min-width: 0; grid-gap: 2px; gap: 2px; }
.tg-proof-summary-strip strong { color: var(--p1-heading); font-size: 22px; line-height: 1; }
.tg-proof-summary-strip small { color: var(--p1-muted); font-size: 10px; font-weight: 750; }
.tg-proof-summary-strip em { overflow: hidden; color: #889690; font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.tg-proof-summary-strip article.is-negative strong { color: var(--p1-red); }
.tg-proof-summary-strip article.is-positive strong { color: var(--p1-green-bright); }
.tg-proof-final-overview { border: 1px solid var(--p1-line); box-shadow: 0 7px 24px rgb(20 48 40 / 4%); }
.tg-proof-metric-section { display: grid; grid-gap: 8px; gap: 8px; }
.tg-proof-metric-section > header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-inline: 2px; }
.tg-proof-metric-section > header p { margin: 0; color: var(--p1-muted); font-size: 10px; }
.tg-proof-metric-section > div { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: var(--p1-line); }
.tg-proof-metric-section article { display: grid; grid-gap: 4px; gap: 4px; min-height: 82px; align-content: center; padding: 12px 16px; background: #fff; }
.tg-proof-metric-section article > span { color: var(--p1-muted); font-size: 10px; }
.tg-proof-metric-section article > strong { color: var(--p1-heading); font-size: 23px; line-height: 1; }
.tg-proof-metric-section article > small { color: var(--p1-muted); font-size: 8px; }
.tg-proof-metric-section article.is-positive > strong { color: var(--p1-green-bright); }
.tg-proof-metric-section article.is-negative > strong { color: var(--p1-red); }
.tg-proof-history-final,
.tg-proof-race-audit { overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 7px 24px rgb(20 48 40 / 4%); }
.tg-proof-history-final > header,
.tg-proof-race-audit > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-bottom: 1px solid var(--p1-line); }
.tg-proof-history-final h2,
.tg-proof-race-audit h2 { margin: 0; font-size: 17px; }
.tg-proof-history-final header p,
.tg-proof-race-audit header p { margin: 2px 0 0; color: var(--p1-muted); font-size: 9px; }
.tg-proof-history-final header nav { display: flex; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 4px; }
.tg-proof-history-final header nav a { display: inline-flex; min-width: 62px; min-height: 34px; align-items: center; justify-content: center; border-left: 1px solid var(--p1-line); color: var(--p1-muted); font-size: 9px; font-weight: 850; text-decoration: none; }
.tg-proof-history-final header nav a:first-child { border-left: 0; }
.tg-proof-history-final header nav a.is-active { background: var(--p1-green); color: #fff; }
.tg-proof-history-chart { display: flex; height: 155px; align-items: flex-end; gap: 9px; overflow-x: auto; padding: 23px 17px 13px; background-image: repeating-linear-gradient(to bottom, transparent 0 31px, #eef2f0 31px 32px); }
.tg-proof-history-chart > a { position: relative; display: grid; min-width: 54px; flex: 1 1; height: 100%; justify-items: center; align-items: end; color: var(--p1-muted); text-decoration: none; }
.tg-proof-history-chart i { width: min(42px, 76%); min-height: 5px; border-radius: 3px 3px 0 0; background: var(--p1-green); }
.tg-proof-history-chart i.is-strong { background: var(--p1-green); }
.tg-proof-history-chart i.is-solid { background: var(--p1-green-bright); }
.tg-proof-history-chart i.is-developing { background: var(--p1-amber); }
.tg-proof-history-chart i.is-poor { background: var(--p1-red); }
.tg-proof-history-chart b { position: absolute; top: -2px; color: var(--p1-heading); font-size: 9px; }
.tg-proof-history-chart span { margin-top: 5px; font-size: 8px; }
.tg-proof-race-audit > header > span { display: inline-flex; align-items: center; gap: 6px; color: var(--p1-green); font-size: 9px; font-weight: 800; }
.tg-proof-race-columns,
.tg-proof-race-row > summary { display: grid; grid-template-columns: 62px 130px minmax(170px, 1fr) minmax(170px, 1fr) 125px 75px 24px; grid-gap: 10px; gap: 10px; }
.tg-proof-race-columns { padding: 8px 13px; background: #edf3f1; color: var(--p1-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.tg-proof-race-row { border-top: 1px solid var(--p1-line); }
.tg-proof-race-row > summary { min-height: 62px; align-items: center; padding: 8px 13px; cursor: pointer; list-style: none; }
.tg-proof-race-row > summary::-webkit-details-marker { display: none; }
.tg-proof-race-row > summary:hover { background: #f8fbfa; }
.tg-proof-race-row[open] > summary { background: #f5faf8; box-shadow: inset 3px 0 var(--p1-green); }
.tg-proof-race-row > summary > strong { font-size: 12px; }
.tg-proof-race-row > summary > span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.tg-proof-race-row > summary > span.is-positive { color: var(--p1-green-bright); font-weight: 850; }
.tg-proof-race-row > summary > span.is-negative { color: var(--p1-red); font-weight: 850; }
.tg-proof-race-row > summary > svg { color: var(--p1-green); transition: transform .18s ease; }
.tg-proof-race-row[open] > summary > svg { transform: rotate(180deg); }
.tg-proof-runner-cell { display: grid !important; grid-template-columns: auto minmax(0, 1fr); grid-gap: 7px; gap: 7px; align-items: center; }
.tg-proof-runner-cell > span { display: grid; min-width: 0; }
.tg-proof-runner-cell strong,
.tg-proof-runner-cell small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-proof-runner-cell strong { font-size: 9px; }
.tg-proof-runner-cell small { color: var(--p1-muted); font-size: 8px; }
.tg-proof-race-row > div { display: grid; grid-template-columns: .8fr .8fr 1.4fr; grid-gap: 1px; gap: 1px; padding: 1px 14px 14px; background: var(--p1-line); }
.tg-proof-race-row > div > section { min-width: 0; padding: 13px; background: #fff; }
.tg-proof-race-row h3 { margin: 0 0 9px; font-size: 11px; }
.tg-proof-audit-places { display: grid; grid-gap: 7px; gap: 7px; }
.tg-proof-audit-places > span { display: grid; grid-template-columns: 21px auto minmax(0, 1fr); grid-gap: 7px; gap: 7px; align-items: center; }
.tg-proof-audit-places > span > b { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #eef3f1; font-size: 8px; }
.tg-proof-audit-places > span > span { display: grid; min-width: 0; }
.tg-proof-audit-places strong,
.tg-proof-audit-places small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tg-proof-audit-places strong { font-size: 9px; }
.tg-proof-audit-places small { color: var(--p1-muted); font-size: 8px; }
.tg-proof-race-record dl { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 1px; gap: 1px; margin: 0; background: var(--p1-line); }
.tg-proof-race-record dl > div { min-width: 0; padding: 8px; background: #f8fbfa; }
.tg-proof-race-record dt { color: var(--p1-muted); font-size: 7px; text-transform: uppercase; }
.tg-proof-race-record dd { overflow: hidden; margin: 2px 0 0; font-size: 9px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.tg-proof-race-record p { margin: 9px 0; color: var(--p1-muted); font-size: 9px; line-height: 1.45; }
.tg-proof-race-record > a { display: inline-flex; align-items: center; gap: 5px; color: var(--p1-green); font-size: 9px; font-weight: 850; text-decoration: none; }

@media (max-width: 1080px) {
  .tg-fast-results-dates { grid-template-columns: repeat(5, 1fr); }
  .tg-fast-results-dates > form { grid-column: 1 / -1; border-top: 1px solid var(--p1-line); }
  .tg-fast-result-row { grid-template-columns: 135px minmax(165px, .75fr) minmax(440px, 1.7fr) 52px; gap: 11px; }
  .tg-fast-result-row > a span { display: none; }
  .tg-fast-result-row > a { justify-content: center; }
  .tg-proof-final-header { grid-template-columns: 1fr; }
  .tg-proof-final-header > nav { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 820px) {
  .tg-fast-results-dates { display: flex; overflow-x: auto; }
  .tg-fast-results-dates > a { min-width: 112px; flex: 0 0 112px; }
  .tg-fast-results-dates > form { min-width: 235px; flex: 0 0 235px; border-top: 0; }
  .tg-fast-results-toggle { margin-left: 0; }
  .tg-fast-result-row { grid-template-columns: 1fr auto; padding: 15px; }
  .tg-fast-result-identity { grid-column: 1; }
  .tg-fast-result-context { grid-column: 1 / -1; }
  .tg-fast-result-places { grid-column: 1 / -1; padding-top: 11px; border-top: 1px solid var(--p1-line); }
  .tg-fast-result-row > a { grid-column: 2; grid-row: 1; }
  .tg-proof-summary-strip,
  .tg-proof-metric-section > div { grid-template-columns: 1fr 1fr; }
  .tg-p1-proof-scale { grid-template-columns: 170px 1fr; }
  .tg-p1-proof-scale > p { grid-column: 1 / -1; }
  .tg-proof-race-columns { display: none; }
  .tg-proof-race-row > summary { grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; padding: 13px; }
  .tg-proof-race-row > summary > .tg-proof-runner-cell { grid-column: 1 / -1; padding-top: 7px; border-top: 1px solid var(--p1-line); }
  .tg-proof-race-row > summary > span:nth-of-type(n + 4) { grid-column: auto; }
  .tg-proof-race-row > div { grid-template-columns: 1fr 1fr; }
  .tg-proof-race-record { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .tg-fast-results-hero h1,
  .tg-proof-final-header h1 { font-size: 38px; }
  .tg-fast-results-hero > nav { width: 100%; overflow-x: auto; }
  .tg-fast-results-hero > nav a { min-width: 102px; }
  .tg-fast-results-filters > label { width: 100%; }
  .tg-fast-results-apply,
  .tg-fast-results-toggle { width: 100%; justify-content: center; }
  .tg-fast-results-list > header { align-items: flex-start; flex-direction: column; }
  .tg-fast-result-places { grid-template-columns: 1fr; gap: 7px; }
  .tg-fast-result-places > span { padding: 0; border-left: 0; }
  .tg-proof-final-header > nav { display: grid; grid-template-columns: 1fr 1fr; }
  .tg-proof-final-header form { grid-column: 1 / -1; grid-row: 1; }
  .tg-proof-final-header .is-primary { grid-column: 1 / -1; }
  .tg-proof-summary-strip,
  .tg-proof-metric-section > div { grid-template-columns: 1fr; }
  .tg-proof-summary-strip article,
  .tg-proof-metric-section article { min-height: 74px; }
  .tg-p1-proof-scale { grid-template-columns: 1fr; }
  .tg-proof-metric-section > header,
  .tg-proof-history-final > header,
  .tg-proof-race-audit > header { align-items: flex-start; flex-direction: column; }
  .tg-proof-race-row > div { grid-template-columns: 1fr; }
  .tg-proof-race-record { grid-column: 1; }
}

.tg-p1-state { display: grid; justify-items: center; grid-gap: 8px; gap: 8px; min-height: 160px; align-content: center; padding: 24px; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; color: var(--p1-muted); text-align: center; }
.tg-p1-state > svg { color: var(--p1-green); }
.tg-p1-state > strong { color: var(--p1-ink); }
.tg-p1-state > p { max-width: 520px; margin: 0; }
.tg-p1-state > button { min-height: 42px; padding: 9px 14px; border: 0; border-radius: 4px; background: var(--p1-green); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.tg-p1-state.is-unavailable > svg { color: var(--p1-amber-dark); }
.tg-p1-state .is-spinning { animation: tg-p1-spin 850ms linear infinite; }

/* Phase 3 · Points 11–12 — Data-Driven Intelligence and Live Track & Market. */
.tg-ddi-page,
.tg-market-page { gap: 14px; padding-bottom: 32px; }
.tg-ddi-hero,
.tg-market-hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr); grid-gap: 28px; gap: 28px; align-items: end; padding: 13px 4px 5px; }
.tg-ddi-hero h1,
.tg-market-hero h1 { max-width: 760px; margin: 5px 0 7px; color: var(--p1-heading); font-size: clamp(36px, 4.5vw, 53px); line-height: .98; letter-spacing: -.04em; }
.tg-ddi-hero > div > p,
.tg-market-hero > div > p { max-width: 730px; margin: 0; color: var(--p1-muted); font-size: 13px; line-height: 1.55; }
.tg-ddi-hero aside,
.tg-market-hero aside { display: grid; grid-template-columns: auto 1fr; grid-gap: 11px; gap: 11px; min-height: 88px; align-items: center; padding: 14px; border: 1px solid #b9d9ce; border-radius: 6px; background: var(--p1-green-soft); }
.tg-ddi-hero aside > svg,
.tg-market-hero aside > svg { width: 22px; height: 22px; padding: 8px; box-sizing: content-box; border-radius: 50%; background: #fff; color: var(--p1-green); }
.tg-ddi-hero aside span,
.tg-market-hero aside span { display: grid; grid-gap: 4px; gap: 4px; }
.tg-ddi-hero aside strong,
.tg-market-hero aside strong { color: var(--p1-heading); font-size: 11px; }
.tg-ddi-hero aside small,
.tg-market-hero aside small { color: var(--p1-muted); font-size: 9px; line-height: 1.45; }
.tg-market-hero aside.is-stale { border-color: #e5c77c; background: var(--p1-amber-soft); }
.tg-market-hero aside.is-unavailable { border-color: var(--p1-line); background: #f4f6f5; }
.tg-ddi-filters,
.tg-market-filters { display: grid; grid-template-columns: 150px repeat(3, minmax(115px, 1fr)) minmax(170px, 1.35fr) 120px auto; grid-gap: 8px; gap: 8px; align-items: end; padding: 11px 12px; border: 1px solid var(--p1-line); border-radius: 6px; background: #fff; box-shadow: 0 6px 22px rgb(20 48 40 / 4%); }
.tg-ddi-filters > label,
.tg-market-filters > label { display: grid; min-width: 0; grid-gap: 4px; gap: 4px; color: var(--p1-muted); font-size: 8px; font-weight: 800; text-transform: uppercase; }
.tg-ddi-filters :where(input, select),
.tg-market-filters :where(input, select) { width: 100%; min-height: 38px; padding: 6px 9px; border: 1px solid var(--p1-line); border-radius: 4px; outline: 0; background: #fff; color: var(--p1-heading); font: inherit; font-size: 10px; text-transform: none; }
.tg-ddi-filters :where(input, select):focus,
.tg-market-filters :where(input, select):focus { border-color: var(--p1-green); box-shadow: 0 0 0 2px rgb(0 96 75 / 11%); }
.tg-ddi-search > span:last-child,
.tg-market-search > span:last-child { position: relative; display: block; }
.tg-ddi-search svg,
.tg-market-search svg { position: absolute; top: 12px; left: 9px; z-index: 1; width: 13px; color: var(--p1-muted); }
.tg-ddi-search input,
.tg-market-search input { padding-left: 27px; }
.tg-ddi-filters > button,
.tg-market-filters > button { min-height: 38px; padding: 7px 14px; border: 0; border-radius: 4px; background: var(--p1-green); color: #fff; font: inherit; font-size: 10px; font-weight: 850; cursor: pointer; }
.tg-ddi-notice,
.tg-market-notice { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e5c77c; border-radius: 5px; background: var(--p1-amber-soft); color: var(--p1-amber-dark); font-size: 10px; font-weight: 750; }
.tg-ddi-notice svg,
.tg-market-notice svg { width: 16px; }
.tg-ddi-panel,
.tg-market-panel { overflow: hidden; border: 1px solid var(--p1-line); border-radius: 7px; background: #fff; box-shadow: 0 7px 24px rgb(20 48 40 / 4%); }
.tg-ddi-panel > header,
.tg-market-panel > header { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 15px; border-bottom: 1px solid var(--p1-line); }
.tg-ddi-panel > header > div,
.tg-market-panel > header > div { display: flex; align-items: center; gap: 10px; }
.tg-ddi-panel > header > div > span,
.tg-market-panel > header > div > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 5px; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-ddi-panel > header svg,
.tg-market-panel > header svg { width: 17px; }
.tg-ddi-panel h2,
.tg-market-panel h2 { margin: 0; color: var(--p1-heading); font-size: 16px; }
.tg-ddi-panel header p,
.tg-market-panel header p { margin: 2px 0 0; color: var(--p1-muted); font-size: 9px; }
.tg-ddi-panel > header > strong,
.tg-market-panel > header > strong { color: var(--p1-muted); font-size: 9px; }
.tg-ddi-panel > header > a { display: inline-flex; align-items: center; gap: 5px; color: var(--p1-green); font-size: 9px; font-weight: 850; text-decoration: none; }
.tg-ddi-table-wrap,
.tg-market-table-wrap { overflow-x: auto; }
.tg-ddi-table-wrap table,
.tg-market-table-wrap table { width: 100%; min-width: 980px; border-collapse: collapse; }
.tg-ddi-table-wrap th,
.tg-market-table-wrap th { padding: 8px 10px; background: #edf3f1; color: var(--p1-muted); font-size: 7px; font-weight: 850; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tg-ddi-table-wrap td,
.tg-market-table-wrap td { padding: 9px 10px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); font-size: 9px; }
.tg-ddi-table-wrap tbody tr:hover,
.tg-market-table-wrap tbody tr:hover { background: #f8fbfa; }
.tg-ddi-table-wrap td > strong,
.tg-ddi-table-wrap td > small,
.tg-market-table-wrap td > strong,
.tg-market-table-wrap td > small { display: block; }
.tg-ddi-table-wrap td > small,
.tg-market-table-wrap td > small { max-width: 190px; margin-top: 2px; overflow: hidden; color: var(--p1-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.tg-ddi-table-wrap td:first-child b { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); font-size: 8px; }
.tg-ddi-table-wrap td:last-child a,
.tg-market-table-wrap td:last-child a { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--p1-line); border-radius: 4px; color: var(--p1-green); }
.tg-ddi-table-wrap td:last-child svg,
.tg-market-table-wrap td:last-child svg { width: 13px; }
.tg-ddi-runner,
.tg-market-runner { display: flex; min-width: 150px; align-items: center; gap: 7px; }
.tg-ddi-runner > span:last-child,
.tg-market-runner > span:last-child { display: grid; }
.tg-ddi-runner small,
.tg-market-runner small { color: var(--p1-muted); font-size: 7px; }
.tg-ddi-table-wrap .is-positive,
.tg-ddi-spotlight .is-positive { color: var(--p1-green-bright); font-weight: 850; }
.tg-ddi-table-wrap .is-negative { color: var(--p1-red); font-weight: 850; }
.tg-ddi-two-column,
.tg-market-two-column { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .8fr); grid-gap: 14px; gap: 14px; }
.tg-ddi-spotlight-race { display: flex; min-height: 67px; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; border-bottom: 1px solid var(--p1-line); background: #f8fbfa; }
.tg-ddi-spotlight-race > span { display: grid; grid-gap: 3px; gap: 3px; }
.tg-ddi-spotlight-race > span strong { font-size: 12px; }
.tg-ddi-spotlight-race > span small { color: var(--p1-muted); font-size: 8px; }
.tg-ddi-spotlight-race > b { display: grid; min-width: 64px; justify-items: end; color: var(--p1-green); font-size: 24px; }
.tg-ddi-spotlight-race > b small { color: var(--p1-muted); font-size: 7px; font-weight: 750; text-transform: uppercase; }
.tg-ddi-spotlight-runner { display: grid; grid-template-columns: auto minmax(150px, .8fr) minmax(360px, 1.4fr); grid-gap: 12px; gap: 12px; align-items: center; padding: 15px 16px; }
.tg-ddi-spotlight-runner > span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-ddi-spotlight-runner > span small { color: var(--p1-green); font-size: 7px; font-weight: 850; text-transform: uppercase; }
.tg-ddi-spotlight-runner > span strong { font-size: 15px; }
.tg-ddi-spotlight-runner > span em { color: var(--p1-muted); font-size: 8px; font-style: normal; }
.tg-ddi-spotlight-runner dl { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border: 1px solid var(--p1-line); border-radius: 5px; }
.tg-ddi-spotlight-runner dl > div { display: grid; min-height: 51px; align-content: center; padding: 8px 9px; border-left: 1px solid var(--p1-line); }
.tg-ddi-spotlight-runner dl > div:first-child { border-left: 0; }
.tg-ddi-spotlight-runner dt { color: var(--p1-muted); font-size: 7px; }
.tg-ddi-spotlight-runner dd { margin: 3px 0 0; font-size: 11px; font-weight: 850; }
.tg-ddi-reasoning { padding: 13px 16px 16px; border-top: 1px solid var(--p1-line); }
.tg-ddi-reasoning h3 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 10px; }
.tg-ddi-reasoning h3 svg { width: 15px; color: var(--p1-green); }
.tg-ddi-reasoning > p { margin: 5px 0 10px; color: var(--p1-muted); font-size: 9px; line-height: 1.45; }
.tg-ddi-reasoning > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tg-ddi-reasoning > div > span { display: grid; grid-gap: 2px; gap: 2px; padding: 6px 8px; border: 1px solid var(--p1-line); border-radius: 4px; background: #f8fbfa; }
.tg-ddi-reasoning b { font-size: 7px; }
.tg-ddi-reasoning small { color: var(--p1-muted); font-size: 7px; }
.tg-ddi-value > div,
.tg-market-movers > div,
.tg-market-alerts > div { display: grid; }
.tg-ddi-value > div > a,
.tg-market-movers > div > a,
.tg-market-alerts > div > a { display: grid; align-items: center; grid-gap: 9px; gap: 9px; padding: 11px 13px; border-top: 1px solid var(--p1-line); color: var(--p1-heading); text-decoration: none; }
.tg-ddi-value > div > a { grid-template-columns: minmax(145px, 1fr) minmax(170px, 1fr) auto; }
.tg-ddi-value > div > a:first-child,
.tg-market-movers > div > a:first-child,
.tg-market-alerts > div > a:first-child { border-top: 0; }
.tg-ddi-value > div > a > span:first-child,
.tg-market-movers > div > a > span:first-child { display: flex; align-items: center; gap: 7px; }
.tg-ddi-value a span span,
.tg-market-movers a span span { display: grid; min-width: 0; }
.tg-ddi-value a strong,
.tg-market-movers a strong { font-size: 9px; }
.tg-ddi-value a small,
.tg-market-movers a small { overflow: hidden; color: var(--p1-muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.tg-ddi-value dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.tg-ddi-value dl > div { display: grid; padding-left: 8px; border-left: 1px solid var(--p1-line); }
.tg-ddi-value dt { color: var(--p1-muted); font-size: 7px; }
.tg-ddi-value dd { margin: 2px 0 0; font-size: 9px; font-weight: 850; }
.tg-ddi-unavailable,
.tg-market-unavailable,
.tg-market-clear { display: flex; align-items: center; gap: 7px; margin: 0; padding: 16px; color: var(--p1-muted); font-size: 9px; }
.tg-ddi-unavailable svg,
.tg-market-unavailable svg,
.tg-market-clear svg { width: 15px; color: var(--p1-green); }
.tg-ddi-lower { grid-template-columns: minmax(330px, .7fr) minmax(0, 1.5fr); }
.tg-ddi-source-gap { display: flex; min-height: 130px; align-items: center; gap: 11px; padding: 17px; background: #f8fbfa; }
.tg-ddi-source-gap > svg { width: 20px; color: var(--p1-amber-dark); }
.tg-ddi-source-gap strong { font-size: 11px; }
.tg-ddi-source-gap p { margin: 4px 0 0; color: var(--p1-muted); font-size: 9px; line-height: 1.5; }
.tg-ddi-performance-meta,
.tg-ddi-performance-metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.tg-ddi-performance-meta { background: var(--p1-line); gap: 1px; }
.tg-ddi-performance-meta > span,
.tg-ddi-performance-metrics > span { display: grid; min-width: 0; grid-gap: 3px; gap: 3px; padding: 11px 12px; background: #fff; }
.tg-ddi-performance-meta small,
.tg-ddi-performance-metrics small { color: var(--p1-muted); font-size: 7px; }
.tg-ddi-performance-meta strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tg-ddi-performance-metrics { grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--p1-line); }
.tg-ddi-performance-metrics strong { font-size: 14px; }
.tg-ddi-education,
.tg-market-insights { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-gap: 15px; gap: 15px; align-items: center; padding: 17px 19px; border-radius: 7px; background: var(--p1-green-dark); color: #fff; }
.tg-ddi-education > svg,
.tg-market-insights > svg { width: 25px; height: 25px; padding: 9px; box-sizing: content-box; border-radius: 50%; background: rgb(255 255 255 / 10%); color: #63e0b4; }
.tg-ddi-education h2,
.tg-market-insights h2 { margin: 3px 0; color: #fff; font-size: 17px; }
.tg-ddi-education p,
.tg-market-insights p { margin: 0; color: #bdd0c9; font-size: 9px; }
.tg-ddi-education > a,
.tg-market-insights > a { display: inline-flex; min-height: 39px; align-items: center; gap: 6px; padding: 8px 11px; border-radius: 4px; background: var(--p1-amber); color: var(--p1-heading); font-size: 9px; font-weight: 850; text-decoration: none; }

.tg-market-overview { display: grid; grid-template-columns: minmax(160px, 1.2fr) repeat(4, 1fr) auto; grid-gap: 1px; gap: 1px; overflow: hidden; border: 1px solid var(--p1-line); border-radius: 6px; background: var(--p1-line); }
.tg-market-overview > article,
.tg-market-status,
.tg-market-refresh { min-height: 84px; padding: 11px 13px; background: #fff; }
.tg-market-status { display: grid; align-content: center; grid-gap: 4px; gap: 4px; }
.tg-market-status > span { display: flex; align-items: center; gap: 5px; color: var(--p1-muted); font-size: 8px; font-weight: 850; text-transform: uppercase; }
.tg-market-status i { width: 7px; height: 7px; border-radius: 50%; background: #7b8b85; }
.tg-market-status .is-live i { background: var(--p1-green-bright); box-shadow: 0 0 0 4px rgb(0 185 121 / 12%); }
.tg-market-status .is-stale i { background: var(--p1-amber); }
.tg-market-status > strong { font-size: 10px; }
.tg-market-status > small { color: var(--p1-muted); font-size: 7px; }
.tg-market-overview > article { display: grid; grid-template-columns: auto 1fr; grid-gap: 8px; gap: 8px; align-items: center; }
.tg-market-overview > article > span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--p1-green-soft); color: var(--p1-green); }
.tg-market-overview > article svg { width: 14px; }
.tg-market-overview article > div { display: grid; }
.tg-market-overview article small { color: var(--p1-muted); font-size: 7px; }
.tg-market-overview article strong { font-size: 18px; line-height: 1.1; }
.tg-market-overview article em { color: var(--p1-muted); font-size: 6px; font-style: normal; }
.tg-market-refresh { display: grid; align-content: center; grid-gap: 5px; gap: 5px; }
.tg-market-refresh button { display: inline-flex; min-height: 28px; align-items: center; justify-content: center; gap: 5px; padding: 4px 8px; border: 1px solid var(--p1-line); border-radius: 4px; background: #fff; color: var(--p1-green); font: inherit; font-size: 7px; font-weight: 850; cursor: pointer; }
.tg-market-refresh svg { width: 11px; }
.tg-market-table-wrap .is-shortening,
.tg-market-movers .is-shortening,
.tg-market-meetings .is-shortening { color: var(--p1-green-bright); font-weight: 850; }
.tg-market-table-wrap .is-drifting,
.tg-market-movers .is-drifting,
.tg-market-meetings .is-drifting { color: var(--p1-red); font-weight: 850; }
.tg-market-table-wrap .is-neutral { color: var(--p1-muted); }
.tg-market-table-wrap td > span[class^="is-"] { display: inline-flex; align-items: center; gap: 3px; }
.tg-market-table-wrap td > span > svg { width: 11px; }
.tg-market-table-wrap .is-unavailable { padding: 3px 5px; border-radius: 3px; background: #f1f3f2; color: var(--p1-muted); font-size: 7px; }
.tg-market-movement { min-height: 330px; }
.tg-market-chart { position: relative; height: 175px; margin: 18px 20px 4px; border-left: 1px solid var(--p1-line); border-bottom: 1px solid var(--p1-line); }
.tg-market-chart svg { width: 100%; height: 100%; overflow: visible; }
.tg-market-chart line { stroke: #e7eeeb; stroke-width: .5; }
.tg-market-chart polyline { fill: none; stroke: var(--p1-green); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; vector-effect: non-scaling-stroke; }
.tg-market-chart > div > span { position: absolute; width: 7px; height: 7px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; background: var(--p1-green); box-shadow: 0 0 0 1px var(--p1-green); }
.tg-market-chart-empty { display: flex; min-height: 175px; align-items: center; justify-content: center; gap: 9px; margin: 15px; border: 1px dashed var(--p1-line); background: #f8fbfa; color: var(--p1-muted); }
.tg-market-chart-empty > svg { width: 18px; color: var(--p1-green); }
.tg-market-chart-empty span { display: grid; grid-gap: 3px; gap: 3px; }
.tg-market-chart-empty strong { color: var(--p1-heading); font-size: 10px; }
.tg-market-chart-empty small { font-size: 8px; }
.tg-market-chart-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 20px 18px; border: 1px solid var(--p1-line); }
.tg-market-chart-meta > span { display: grid; grid-gap: 3px; gap: 3px; padding: 8px 10px; border-left: 1px solid var(--p1-line); }
.tg-market-chart-meta > span:first-child { border-left: 0; }
.tg-market-chart-meta small { color: var(--p1-muted); font-size: 7px; }
.tg-market-chart-meta strong { font-size: 10px; }
.tg-market-movers > div > a { grid-template-columns: 1fr auto; }
.tg-market-movers > div > a > b { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; }
.tg-market-movers > div > a > b svg { width: 12px; }
.tg-market-conditions > div { display: grid; grid-template-columns: repeat(2, 1fr); grid-gap: 1px; gap: 1px; background: var(--p1-line); }
.tg-market-conditions > div > article { padding: 13px; background: #fff; }
.tg-market-conditions article > header { display: flex; align-items: center; gap: 8px; }
.tg-market-conditions article > header > svg { width: 16px; color: var(--p1-green); }
.tg-market-conditions article > header > span { display: grid; }
.tg-market-conditions article > header strong { font-size: 10px; }
.tg-market-conditions article > header small { color: var(--p1-muted); font-size: 7px; }
.tg-market-conditions dl { display: grid; grid-template-columns: 1fr 1fr; grid-gap: 1px; gap: 1px; margin: 10px 0 0; background: var(--p1-line); }
.tg-market-conditions dl > div { display: grid; grid-gap: 2px; gap: 2px; padding: 7px; background: #f8fbfa; }
.tg-market-conditions dt { color: var(--p1-muted); font-size: 7px; }
.tg-market-conditions dd { margin: 0; font-size: 8px; font-weight: 800; }
.tg-market-alerts > div > a { grid-template-columns: auto 1fr auto; }
.tg-market-alerts > div > a > span:first-child { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--p1-amber-soft); color: var(--p1-amber-dark); }
.tg-market-alerts > div > a > span:first-child svg { width: 14px; }
.tg-market-alerts > div > a > span:nth-child(2) { display: grid; grid-gap: 2px; gap: 2px; }
.tg-market-alerts a strong { font-size: 9px; }
.tg-market-alerts a small { color: var(--p1-muted); font-size: 8px; }
.tg-market-alerts a em { color: #8b9893; font-size: 7px; font-style: normal; }
.tg-market-alerts a > svg { width: 13px; color: var(--p1-green); }
.tg-market-meetings > div { display: grid; }
.tg-market-meetings > div > article { display: grid; grid-template-columns: minmax(180px, 1.25fr) minmax(120px, .8fr) minmax(150px, 1fr) 80px 135px; grid-gap: 11px; gap: 11px; min-height: 59px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--p1-line); }
.tg-market-meetings > div > article:first-child { border-top: 0; }
.tg-market-meetings article > span { display: grid; grid-gap: 2px; gap: 2px; }
.tg-market-meetings article > span:first-child strong { font-size: 11px; }
.tg-market-meetings article small { color: var(--p1-muted); font-size: 7px; }
.tg-market-meetings article span > strong { font-size: 9px; }
.tg-market-meetings article > small { text-align: right; }

@media (max-width: 1080px) {
  .tg-ddi-filters,
  .tg-market-filters { grid-template-columns: repeat(4, 1fr); }
  .tg-ddi-search,
  .tg-market-search { grid-column: span 2; }
  .tg-market-overview { grid-template-columns: repeat(3, 1fr); }
  .tg-market-status { grid-column: span 2; }
  .tg-market-refresh { grid-column: span 1; }
}

@media (max-width: 820px) {
  .tg-ddi-hero,
  .tg-market-hero,
  .tg-ddi-two-column,
  .tg-market-two-column { grid-template-columns: 1fr; }
  .tg-ddi-spotlight-runner { grid-template-columns: auto 1fr; }
  .tg-ddi-spotlight-runner dl { grid-column: 1 / -1; }
  .tg-ddi-performance-metrics { grid-template-columns: repeat(3, 1fr); }
  .tg-ddi-education,
  .tg-market-insights { grid-template-columns: auto 1fr; }
  .tg-ddi-education > a,
  .tg-market-insights > a { grid-column: 1 / -1; justify-self: start; }
  .tg-market-meetings > div > article { grid-template-columns: 1.2fr 1fr 1fr; }
  .tg-market-meetings article > span:nth-child(4),
  .tg-market-meetings article > small { display: none; }
}

@media (max-width: 560px) {
  .tg-ddi-hero h1,
  .tg-market-hero h1 { font-size: 37px; }
  .tg-ddi-filters,
  .tg-market-filters { grid-template-columns: 1fr 1fr; }
  .tg-ddi-search,
  .tg-market-search { grid-column: 1 / -1; }
  .tg-ddi-filters > button,
  .tg-market-filters > button { grid-column: 1 / -1; }
  .tg-ddi-panel > header,
  .tg-market-panel > header { align-items: flex-start; flex-direction: column; }
  .tg-ddi-spotlight-runner dl { grid-template-columns: 1fr 1fr; }
  .tg-ddi-spotlight-runner dl > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--p1-line); }
  .tg-ddi-spotlight-runner dl > div:nth-child(4) { border-top: 1px solid var(--p1-line); }
  .tg-ddi-performance-meta { grid-template-columns: 1fr 1fr; }
  .tg-ddi-performance-metrics { grid-template-columns: 1fr 1fr; }
  .tg-market-overview { grid-template-columns: 1fr 1fr; }
  .tg-market-status,
  .tg-market-refresh { grid-column: 1 / -1; }
  .tg-market-conditions > div { grid-template-columns: 1fr; }
  .tg-market-meetings > div > article { grid-template-columns: 1fr 1fr; }
  .tg-market-meetings article > span:nth-child(3) { display: none; }
}

/*!************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/styles.css ***!
  \************************************************************************************************************************************************************************************************************************************************************/
/*
 * P1 cascade contract.
 *
 * globals.css and mvp.css remain available while routes are migrated, but the
 * P1 stylesheet is deliberately last so the approved shared shell and tokens have
 * one predictable authority through import order. Route work should add P1 styles to p1.css and
 * retire legacy selectors instead of adding another global stylesheet.
 */

