/* TPP Postflop Decision Lab styles | Version 20260729-2 | V7.7 downward line-card tooltip fix */
.tpp-pdl,
.tpp-pdl * {
  box-sizing: border-box;
}

.tpp-pdl {
  --pdl-red: #ff3333;
  --pdl-red-dark: #d92323;
  --pdl-black: #171717;
  --pdl-text: #262626;
  --pdl-muted: #676767;
  --pdl-border: #e4e4e4;
  --pdl-soft: #f7f7f7;
  --pdl-white: #ffffff;
  --pdl-green: #177247;
  --pdl-green-bg: #edf8f2;
  --pdl-amber: #855600;
  --pdl-amber-bg: #fff7e4;
  --pdl-danger: #992b2b;
  --pdl-danger-bg: #fff0f0;
  --pdl-blue: #275d8c;
  --pdl-blue-bg: #eef6fc;
  max-width: 900px;
  margin: 0 auto;
  color: var(--pdl-text);
  font-family: "DM Sans", Arial, sans-serif;
}

.tpp-pdl button,
.tpp-pdl select {
  font: inherit;
}

.tpp-pdl button {
  cursor: pointer;
}

.tpp-pdl-shell {
  overflow: hidden;
  border: 1px solid var(--pdl-border);
  border-top: 5px solid var(--pdl-red);
  border-radius: 24px;
  background: var(--pdl-white);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.06);
}

.tpp-pdl-hero {
  padding: 30px;
  border-bottom: 1px solid var(--pdl-border);
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
  text-align: center;
}

.tpp-pdl-logo {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  object-fit: contain;
}

.tpp-pdl h2,
.tpp-pdl h3,
.tpp-pdl h4,
.tpp-pdl p {
  margin-top: 0;
}

.tpp-pdl h2 {
  margin-bottom: 10px;
  color: var(--pdl-black);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  text-align: center;
}

.tpp-pdl-intro {
  max-width: 820px;
  margin: 0 auto;
  color: var(--pdl-muted);
  font-size: 15px;
  line-height: 1.7;
}

.tpp-pdl-guide {
  padding: 20px 30px;
  border-bottom: 1px solid var(--pdl-border);
}

.tpp-pdl-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--pdl-black);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.tpp-pdl-guide summary::-webkit-details-marker {
  display: none;
}

.tpp-pdl-guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.tpp-pdl-guide-card {
  padding: 14px;
  border: 1px solid var(--pdl-border);
  border-radius: 14px;
  background: var(--pdl-soft);
}

.tpp-pdl-guide-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--pdl-black);
  font-size: 13px;
}

.tpp-pdl-guide-card span {
  color: var(--pdl-muted);
  font-size: 14px;
  line-height: 1.55;
}

.tpp-pdl-selector {
  min-width: 210px;
  min-height: 42px;
  padding: 9px 36px 9px 12px;
  border: 1px solid var(--pdl-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--pdl-text);
  font-size: 13px;
}

.tpp-pdl-section {
  padding: 28px 30px;
}

#pdlAnalysisSection {
  overflow: visible;
}

.tpp-pdl-section + .tpp-pdl-section {
  border-top: 1px solid var(--pdl-border);
}

.tpp-pdl-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.tpp-pdl-section-heading h3 {
  margin-bottom: 5px;
  color: var(--pdl-black);
  font-size: 21px;
}

.tpp-pdl-section-heading p {
  margin-bottom: 0;
  color: var(--pdl-muted);
  font-size: 13px;
  line-height: 1.55;
}

.tpp-pdl-badges {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.tpp-pdl-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #555555;
  font-size: 11px;
  font-weight: 800;
}

.tpp-pdl-badge.street {
  background: #171717;
  color: #ffffff;
}

.tpp-pdl-badge.level {
  background: #fff1f1;
  color: #a52b2b;
}

.tpp-pdl-spot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.tpp-pdl-table-card,
.tpp-pdl-info-card,
.tpp-pdl-panel,
.tpp-pdl-result-card,
.tpp-pdl-variant-card {
  border: 1px solid var(--pdl-border);
  border-radius: 16px;
  background: #ffffff;
}

.tpp-pdl-table-card {
  padding: 22px;
  background: #fafafa;
}

.tpp-pdl-table-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.tpp-pdl-pot {
  color: var(--pdl-black);
  font-size: 13px;
  font-weight: 800;
}

.tpp-pdl-opponent-seats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 27px;
  margin: 3px 0 8px;
}

