/* ProfitPanda hub live alerts: Value bets (/hub/alerts/) and Arbitrage (/hub/arbitrage/). Joe 2026-11-03: "make this 10/10".
   DESIGN.md: canvas #08090B, hairlines only, Inter tabular figures, emerald only on profit numbers, white buttons,
   no pills, badges, rating bars, emoji or shadows. Odds rows copy the Oddsmatcher: one 14px top line and one
   11.5px #9CA3AF line per cell, prices as bold odds beside the 92x26 wordmark. */
:root {
  --la-canvas: #08090B; --la-ink: #F8FAFC; --la-prose: rgba(255,255,255,.82); --la-muted: rgba(255,255,255,.68);
  --la-sec: #94A3B8; --la-row2: #9CA3AF; --la-line: rgba(255,255,255,.08); --la-line-2: rgba(255,255,255,.14);
  --la-green: #10B981; --la-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
body.hub-v3-body { background: var(--la-canvas); color: var(--la-ink); font-family: var(--la-font); -webkit-font-smoothing: antialiased; margin: 0; min-height: 100vh; }
.la-main, .la-main * { box-sizing: border-box; }
.la-main [hidden] { display: none !important; }
.la-main { container: la / inline-size; padding: 28px 32px 72px; max-width: 1240px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.la-pos { color: var(--la-green); font-weight: 600; }
.la-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header */
.la-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; margin-bottom: 24px; }
.la-head h1 { font-family: "Space Grotesk", var(--la-font); font-size: 28px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 6px; }
.la-lede { margin: 0; max-width: 640px; font-size: 14px; line-height: 1.55; color: var(--la-muted); }
.la-tools { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.la-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--la-muted); white-space: nowrap; }
.la-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--la-ink); flex: none; }
.la-dot.off { background: #64748B; }
.la-ghost { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--la-line-2); background: transparent; color: var(--la-ink); font: 500 13px var(--la-font); cursor: pointer; text-decoration: none; }
.la-ghost:hover { border-color: rgba(255,255,255,.3); }
.la-ghost:disabled { opacity: .5; cursor: default; }
.la-cross { display: inline-flex; align-items: center; gap: 16px; }
.la-link { color: var(--la-ink); font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.la-link:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }

/* Stats strip */
.la-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--la-line); border-bottom: 1px solid var(--la-line); margin: 0 0 28px; }
.la-stat { min-width: 0; padding: 18px 20px; border-left: 1px solid var(--la-line); }
.la-stat:first-child { border-left: 0; padding-left: 0; }
.la-n { display: block; font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; color: var(--la-ink); white-space: nowrap; }
.la-n.la-pos { color: var(--la-green); }
.la-l { display: block; margin-top: 6px; font-size: 13px; color: var(--la-prose); }
.la-s { display: block; margin-top: 2px; font-size: 12px; color: var(--la-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-stat.skel .la-n { width: 56px; height: 33px; border-radius: 6px; background: rgba(255,255,255,.05); }

/* Charts */
.la-charts { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); margin: 0 0 30px; border-bottom: 1px solid var(--la-line); }
.la-chart { margin: 0; min-width: 0; padding: 0 28px 24px 0; }
.la-chart + .la-chart { padding: 0 0 24px 28px; border-left: 1px solid var(--la-line); }
.la-chart h2, .la-h2 { font-family: var(--la-font); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 0; color: var(--la-ink); }
.la-h2 span { color: var(--la-sec); font-weight: 500; margin-left: 4px; }
.la-cap { margin: 3px 0 14px; font-size: 12.5px; line-height: 1.45; color: var(--la-sec); }
.la-plot { position: relative; min-height: 200px; touch-action: pan-y; }
.la-plot svg { display: block; }
.la-plot text { font: 500 11px var(--la-font); fill: #94A3B8; font-feature-settings: "tnum"; }
.la-plot .g-grid { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.la-plot .g-base { stroke: rgba(255,255,255,.18); stroke-width: 1; }
.la-plot .g-day { stroke: rgba(255,255,255,.07); stroke-width: 1; stroke-dasharray: 2 3; }
.la-plot .g-stem { stroke: rgba(16,185,129,.45); stroke-width: 2; }
.la-plot .g-dot { fill: #10B981; }
.la-plot .g-ring { fill: #08090B; stroke: #10B981; stroke-width: 1.6; }
.la-plot .g-hi { fill: none; stroke: rgba(248,250,252,.6); stroke-width: 1.5; }
.la-tip { position: absolute; z-index: 3; pointer-events: none; width: max-content; max-width: 250px; padding: 9px 11px; border-radius: 8px; background: #0A0E15; border: 1px solid var(--la-line-2); font-size: 12px; line-height: 1.5; color: var(--la-prose); }
.la-tip b { color: var(--la-ink); font-weight: 600; }
.la-legend { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--la-sec); }
.la-legend span { display: inline-flex; align-items: center; gap: 7px; }
.la-legend i { width: 9px; height: 9px; border-radius: 50%; background: #10B981; }
.la-legend i.ring { background: transparent; box-shadow: inset 0 0 0 1.6px #10B981; }
.la-quiet { margin: 0; padding: 26px 0; font-size: 13px; color: var(--la-sec); }

/* Bookmaker bars: tap one to filter the list below */
.la-barsbox { min-height: 120px; }
.la-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.la-bars li { display: grid; grid-template-columns: 92px minmax(0, 1fr) 24px 92px; align-items: center; gap: 12px; padding: 4px 0; border-radius: 6px; cursor: pointer; transition: opacity .15s ease; }
.la-bars li:focus-visible { outline: 2px solid rgba(248,250,252,.7); outline-offset: 2px; }
.la-bars.has-sel li[aria-pressed="false"] { opacity: .42; }
.la-track { height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.la-fill { display: block; height: 100%; border-radius: 4px; background: rgba(248,250,252,.5); transition: background .15s ease; }
.la-bars li:hover .la-fill, .la-bars li[aria-pressed="true"] .la-fill { background: #F8FAFC; }
.la-bars .n { font-size: 13px; font-weight: 600; text-align: right; color: var(--la-ink); }
.la-bars .best { font-size: 12px; color: var(--la-sec); text-align: right; white-space: nowrap; }

/* Bookmaker and exchange marks: same 92x26 wordmarks as the Oddsmatcher (not links) */
.la-main .bk { display: inline-block; flex: none; width: 92px; height: 26px; padding: 0 6px; border-radius: 6px; overflow: hidden; vertical-align: middle; text-align: center; white-space: nowrap; text-overflow: ellipsis; font: 700 12px/26px var(--la-font); color: #fff; background: #2A2C31; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.la-main .bk-img { padding: 0; object-fit: cover; }

/* List */
.la-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 12px; }
.la-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.la-select { height: 34px; max-width: 100%; padding: 0 30px 0 11px; border-radius: 8px; border: 1px solid var(--la-line-2); background: var(--la-canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--la-ink); font: 500 13px var(--la-font); -webkit-appearance: none; appearance: none; cursor: pointer; }
.la-select:focus-visible, .la-ghost:focus-visible, .la-more:focus-visible, .la-bet:focus-visible, .la-link:focus-visible { outline: 2px solid rgba(248,250,252,.7); outline-offset: 2px; }
.la-cols, .la-line { display: grid; gap: 0 16px; align-items: center; }
.la-value .la-cols, .la-value .la-line { grid-template-columns: 64px minmax(0, 1.5fr) minmax(0, 1fr) 76px 150px 112px 108px; }
.la-arb .la-cols, .la-arb .la-line { grid-template-columns: 64px minmax(0, 1.2fr) 104px minmax(0, 1fr) minmax(0, 1fr) 150px 32px; }
.la-cols { padding: 0 0 9px; border-bottom: 1px solid var(--la-line); font-size: 12px; color: var(--la-sec); }
.la-rows { list-style: none; margin: 0; padding: 0; }
.la-row { border-bottom: 1px solid var(--la-line); }
.la-line { padding: 12px 0; cursor: pointer; }
.la-row.gone .la-line { opacity: .76; }
.la-row.flash { animation: la-flash 1.6s ease; }
@keyframes la-flash { 0% { background: rgba(255,255,255,.07); } 100% { background: transparent; } }
.la-main .c { min-width: 0; }
.la-main .c .l1 { display: block; line-height: 20px; font-size: 14px; font-weight: 600; color: var(--la-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-main .c .l2 { display: block; margin-top: 2px; line-height: 16px; font-size: 11.5px; font-weight: 500; color: var(--la-row2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-main .c-sel .l1 { font-weight: 400; }
.la-main .c-edge .l1, .la-main .c-ret .l1 { font-size: 15px; font-weight: 700; color: var(--la-green); }
.la-main .c-price .l1, .la-main .c-leg .l1 { display: flex; align-items: center; gap: 10px; height: 26px; line-height: 26px; overflow: visible; }
.la-main .odds { flex: none; min-width: 46px; font-size: 17px; font-weight: 700; color: var(--la-ink); }
.c-act { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.la-bet { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 8px; background: #F8FAFC; color: #08090B; font: 600 13px var(--la-font); text-decoration: none; white-space: nowrap; }
.la-bet:hover { background: #FFFFFF; }
.la-closed { font-size: 12.5px; color: var(--la-sec); white-space: nowrap; }
.la-more { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; padding: 0; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--la-sec); cursor: pointer; }
.la-more:hover { color: var(--la-ink); border-color: var(--la-line-2); }
.la-more svg { transition: transform .15s ease; }
.la-row.open .la-more svg { transform: rotate(180deg); }
.la-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 40px; padding: 2px 0 20px 80px; }
.la-detail h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--la-ink); }
.la-detail p, .la-detail li { margin: 0; font-size: 13px; line-height: 1.6; color: var(--la-prose); }
.la-detail p + p { margin-top: 6px; }
.la-detail ol { margin: 0; padding-left: 18px; }
.la-detail ol + p { margin-top: 6px; }
.la-detail a { color: var(--la-ink); text-underline-offset: 3px; }
.la-detail .la-note { color: var(--la-sec); }
.la-empty { padding: 24px 0; border-bottom: 1px solid var(--la-line); font-size: 13.5px; line-height: 1.55; color: var(--la-muted); }
.la-empty b { display: block; margin-bottom: 3px; color: var(--la-ink); font-size: 14.5px; font-weight: 600; }
.la-empty .la-ghost { margin-top: 12px; }
.la-sect { margin-top: 36px; }
.la-sect > .la-h2 { margin: 0 0 12px; }
.la-showall { margin-top: 14px; }
.la-skel { height: 64px; border-bottom: 1px solid var(--la-line); background: linear-gradient(90deg, transparent, rgba(255,255,255,.035), transparent); background-size: 200% 100%; animation: la-sh 1.2s linear infinite; }
@keyframes la-sh { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Shown only if the feed asks for a log-in (the beta is free, so there is no upgrade wall). */
.pp-gate { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
.pp-gate-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 8px; background: #F8FAFC; border: 1px solid #F8FAFC; color: #08090B; font: 600 14px var(--la-font); text-decoration: none; }
.pp-gate-btn:hover { background: #FFFFFF; border-color: #FFFFFF; }
.pp-gate-sub { color: #94A3B8; font-size: 13px; text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); }

@media (max-width: 900px) { .la-main { padding: 20px 16px 104px; } .la-head h1 { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .la-skel, .la-row.flash { animation: none; } .la-more svg, .la-bars li, .la-fill { transition: none; } }

@container la (max-width: 860px) {
  .la-charts { grid-template-columns: minmax(0, 1fr); }
  .la-chart { padding: 0 0 22px; }
  .la-chart + .la-chart { border-left: 0; padding: 22px 0; border-top: 1px solid var(--la-line); }
}
@container la (max-width: 640px) {
  .la-s { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
  .la-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .la-stat { padding: 14px 0 14px 14px; }
  .la-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .la-stat:nth-child(n+3) { border-top: 1px solid var(--la-line); }
  .la-n { font-size: 24px; }
  .la-bars li { grid-template-columns: 92px minmax(0, 1fr) 20px 80px; gap: 10px; }
  .la-detail { grid-template-columns: minmax(0, 1fr); }
}

/* Value rows become cards when the table no longer fits */
@container la (max-width: 880px) {
  .la-value .la-cols { display: none; }
  .la-value .la-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ko edge" "ev edge" "sel sel" "price act" "stake act"; gap: 2px 12px; padding: 14px 0; }
  .la-value .c-ko { grid-area: ko; } .la-value .c-ev { grid-area: ev; } .la-value .c-sel { grid-area: sel; }
  .la-value .c-price { grid-area: price; margin-top: 8px; } .la-value .c-edge { grid-area: edge; text-align: right; align-self: start; }
  .la-value .c-stake { grid-area: stake; } .la-value .c-act { grid-area: act; align-self: center; }
  .la-value .c-ko, .la-value .c-sel, .la-value .c-stake { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .la-value .c-ko .l1, .la-value .c-ko .l2, .la-value .c-sel .l1, .la-value .c-sel .l2, .la-value .c-stake .l1, .la-value .c-stake .l2 { display: inline; margin: 0; }
  .la-value .c-ko .l2::before, .la-value .c-sel .l2::before, .la-value .c-stake .l2::before { content: " · "; }
  .la-value .c-ko .l1, .la-value .c-ko .l2 { font-size: 12px; font-weight: 500; color: var(--la-sec); }
  .la-value .c-ev .l1 { font-size: 15px; line-height: 21px; white-space: normal; }
  .la-value .c-ev .l2 { display: none; }
  .la-value .c-sel .l1, .la-value .c-sel .l2 { font-size: 13.5px; color: var(--la-prose); }
  .la-value .c-edge .l1 { font-size: 17px; }
  .la-value .c-stake .l1, .la-value .c-stake .l2 { font-size: 12px; font-weight: 500; color: var(--la-row2); }
  .la-value .la-detail { padding-left: 0; }
}

/* Arb rows become cards when the table no longer fits */
@container la (max-width: 900px) {
  .la-arb .la-cols { display: none; }
  .la-arb .la-line { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ko ret" "ev ret" "leg1 leg1" "leg2 leg2" "st more"; gap: 2px 12px; padding: 14px 0; }
  .la-arb .c-ko { grid-area: ko; } .la-arb .c-ev { grid-area: ev; } .la-arb .c-ret { grid-area: ret; text-align: right; align-self: start; }
  .la-arb .c-leg1 { grid-area: leg1; } .la-arb .c-leg2 { grid-area: leg2; } .la-arb .c-st { grid-area: st; margin-top: 8px; } .la-arb .c-act { grid-area: more; margin-top: 8px; }
  .la-arb .c-ko, .la-arb .c-st { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .la-arb .c-ko .l1, .la-arb .c-ko .l2, .la-arb .c-st .l1, .la-arb .c-st .l2 { display: inline; margin: 0; font-size: 12px; font-weight: 500; color: var(--la-sec); }
  .la-arb .c-ko .l2::before, .la-arb .c-st .l2::before { content: " · "; }
  .la-arb .c-ev .l1 { font-size: 15px; line-height: 21px; white-space: normal; }
  .la-arb .c-ret .l1 { font-size: 17px; }
  .la-arb .c-leg { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
  .la-arb .c-leg .l1 { flex: none; }
  .la-arb .c-leg .l2 { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 12.5px; }
  .la-arb .la-detail { padding-left: 0; }
}
