/* LPML_PREMIUM_VALUE_UI_20260705 */
.lpml-value-math {
  margin-top: .85rem;
  border: 1px solid rgba(123, 241, 200, .20);
  border-radius: 16px;
  padding: .85rem;
  background: linear-gradient(135deg, rgba(10, 20, 36, .72), rgba(16, 28, 46, .52));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.lpml-value-math.is-compact { padding: .72rem; border-radius: 14px; }
.lpml-value-math-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}
.lpml-value-tier,
.lpml-odds-freshness {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  border-radius: 999px;
  padding: .22rem .55rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lpml-value-tier.is-value { color: #7bf1c8; border: 1px solid rgba(123,241,200,.38); background: rgba(123,241,200,.10); }
.lpml-value-tier.is-lean { color: #9dccff; border: 1px solid rgba(157,204,255,.34); background: rgba(90,156,255,.10); }
.lpml-value-tier.is-watch { color: #ffd166; border: 1px solid rgba(255,209,102,.34); background: rgba(255,209,102,.10); }
.lpml-value-tier.is-pass { color: #b8c2d8; border: 1px solid rgba(184,194,216,.28); background: rgba(184,194,216,.08); }
.lpml-odds-freshness { color: var(--muted, #aab6c8); border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04); }
.lpml-odds-freshness.is-fresh { color: #7bf1c8; }
.lpml-odds-freshness.is-stale { color: #ffd166; }
.lpml-odds-freshness.is-missing { color: #ff9aa2; }
.lpml-value-math-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .45rem;
}
.lpml-value-math-grid > div {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: .5rem .55rem;
  background: rgba(255,255,255,.035);
}
.lpml-value-math-grid span {
  display: block;
  color: var(--muted, #aab6c8);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lpml-value-math-grid strong {
  display: block;
  margin-top: .14rem;
  font-size: .98rem;
  color: var(--text, #eef5ff);
}
.lpml-value-math small {
  display: block;
  margin-top: .55rem;
  color: var(--muted, #aab6c8);
  font-size: .76rem;
  line-height: 1.35;
}
.lpml-copy-button { white-space: nowrap; }
.lpml-premium-actions,
.lpml-parlay-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .75rem;
}
.lpml-preset-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .85rem 0 .75rem;
  padding: .7rem;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.lpml-preset-strip button {
  border: 1px solid rgba(123,241,200,.22);
  border-radius: 999px;
  background: rgba(123,241,200,.08);
  color: var(--text, #eef5ff);
  padding: .42rem .68rem;
  font-weight: 800;
  cursor: pointer;
}
.lpml-preset-strip button:hover { border-color: rgba(123,241,200,.48); }
.lpml-parlay-history {
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: .9rem;
  background: rgba(255,255,255,.03);
}
.lpml-parlay-history-list {
  display: grid;
  gap: .65rem;
  margin-top: .75rem;
}
.lpml-parlay-history-card {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: .75rem;
  background: rgba(6,14,25,.50);
}
.lpml-parlay-history-card strong,
.lpml-parlay-history-card span { display: block; }
.lpml-parlay-history-card span { color: var(--muted, #aab6c8); font-size: .84rem; margin-top: .2rem; }
@media (max-width: 720px) {
  .lpml-value-math-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lpml-value-math-head { align-items: flex-start; flex-direction: column; }
  .lpml-preset-strip { overflow-x: auto; flex-wrap: nowrap; }
  .lpml-preset-strip button { flex: 0 0 auto; }
}


/* LPML_PREMIUM_VALUE_UI_20260705: keep value math available without repeating dense card metrics */
.slate-value-details,
.value-board-explainer,
.pr-inline-details details {
  margin-top: .75rem;
}
.slate-value-details > summary,
.value-board-explainer > summary,
.pr-inline-details summary {
  cursor: pointer;
  color: var(--text, #eef5ff);
  font-weight: 800;
}
.slate-value-details > summary::marker,
.value-board-explainer > summary::marker,
.pr-inline-details summary::marker {
  color: var(--accent, #7bf1c8);
}
.slate-value-details .lpml-value-math,
.value-board-explainer .lpml-value-math,
.pr-inline-details .lpml-value-math {
  margin-top: .65rem;
}

/* LPML_PREMIUM_POLISH_V3_20260706: app-like feedback for copy/share actions */
.lpml-copy-button.is-copied,
.button-link.is-copied {
  border-color: rgba(123,241,200,.48) !important;
  color: #7bf1c8 !important;
  background: rgba(123,241,200,.10) !important;
}
.lpml-copy-button[disabled],
.button-link[disabled] {
  opacity: .72;
  cursor: progress;
}
.lpml-copy-toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 99999;
  padding: .72rem .95rem;
  border-radius: 999px;
  border: 1px solid rgba(123,241,200,.38);
  background: rgba(7, 17, 31, .94);
  box-shadow: 0 18px 60px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.08);
  color: #eaf7ff;
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .01em;
  backdrop-filter: blur(10px);
}
.lpml-copy-toast.is-error {
  border-color: rgba(255,154,162,.42);
  color: #ffd2d6;
}
.lpml-copy-toast[hidden] { display: none !important; }
@media (max-width: 720px) {
  .lpml-copy-toast {
    width: calc(100% - 2rem);
    max-width: 420px;
    text-align: center;
  }
}

/* LPML_RECENT_RESEARCH_TRAIL_V5_20260706: local research trail, no login required */
.lpml-recent-shell {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 3.25rem);
  z-index: 99990;
  pointer-events: none;
}
.lpml-recent-shell.has-items { pointer-events: auto; }
.lpml-recent-launcher {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(123,241,200,.24);
  border-radius: 999px;
  padding: .62rem .75rem .62rem .9rem;
  color: #eef5ff;
  background: linear-gradient(135deg, rgba(7,17,31,.94), rgba(16,31,54,.90));
  box-shadow: 0 18px 50px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  font-weight: 850;
  letter-spacing: .01em;
  cursor: pointer;
}
.lpml-recent-launcher strong {
  min-width: 1.45rem;
  height: 1.45rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #06111f;
  background: #7bf1c8;
  font-size: .78rem;
}
.lpml-recent-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + .7rem);
  width: min(380px, calc(100vw - 2rem));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(7, 17, 31, .96);
  box-shadow: 0 24px 70px rgba(0,0,0,.48), inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}
.lpml-recent-panel[hidden] { display: none !important; }
.lpml-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.lpml-recent-head strong,
.lpml-recent-head span { display: block; }
.lpml-recent-head span {
  margin-top: .15rem;
  color: var(--muted, #aab6c8);
  font-size: .78rem;
}
.lpml-recent-close {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #eef5ff;
  cursor: pointer;
  font-size: 1.15rem;
}
.lpml-recent-list {
  display: grid;
  gap: .55rem;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: .8rem;
}
.lpml-recent-item {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
  padding: .72rem .78rem;
  background: rgba(255,255,255,.035);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.lpml-recent-item:hover {
  transform: translateY(-1px);
  border-color: rgba(123,241,200,.28);
  background: rgba(123,241,200,.06);
}
.lpml-recent-type {
  display: inline-flex;
  width: fit-content;
  margin-bottom: .35rem;
  border: 1px solid rgba(123,241,200,.22);
  border-radius: 999px;
  padding: .15rem .45rem;
  color: #7bf1c8;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.lpml-recent-item strong {
  display: block;
  color: #f3f8ff;
  font-size: .95rem;
  line-height: 1.25;
}
.lpml-recent-item small {
  display: block;
  margin-top: .25rem;
  color: var(--muted, #aab6c8);
  font-size: .78rem;
  line-height: 1.35;
}
.lpml-recent-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 .8rem .8rem;
}
.lpml-recent-empty {
  margin: .25rem;
  color: var(--muted, #aab6c8);
  font-size: .86rem;
}
@media (max-width: 720px) {
  .lpml-recent-shell {
    right: .75rem;
    left: .75rem;
    bottom: calc(max(.75rem, env(safe-area-inset-bottom)) + 3rem);
    display: flex;
    justify-content: flex-end;
  }
  .lpml-recent-launcher { max-width: 100%; }
  .lpml-recent-panel {
    right: 0;
    left: auto;
    width: 100%;
  }
}