.tpp-pdl-hero-labels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tpp-pdl-position-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 23px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.65px;
  line-height: 1;
  text-transform: uppercase;
}

.tpp-pdl-position-label.hero-position {
  background: var(--pdl-red);
  color: #ffffff;
}

.tpp-pdl-position-label.opponent-position {
  border: 1px solid #d8d8d8;
  background: #eeeeee;
  color: #333333;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.05);
}

.tpp-pdl-board {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 18px 0 14px;
}

.tpp-pdl-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 66px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.06);
  color: #111111;
  font-size: 19px;
  font-weight: 900;
}

.tpp-pdl-card.red {
  color: #d22a2a;
}

.tpp-pdl-hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.tpp-pdl-hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 23px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #171717;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.8px;
  line-height: 1;
  text-transform: uppercase;
}

.tpp-pdl-hero-hand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.tpp-pdl-action-line {
  padding: 13px 14px;
  border-radius: 12px;
  background: #ffffff;
  color: var(--pdl-text);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.tpp-pdl-info-card {
  padding: 0;
  overflow: hidden;
}

.tpp-pdl-info-header {
  padding: 16px 20px 14px;
  border-top: 4px solid var(--pdl-red);
  border-bottom: 1px solid #eeeeee;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.tpp-pdl-info-kicker {
  display: block;
  color: var(--pdl-black);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.9px;
  line-height: 1.2;
  text-transform: uppercase;
}

.tpp-pdl-info-header p {
  margin: 5px 0 0;
  color: var(--pdl-muted);
  font-size: 12px;
  line-height: 1.5;
}

.tpp-pdl-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 20px 20px;
}

.tpp-pdl-info-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid #eeeeee;
}

.tpp-pdl-info-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.tpp-pdl-info-row strong {
  color: var(--pdl-black);
  font-size: 12px;
}

.tpp-pdl-info-row span {
  color: var(--pdl-muted);
  font-size: 12px;
  line-height: 1.5;
}

.tpp-pdl-question {
  margin: 22px 0 14px;
  color: var(--pdl-black);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.4;
}

.tpp-pdl-option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tpp-pdl-option {
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--pdl-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--pdl-text);
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.tpp-pdl-option:hover {
  border-color: #bfbfbf;
  transform: translateY(-1px);
}

.tpp-pdl-option.selected {
  border-color: var(--pdl-red);
  background: #fff4f4;
}

.tpp-pdl-option strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pdl-black);
  font-size: 13px;
}

.tpp-pdl-option span {
  color: var(--pdl-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tpp-pdl-reason-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tpp-pdl-reason {
  min-height: 66px;
  padding: 12px 13px;
  border: 1px solid var(--pdl-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--pdl-text) !important;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  -webkit-text-fill-color: var(--pdl-text);
}

.tpp-pdl-reason:hover {
  border-color: #bfbfbf;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.09);
  transform: translateY(-1px);
}

.tpp-pdl-reason.selected {
  border-color: var(--pdl-red);
  background: #fff4f4;
  color: var(--pdl-black) !important;
  -webkit-text-fill-color: var(--pdl-black);
}

.tpp-pdl-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tpp-pdl-primary,
.tpp-pdl-ghost {
  min-height: 44px;
  padding: 10px 17px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
}

#pdlChoiceReturnToHub,
#pdlReveal,
#pdlResetChoice {
  font-size: 13px;
}

.tpp-pdl-primary {
  border: 0;
  background: #ff3333;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(255, 51, 51, 0.22);
  transition: background 0.22s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tpp-pdl-primary:hover {
  background: linear-gradient(70deg, #111111 14%, #ff3333 73%);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.tpp-pdl-primary:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.tpp-pdl-ghost {
  border: 1px solid #d9d9d9;
  background: #ffffff;
  color: #333333 !important;
  box-shadow: none;
  -webkit-text-fill-color: #333333 !important;
}

.tpp-pdl-ghost:hover,
.tpp-pdl-ghost:focus-visible {
  border-color: #c8c8c8;
  background: #f4f4f4;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}

.tpp-pdl-feedback {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 16px;
  overflow: visible;
}

.tpp-pdl-result-card {
  padding: 18px;
}

.tpp-pdl-result-card.good {
  border-color: #b9dfc9;
  background: var(--pdl-green-bg);
}

.tpp-pdl-result-card.mixed {
  border-color: #ead39a;
  background: var(--pdl-amber-bg);
}

.tpp-pdl-result-card.review {
  border-color: #ebbbbb;
  background: var(--pdl-danger-bg);
}

.tpp-pdl-result-label {
  margin-bottom: 7px;
  color: var(--pdl-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.tpp-pdl-result-title {
  margin-bottom: 7px;
  color: var(--pdl-black);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
}

.tpp-pdl-result-copy {
  margin-bottom: 0;
  color: var(--pdl-text);
  font-size: 13px;
  line-height: 1.65;
}

.tpp-pdl-score-box {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
}

.tpp-pdl-score-item {
  position: relative;
  padding: 13px;
  border: 1px solid var(--pdl-border);
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  overflow: visible;
}

.tpp-pdl-score-item:hover,
.tpp-pdl-score-item:focus-within {
  z-index: 20;
}

.tpp-pdl-score-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--pdl-black);
  font-size: 20px;
}

.tpp-pdl-score-item span {
  color: var(--pdl-muted);
  font-size: 13px;
}

.tpp-pdl-lines {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.tpp-pdl-line-card {
  padding: 15px;
  border: 1px solid var(--pdl-border);
  border-radius: 14px;
  background: #ffffff;
}

.tpp-pdl-line-card.baseline {
  border-top: 4px solid var(--pdl-green);
}

.tpp-pdl-line-card.alternative {
  border-top: 4px solid var(--pdl-blue);
}

.tpp-pdl-line-card.creative {
  border-top: 4px solid var(--pdl-red);
}

.tpp-pdl-line-card small {
  display: block;
  margin-bottom: 6px;
  color: var(--pdl-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tpp-pdl-line-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--pdl-black);
  font-size: 14px;
}

.tpp-pdl-line-card p {
  margin-bottom: 0;
  color: var(--pdl-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tpp-pdl-principle {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--pdl-red);
  border-radius: 0 12px 12px 0;
  background: #fff8f8;
  color: #6e3030;
  font-size: 13px;
  line-height: 1.65;
}

.tpp-pdl-lab-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tpp-pdl-tab {
  padding: 8px 12px;
  border: 1px solid var(--pdl-border);
  border-radius: 999px;
  background: #ffffff;
  color: #444444 !important;
  font-size: 13px;
  font-weight: 800;
  -webkit-text-fill-color: #444444 !important;
}

.tpp-pdl-tab.active {
  border-color: var(--pdl-black);
  background: var(--pdl-black);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.tpp-pdl-variant-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.tpp-pdl-variant-button {
  min-height: 68px;
  padding: 11px 12px;
  border: 1px solid var(--pdl-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--pdl-text);
  text-align: left;
}

.tpp-pdl-variant-button:hover,
.tpp-pdl-variant-button.selected {
  border-color: var(--pdl-red);
  background: #fff5f5;
}

.tpp-pdl-variant-button strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pdl-black);
  font-size: 12px;
}

.tpp-pdl-variant-button span {
  color: var(--pdl-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tpp-pdl-variant-card {
  padding: 17px;
  background: #fafafa;
}

.tpp-pdl-variant-card h4 {
  margin-bottom: 7px;
  color: var(--pdl-black);
  font-size: 16px;
}

.tpp-pdl-variant-card p {
  margin-bottom: 10px;
  color: var(--pdl-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tpp-pdl-variant-recommendation {
  padding: 11px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--pdl-text);
  font-size: 14px;
  line-height: 1.55;
}

.tpp-pdl-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tpp-pdl-explore-box {
  padding: 14px;
  border: 1px solid var(--pdl-border);
  border-radius: 12px;
  background: #ffffff;
}

.tpp-pdl-explore-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--pdl-black);
  font-size: 12px;
}

.tpp-pdl-explore-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--pdl-muted);
  font-size: 14px;
  line-height: 1.6;
}

.tpp-pdl-metric-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tpp-pdl-tip-wrap {
  position: relative;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
}

.tpp-pdl-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #111111 !important;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  -webkit-text-fill-color: #ffffff !important;
}

.tpp-pdl-tip-icon:focus-visible {
  outline: 2px solid var(--pdl-red);
  outline-offset: 2px;
}

.tpp-pdl-tip {
  position: absolute;
  top: auto;
  right: auto;
  bottom: calc(100% + 10px);
  left: 50%;
  z-index: 1000;
  width: 230px;
  max-width: min(230px, calc(100vw - 44px));
  padding: 10px 12px;
  border-radius: 9px;
  background: #111111 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
  -webkit-text-fill-color: #ffffff !important;
}

.tpp-pdl-tip::after {
  position: absolute;
  top: 100%;
  left: 50%;
  border: 6px solid transparent;
  border-top-color: #111111;
  transform: translateX(-50%);
  content: "";
}

.tpp-pdl-tip-wrap:hover .tpp-pdl-tip,
.tpp-pdl-tip-wrap:focus-within .tpp-pdl-tip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tpp-pdl-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .tpp-pdl-guide-grid,
  .tpp-pdl-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tpp-pdl-spot,
  .tpp-pdl-feedback {
    grid-template-columns: 1fr;
  }

  .tpp-pdl-option-grid,
  .tpp-pdl-variant-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tpp-pdl-hero,
  .tpp-pdl-guide,
  .tpp-pdl-toolbar,
  .tpp-pdl-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .tpp-pdl-toolbar,
  .tpp-pdl-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .tpp-pdl-selector {
    width: 100%;
  }

  .tpp-pdl-guide-grid,
  .tpp-pdl-option-grid,
  .tpp-pdl-reason-grid,
  .tpp-pdl-lines,
  .tpp-pdl-variant-options,
  .tpp-pdl-explore-grid {
    grid-template-columns: 1fr;
  }

  .tpp-pdl-card {
    width: 42px;
    height: 58px;
    font-size: 17px;
  }

  .tpp-pdl-tip {
    position: fixed;
    top: 50%;
    right: 18px;
    bottom: auto;
    left: 18px;
    width: auto;
    max-width: none;
    max-height: calc(100vh - 36px);
    z-index: 99999;
    overflow-y: auto;
    transform: translateY(calc(-50% + 8px));
  }

  .tpp-pdl-tip::after {
    display: none;
  }

  .tpp-pdl-tip-wrap:hover .tpp-pdl-tip,
  .tpp-pdl-tip-wrap:focus-within .tpp-pdl-tip {
    transform: translateY(-50%);
  }

  #tppPostflopDecisionLab .tpp-pdl-reason {
    min-height: 0;
    padding: 10px 11px;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  #tppPostflopDecisionLab .tpp-pdl-actions {
    align-items: stretch;
    flex-direction: column;
  }

  #tppPostflopDecisionLab .tpp-pdl-actions #pdlChoiceReturnToHub,
  #tppPostflopDecisionLab .tpp-pdl-actions #pdlReveal,
  #tppPostflopDecisionLab .tpp-pdl-actions #pdlResetChoice {
    width: 100%;
    font-size: 12px !important;
  }

  #tppPostflopDecisionLab .tpp-pdl-tab {
    padding: 7px 10px;
    font-size: 12px !important;
  }
}

/* Training hub */
.tpp-pdl-home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 24px;
  align-items: center;
  padding: 30px;
  border-bottom: 1px solid var(--pdl-border);
  background: #ffffff;
}

.tpp-pdl-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--pdl-red-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.tpp-pdl-home-copy h3,
.tpp-pdl-home-heading h3 {
  margin-bottom: 7px;
  color: var(--pdl-black);
  font-size: 23px;
  line-height: 1.25;
}

.tpp-pdl-home-copy p,
.tpp-pdl-home-heading p {
  margin-bottom: 0;
  color: var(--pdl-muted);
  font-size: 14px;
  line-height: 1.65;
}

.tpp-pdl-home-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.tpp-pdl-large-button {
  min-height: 50px;
  padding: 12px 22px;
  font-size: 14px;
}

.tpp-pdl-progress-summary {
  padding: 20px;
  border: 1px solid var(--pdl-border);
  border-radius: 16px;
  background: var(--pdl-soft);
}

.tpp-pdl-progress-number {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.tpp-pdl-progress-number strong {
  color: var(--pdl-black);
  font-size: 40px;
  line-height: 1;
}

.tpp-pdl-progress-number span {
  color: var(--pdl-muted);
  font-size: 14px;
}

.tpp-pdl-progress-track,
.tpp-pdl-mini-progress {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #e8e8e8;
}

.tpp-pdl-progress-track {
  margin-top: 18px;
}

.tpp-pdl-progress-track span,
.tpp-pdl-mini-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pdl-red);
  transition: width 0.3s ease;
}

.tpp-pdl-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--pdl-muted);
  font-size: 13px;
}

.tpp-pdl-home-section {
  padding: 28px 30px;
  border-bottom: 1px solid var(--pdl-border);
}

.tpp-pdl-home-heading {
  margin-bottom: 18px;
}

.tpp-pdl-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tpp-pdl-stat-card {
  padding: 17px;
  border: 1px solid var(--pdl-border);
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
}

.tpp-pdl-stat-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pdl-black);
  font-size: 24px;
}

.tpp-pdl-stat-card span {
  color: var(--pdl-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tpp-pdl-street-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tpp-pdl-street-card {
  padding: 18px;
  border: 1px solid var(--pdl-border);
  border-radius: 16px;
  background: #ffffff;
}

.tpp-pdl-street-card-top,
.tpp-pdl-street-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tpp-pdl-street-card-top strong {
  color: var(--pdl-black);
  font-size: 14px;
}

.tpp-pdl-street-label {
  color: var(--pdl-red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.tpp-pdl-street-card h4 {
  margin: 13px 0 7px;
  color: var(--pdl-black);
  font-size: 18px;
}

.tpp-pdl-street-card p {
  min-height: 68px;
  margin-bottom: 15px;
  color: var(--pdl-muted);
  font-size: 14px;
  line-height: 1.55;
}

.tpp-pdl-mini-progress {
  height: 7px;
  margin-bottom: 13px;
}

.tpp-pdl-street-card-footer span {
  color: var(--pdl-muted);
  font-size: 13px;
}

.tpp-pdl-card-link,
.tpp-pdl-text-button,
.tpp-pdl-back-button {
  border: 0;
  background: none;
  color: var(--pdl-red-dark);
  font-size: 13px;
  font-weight: 900;
}

.tpp-pdl-card-link:hover,
.tpp-pdl-text-button:hover,
.tpp-pdl-back-button:hover {
  color: var(--pdl-black);
}

.tpp-pdl-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tpp-pdl-mode-card {
  min-height: 150px;
  padding: 17px;
  border: 1px solid var(--pdl-border);
  border-radius: 15px;
  background: #ffffff;
  color: var(--pdl-text) !important;
  text-align: left;
  -webkit-text-fill-color: var(--pdl-text);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.tpp-pdl-mode-card:hover:not(:disabled) {
  border-color: #bdbdbd;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.tpp-pdl-mode-card.disabled,
.tpp-pdl-mode-card:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.tpp-pdl-mode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #171717;
  color: #ffffff !important;
  font-size: 12px;
  font-weight: 900;
  -webkit-text-fill-color: #ffffff;
}

.tpp-pdl-mode-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--pdl-black) !important;
  font-size: 16px;
  -webkit-text-fill-color: var(--pdl-black);
}

.tpp-pdl-mode-card > span:last-child {
  display: block;
  color: var(--pdl-muted) !important;
  font-size: 14px;
  line-height: 1.55;
  -webkit-text-fill-color: var(--pdl-muted);
}

.tpp-pdl-focus-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--pdl-border);
  border-radius: 16px;
  background: var(--pdl-soft);
}

.tpp-pdl-focus-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.tpp-pdl-focus-header h4 {
  margin-bottom: 4px;
  color: var(--pdl-black);
  font-size: 17px;
}

.tpp-pdl-focus-header p {
  margin-bottom: 0;
  color: var(--pdl-muted);
  font-size: 14px;
}

.tpp-pdl-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tpp-pdl-focus-card {
  padding: 14px;
  border: 1px solid var(--pdl-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--pdl-text) !important;
  text-align: left;
  -webkit-text-fill-color: var(--pdl-text);
}

.tpp-pdl-focus-card:hover {
  border-color: var(--pdl-red);
}

.tpp-pdl-focus-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--pdl-black) !important;
  font-size: 14px;
  -webkit-text-fill-color: var(--pdl-black);
}

.tpp-pdl-focus-card span {
  color: var(--pdl-muted) !important;
  font-size: 13px;
  line-height: 1.45;
  -webkit-text-fill-color: var(--pdl-muted);
}

.tpp-pdl-admin-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 30px;
  border-bottom: 1px solid var(--pdl-border);
  background: #fff8f8;
}

.tpp-pdl-admin-panel div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tpp-pdl-admin-panel strong {
  color: var(--pdl-black);
  font-size: 14px;
}

.tpp-pdl-admin-panel span {
  color: var(--pdl-muted);
  font-size: 13px;
}

/* Scenario session */
.tpp-pdl-training-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 30px;
  border-bottom: 1px solid var(--pdl-border);
  background: #ffffff;
}

.tpp-pdl-training-context {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tpp-pdl-training-context strong {
  color: var(--pdl-black);
  font-size: 14px;
}

.tpp-pdl-training-context span {
  color: var(--pdl-muted);
  font-size: 13px;
}

.tpp-pdl-inner-section {
  padding: 20px;
}

.tpp-pdl-compact-heading {
  margin-bottom: 14px;
}

.tpp-pdl-compact-heading h3 {
  font-size: 18px;
}

.tpp-pdl-badge.topic {
  background: #f0f0f0;
  color: #444444;
}

.tpp-pdl-next-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .tpp-pdl-home-hero {
    grid-template-columns: 1fr;
  }

  .tpp-pdl-stat-grid,
  .tpp-pdl-street-grid,
  .tpp-pdl-mode-grid,
  .tpp-pdl-focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tpp-pdl-home-hero,
  .tpp-pdl-home-section,
  .tpp-pdl-admin-panel,
  .tpp-pdl-training-bar {
    padding-right: 18px;
    padding-left: 18px;
  }

  .tpp-pdl-stat-grid,
  .tpp-pdl-street-grid,
  .tpp-pdl-mode-grid,
  .tpp-pdl-focus-grid {
    grid-template-columns: 1fr;
  }

  .tpp-pdl-street-card p {
    min-height: 0;
  }

  .tpp-pdl-training-bar,
  .tpp-pdl-admin-panel,
  .tpp-pdl-focus-header {
    align-items: stretch;
    flex-direction: column;
  }

  .tpp-pdl-training-context {
    align-items: flex-start;
  }

  .tpp-pdl-next-actions,
  .tpp-pdl-home-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .tpp-pdl-next-actions button,
  .tpp-pdl-home-actions button {
    width: 100%;
  }
}

/* V7.5 desktop controls and analysis-card tooltips */

#tppPostflopDecisionLab .tpp-pdl-line-card {
  position: relative;
  overflow: visible;
}

#tppPostflopDecisionLab .tpp-pdl-line-card:hover,
#tppPostflopDecisionLab .tpp-pdl-line-card:focus-within {
  z-index: 30;
}

#tppPostflopDecisionLab .tpp-pdl-line-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  overflow: visible;
}

#tppPostflopDecisionLab .tpp-pdl-line-card-label {
  min-width: 0;
}

#tppPostflopDecisionLab .tpp-pdl-line-card-heading .tpp-pdl-tip-wrap {
  flex: 0 0 auto;
  margin-left: auto;
}

#tppPostflopDecisionLab .tpp-pdl-line-card-heading .tpp-pdl-tip {
  text-transform: none;
  letter-spacing: normal;
}

@media (min-width: 681px) {
  #tppPostflopDecisionLab .tpp-pdl-tab,
  #tppPostflopDecisionLab .tpp-pdl-next-actions button,
  #tppPostflopDecisionLab #pdlReturnToHub,
  #tppPostflopDecisionLab #pdlReviewAgain,
  #tppPostflopDecisionLab #pdlNextScenario {
    font-size: 13px !important;
  }

  #tppPostflopDecisionLab .tpp-pdl-line-card-heading .tpp-pdl-tip {
    right: 0;
    left: auto;
    transform: translateY(4px);
  }

  #tppPostflopDecisionLab .tpp-pdl-line-card-heading .tpp-pdl-tip::after {
    right: 3px;
    left: auto;
    transform: none;
  }

  #tppPostflopDecisionLab .tpp-pdl-line-card-heading .tpp-pdl-tip-wrap:hover .tpp-pdl-tip,
  #tppPostflopDecisionLab .tpp-pdl-line-card-heading .tpp-pdl-tip-wrap:focus-within .tpp-pdl-tip {
    transform: translateY(0);
  }
}

/* V7.7 desktop analysis-card tooltips open downward */
@media (min-width: 681px) {
  #tppPostflopDecisionLab .tpp-pdl-line-card-heading .tpp-pdl-tip {
    top: calc(100% + 10px);
    right: 0;
    bottom: auto;
    left: auto;
    transform: translateY(-4px);
  }

  #tppPostflopDecisionLab .tpp-pdl-line-card-heading .tpp-pdl-tip::after {
    top: auto;
    right: 3px;
    bottom: 100%;
    left: auto;
    border-color: transparent;
    border-bottom-color: #111111;
    transform: none;
  }

  #tppPostflopDecisionLab .tpp-pdl-line-card-heading .tpp-pdl-tip-wrap:hover .tpp-pdl-tip,
  #tppPostflopDecisionLab .tpp-pdl-line-card-heading .tpp-pdl-tip-wrap:focus-within .tpp-pdl-tip {
    transform: translateY(0);
  }
}