/* Bobby Pariuri Inteligente — web theme v2 ("glass noir"): deep black, fluid glossy shapes, crimson / burgundy accents.
   Every colour comes from the tokens below; components only use var(--…). */

@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 900; font-display: swap;
    src: url("fonts/montserrat-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500 900; font-display: swap;
    src: url("fonts/montserrat-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
    /* backgrounds */
    --bg0: #080A0E; --bg1: #0B0E13; --bg-elev: #11151C;
    /* glass */
    --glass: rgba(17,21,28,.80); --glass-strong: rgba(17,21,28,.90); --glass-soft: rgba(255,255,255,.035);
    --glass-border: rgba(255,255,255,.08); --glass-border-strong: rgba(255,255,255,.14); --glass-highlight: rgba(255,255,255,.07);
    --blur: 18px;
    /* legacy surfaces (kept: still used by a few components) */
    --surface: #11151C; --surface2: #171C25; --surface3: #1F2531;
    --border: rgba(255,255,255,.08); --border-strong: rgba(255,255,255,.14); --graphite: #4A4A55;
    /* accent */
    --bordeaux: #9A3D00; --bordeaux-deep: #3A1700; --red: #FF6500; --red-bright: #FF8A00; --crimson-glow: rgba(255,101,0,.35);
    --accent-grad: linear-gradient(135deg, #FF8A00 0%, #E85A00 45%, #7A2E00 100%);
    --metal-grad: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 42%);
    /* text */
    --text: #F8F9FC; --text-2: #AAB1BD; --muted: #A3AAB6; --dim: #8A929F;
    /* states */
    --ok: #22C55E; --warn: #F59E0B; --err: #EF4444; --info: #8AB4F8;
    --ok-soft: rgba(34,197,94,.14); --warn-soft: rgba(245,158,11,.14); --err-soft: rgba(239,68,68,.14); --red-soft: rgba(255,101,0,.14); --info-soft: rgba(138,180,248,.12);
    /* shape */
    --radius: 16px; --radius-s: 10px; --radius-xs: 7px;
    --shadow: 0 10px 30px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.04) inset;
    --shadow-lift: 0 16px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(255,101,0,.18);
    --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px;
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --display: "Montserrat", var(--font);
    --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
    --ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; }
body { background: var(--bg0); min-height: 100vh; }
/* fluid glossy black shapes + crimson glints, behind everything (no image, no video) */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
body::before {
    background:
        radial-gradient(60vmax 38vmax at 88% -8%, rgba(255,101,0,.16), transparent 62%),
        radial-gradient(48vmax 30vmax at -6% 104%, rgba(150,58,0,.20), transparent 60%),
        radial-gradient(38vmax 22vmax at 62% 58%, rgba(255,255,255,.035), transparent 70%),
        radial-gradient(26vmax 14vmax at 18% 22%, rgba(255,255,255,.03), transparent 70%),
        linear-gradient(160deg, #0B0B0F 0%, #050507 55%, #08070A 100%);
}
body::after {
    background:
        radial-gradient(120% 60% at 70% 0%, transparent 58%, rgba(255,255,255,.035) 59%, transparent 61%),
        radial-gradient(90% 50% at 10% 100%, transparent 56%, rgba(255,101,0,.05) 57.5%, transparent 59.5%);
    filter: blur(1px);
}
a { color: var(--text); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--red-bright); }
h1 { font-family: var(--display); font-size: 1.7rem; margin: 0; font-weight: 800; letter-spacing: -.01em; }
h2 { font-family: var(--display); font-size: 1.05rem; margin: 0 0 .75rem; font-weight: 700; letter-spacing: .005em; }
h3 { font-size: 1rem; margin: 0 0 .5rem; font-weight: 600; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
h1:focus, h1:focus-visible { outline: none; }
::selection { background: rgba(255,101,0,.35); }
* { scrollbar-width: thin; scrollbar-color: #2A2A33 transparent; }

/* ---------- Layout ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, rgba(14,14,18,.82), rgba(8,8,11,.86)); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
    border-right: 1px solid var(--glass-border); display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }

/* brand lockup: transparent mark + Montserrat wordmark */
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 20px; }
a.brand { color: var(--text); text-decoration: none; cursor: pointer; border-radius: var(--radius-s); margin-bottom: 14px; transition: background .2s var(--ease); }
a.brand:hover { color: var(--text); background: var(--glass-soft); }
a.brand:hover .mark { filter: drop-shadow(0 0 10px var(--crimson-glow)); transform: rotate(-4deg); }
a.brand:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 4px; }
.brand .mark { width: 46px; height: 46px; flex: none; transition: transform .35s var(--ease), filter .35s var(--ease); filter: drop-shadow(0 4px 14px rgba(255,101,0,.25)); }
.brand .words { display: flex; flex-direction: column; line-height: 1; }
.brand .t1 { font-family: var(--display); font-weight: 900; font-size: 1.32rem; letter-spacing: .16em;
    background: linear-gradient(180deg, #FFFFFF 0%, #E9E9EE 55%, #BDBDC6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .t2 { font-family: var(--display); font-weight: 600; font-size: .56rem; letter-spacing: .26em; margin-top: 7px; color: var(--red-bright); white-space: nowrap; }
.brand .t2::before { content: ""; display: inline-block; width: 14px; height: 1px; background: var(--accent-grad); vertical-align: middle; margin: -2px 7px 0 0; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-family: var(--display); color: var(--dim); font-size: .62rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; padding: 14px 12px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s); color: var(--text-2); font-weight: 500;
    transition: background .18s var(--ease), color .18s var(--ease); }
.nav a:hover { background: var(--glass-soft); color: var(--text); }
.nav a.active { color: var(--text); background: linear-gradient(90deg, rgba(255,101,0,.18), rgba(150,58,0,.08) 60%, transparent); box-shadow: inset 0 0 0 1px rgba(255,101,0,.18); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent-grad); box-shadow: 0 0 12px var(--crimson-glow); }
.nav .ico { width: 20px; height: 20px; display: inline-grid; place-items: center; opacity: .85; flex: none; }
.nav .ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav a.active .ico { color: var(--red-bright); opacity: 1; }
.nav .live-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 0 var(--crimson-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,101,0,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,101,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,101,0,0); } }
.sidebar .spacer { flex: 1; min-height: 16px; }
.responsible { border: 1px solid var(--glass-border); border-radius: var(--radius-s); padding: 12px; font-size: .78rem; color: var(--muted); background: var(--glass-soft); }
.responsible b { display: block; color: var(--dim); font-size: .66rem; letter-spacing: .14em; margin-bottom: 4px; font-family: var(--display); }
.version { color: var(--dim); font-size: .72rem; padding: 10px 8px 0; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: rgba(8,8,11,.62); backdrop-filter: blur(var(--blur)) saturate(140%); -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
    border-bottom: 1px solid var(--glass-border); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,101,0,.45), transparent); }
.topbar .title { font-family: var(--display); font-weight: 700; letter-spacing: .14em; font-size: .78rem; color: var(--text-2); text-transform: uppercase; }
.topbar .title b { color: var(--text); font-weight: 900; }
.topbar .grow { flex: 1; }
.topbar .status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; padding: 6px 12px; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass-soft); }
.lang { display: inline-flex; border: 1px solid var(--glass-border-strong); border-radius: 999px; overflow: hidden; background: var(--glass-soft); }
.lang a { padding: 5px 12px; font-size: .76rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; }
.lang a.on { background: var(--accent-grad); color: #fff; }
.menu-btn { display: none; background: var(--glass-soft); border: 1px solid var(--glass-border-strong); color: var(--text); border-radius: 10px; padding: 7px 11px; font-size: 1rem; cursor: pointer; min-width: 40px; min-height: 40px; }
.top-brand { display: none; align-items: center; gap: 8px; color: var(--text); border-radius: var(--radius-s); }
.top-brand .mark { width: 32px; height: 32px; }
.top-brand span { font-family: var(--display); font-weight: 900; letter-spacing: .16em; font-size: .95rem; }
.top-brand:hover { color: var(--text); }
.page { padding: 28px; max-width: 1440px; width: 100%; animation: page-in .35s var(--ease); }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { background: linear-gradient(180deg, #FFFFFF, #CFCFD8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subtitle { color: var(--muted); margin-top: 6px; }

/* ---------- Components ---------- */
.card { position: relative; background: var(--glass); backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--metal-grad); opacity: .35; pointer-events: none; }
.card > * { position: relative; }
.card.accent { background: linear-gradient(135deg, rgba(120,44,0,.55) 0%, rgba(22,22,28,.6) 62%); border-color: rgba(255,101,0,.2); }
.card.warn { border-color: rgba(245,158,11,.35); }
.empty { color: var(--muted); text-align: center; padding: 34px 18px; }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 26px 16px; color: var(--muted); }
.empty-state .icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(255,101,0,.22), rgba(255,101,0,.04) 70%); border: 1px solid rgba(255,101,0,.25); color: var(--red-bright); }
.empty-state .icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty-state b { color: var(--text); font-family: var(--display); font-weight: 700; }
.grid { display: grid; gap: 16px; }
.grid > * { min-width: 0; }
.grid.tiles { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); }
.tile { overflow: hidden; }
.tile .label { color: var(--text-2); font-family: var(--display); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; display: flex; align-items: center; gap: 8px; }
.tile .label .ico { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; background: var(--red-soft); color: var(--red-bright); border: 1px solid rgba(255,101,0,.25); }
.tile .label .ico svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile .value { font-family: var(--display); font-size: 2.35rem; font-weight: 800; margin-top: 12px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile .hint { color: var(--dim); font-size: .8rem; margin-top: 2px; }
.tile::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(255,101,0,.16), transparent 70%); pointer-events: none; }
a.card.tile.link { display: block; color: var(--text); text-decoration: none; cursor: pointer; transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); }
a.card.tile.link:hover { color: var(--text); border-color: rgba(255,101,0,.3); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
a.card.tile.link:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { a.card.tile.link, .page, .nav .live-dot { transition: none; animation: none; } a.card.tile.link:hover { transform: none; } }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: .82rem; }
.mono { font-family: var(--mono); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; border: 1px solid transparent; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(34,197,94,.22); } .badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(245,158,11,.22); }
.badge.err { background: var(--err-soft); color: var(--err); border-color: rgba(239,68,68,.22); } .badge.info { background: var(--info-soft); color: var(--info); border-color: rgba(138,180,248,.2); }
.badge.red { background: var(--red-soft); color: #FF6B83; border-color: rgba(255,101,0,.22); } .badge.muted { background: rgba(255,255,255,.05); color: var(--muted); border-color: var(--glass-border); }
.badge.live { background: var(--accent-grad); color: #fff; box-shadow: 0 0 14px var(--crimson-glow); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--dim); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(34,197,94,.6); } .dot.warn { background: var(--warn); } .dot.err { background: var(--err); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--glass-border-strong); background: var(--glass-soft); color: var(--text); padding: 9px 16px; border-radius: var(--radius-s);
    font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; transition: background .18s var(--ease), box-shadow .18s var(--ease), transform .12s var(--ease); }
.btn:hover { background: rgba(255,255,255,.08); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent-grad); border-color: rgba(255,255,255,.08); color: #fff; box-shadow: 0 6px 20px rgba(255,101,0,.28), inset 0 1px 0 rgba(255,255,255,.2); font-family: var(--display); letter-spacing: .03em; }
.btn.primary:hover { box-shadow: 0 8px 26px rgba(255,101,0,.42), inset 0 1px 0 rgba(255,255,255,.25); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn[aria-busy=true]::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.disclaimer { border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.06); color: var(--warn); border-radius: var(--radius-s); padding: 10px 14px; font-weight: 600; font-size: .86rem; backdrop-filter: blur(8px); }

/* segmented control (period, filters) */
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid var(--glass-border); }
.seg button { border: 0; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; font-size: .8rem; letter-spacing: .05em; padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 36px; transition: background .2s var(--ease), color .2s var(--ease); font-family: var(--display); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--accent-grad); color: #fff; box-shadow: 0 4px 16px rgba(255,101,0,.3); }
.period-note { margin-top: 10px; font-size: .84rem; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.period-note b { color: var(--text); font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.toolbar .field { flex: 1 1 150px; }

/* Forms */
label { display: block; color: var(--text-2); font-size: .78rem; margin-bottom: 6px; font-weight: 600; letter-spacing: .02em; }
input[type=text], input[type=password], input[type=number], input[type=search], select {
    width: 100%; background: rgba(0,0,0,.35); color: var(--text); border: 1px solid var(--glass-border-strong); border-radius: var(--radius-s); padding: 10px 12px; font: inherit; min-height: 42px;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
select option { background: var(--bg-elev); }
input:focus, select:focus { border-color: rgba(255,101,0,.7); box-shadow: 0 0 0 3px rgba(255,101,0,.18); outline: none; }
.form-row { margin-bottom: 14px; }
.inline { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.inline > * { flex: 1 1 150px; }
.check { display: flex; gap: 8px; align-items: center; color: var(--text); }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.alert { border-radius: var(--radius-s); padding: 11px 14px; margin-bottom: 14px; font-size: .9rem; }
.alert.err { background: var(--err-soft); color: #FCA5A5; border: 1px solid rgba(239,68,68,.3); }
.alert.ok { background: var(--ok-soft); color: #86EFAC; border: 1px solid rgba(34,197,94,.3); }
.alert.info { background: var(--info-soft); color: var(--info); border: 1px solid rgba(138,180,248,.25); }
.alert.warn { background: var(--warn-soft); color: #FCD34D; border: 1px solid rgba(245,158,11,.3); }

/* Reconnect dialog */
.reconnect { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(5,5,7,.72); backdrop-filter: blur(6px); align-items: center; justify-content: center; padding: 16px; }
.reconnect.components-reconnect-show, .reconnect.components-reconnect-failed, .reconnect.components-reconnect-rejected { display: flex; }
.reconnect-box { background: var(--glass-strong); border: 1px solid var(--glass-border-strong); border-radius: var(--radius); padding: 22px; max-width: 420px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.reconnect-reload { display: none; }
.reconnect.components-reconnect-failed .reconnect-wait, .reconnect.components-reconnect-rejected .reconnect-wait { display: none; }
.reconnect.components-reconnect-failed .reconnect-reload, .reconnect.components-reconnect-rejected .reconnect-reload { display: block; }
/* 2.55: short interruption = transparent layer (taps blocked) + discreet pill; "no connection" line when the device is offline */
.reconnect-offline, .reconnect-pill { display: none; }
.reconnect.rc-offline .reconnect-offline { display: block; color: #FCD34D; }
.reconnect.rc-offline .reconnect-wait { display: none; }
.reconnect.rc-quiet { display: block; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.reconnect.rc-quiet .reconnect-box { display: none; }
.reconnect.rc-quiet .reconnect-pill { display: inline-flex; }
.reconnect-pill { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border-strong); box-shadow: var(--shadow); font-size: .8rem; color: var(--text); white-space: nowrap; }
.reconnect-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; animation: rc-pulse 1.2s ease-in-out infinite; }
.reconnect.rc-quiet.rc-offline .reconnect-pill .dot { background: #EF4444; animation: none; }
@keyframes rc-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .reconnect-pill .dot { animation: none; } }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-s); }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
th { text-align: left; color: var(--dim); font-weight: 700; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; padding: 10px 12px; border-bottom: 1px solid var(--glass-border); white-space: nowrap; font-family: var(--display); }
td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,.045); vertical-align: middle; }
tbody tr { transition: background .15s var(--ease); }
tr:hover td { background: rgba(255,255,255,.025); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.match-cell { font-weight: 600; }
.match-cell .vs { color: var(--dim); font-weight: 400; margin: 0 6px; }
.kick { display: inline-flex; flex-direction: column; line-height: 1.15; }
.kick .d { font-family: var(--display); font-weight: 700; font-size: .78rem; letter-spacing: .04em; }
.kick .t { color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Probability bars */
.prob { display: flex; flex-direction: column; gap: 4px; min-width: 64px; }
.prob .v { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .88rem; }
.prob .bar { height: 4px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.prob .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--bordeaux), var(--red-bright)); box-shadow: 0 0 8px var(--crimson-glow); }
.prob.top .v { color: #FF6B83; }
.meter { height: 6px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; min-width: 70px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--accent-grad); }
.meter.ok i { background: linear-gradient(90deg, #15803D, var(--ok)); }

.why { margin: 6px 0 0; padding-left: 18px; color: var(--muted); }
.why li { margin: 3px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .9rem; }
.kv .k { color: var(--muted); }
.match-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.match-hero .teams { font-family: var(--display); font-size: 1.5rem; font-weight: 800; }
.match-hero .teams .vs { color: var(--dim); font-weight: 400; margin: 0 10px; font-size: 1.1rem; }
details.market-group { border-top: 1px solid var(--glass-border); padding: 8px 0; }
details.market-group summary { cursor: pointer; padding: 6px 2px; list-style: none; }
details.market-group summary::-webkit-details-marker { display: none; }
details.market-group summary::before { content: "▸"; color: var(--red-bright); margin-right: 8px; display: inline-block; transition: transform .2s var(--ease); }
details.market-group[open] summary::before { transform: rotate(90deg); }
details.advanced { margin-top: 8px; }
details.advanced > summary { cursor: pointer; font-family: var(--display); font-weight: 700; letter-spacing: .08em; font-size: .78rem; text-transform: uppercase; color: var(--text-2); padding: 12px 0; list-style: none; }
details.advanced > summary::-webkit-details-marker { display: none; }
details.advanced > summary::after { content: " ▾"; color: var(--red-bright); }

/* KPI strip (backtest) and verdict */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 16px; backdrop-filter: blur(var(--blur)); -webkit-backdrop-filter: blur(var(--blur)); }
.kpi .k { color: var(--text-2); font-family: var(--display); font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kpi .v { font-family: var(--display); font-size: 1.6rem; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi .v.sm { font-size: .95rem; font-weight: 700; line-height: 1.35; }
.kpi .v.pos { color: var(--ok); } .kpi .v.neg { color: #FF6B83; }
.verdict { display: flex; gap: 16px; align-items: flex-start; }
.verdict .icon { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 1.4rem; background: var(--red-soft); border: 1px solid rgba(255,101,0,.25); }
.verdict.good .icon { background: var(--ok-soft); border-color: rgba(34,197,94,.3); }
.verdict.mid .icon { background: var(--warn-soft); border-color: rgba(245,158,11,.3); }
.verdict h2 { margin-bottom: 6px; }
.verdict p { margin: 4px 0; color: var(--text-2); }

/* Live — compact rows, left-aligned, flags; colours from the global tokens only */
.flag { width: 20px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.18); display: inline-block; vertical-align: -2px; }
.live-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--text-2); font-size: .84rem; }
.live-filters { padding: 14px 16px; }
.lf-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.lf-line .seg button { padding: 6px 13px; min-height: 32px; font-size: .74rem; white-space: nowrap; }
.lf-line .seg .count { opacity: .7; font-weight: 600; margin-left: 4px; font-variant-numeric: tabular-nums; }
.lf-line .check { font-size: .84rem; white-space: nowrap; }
.lf-search { max-width: 200px; min-height: 34px !important; padding: 6px 11px !important; margin-left: auto; flex: 0 1 200px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips.sub { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--glass-border); }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; min-height: 32px; border-radius: 999px; border: 1px solid var(--glass-border-strong); background: var(--glass-soft);
    color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
.chip:hover { color: var(--text); border-color: rgba(255,101,0,.45); }
.chip.on { color: #fff; background: rgba(255,101,0,.2); border-color: rgba(255,101,0,.6); }
.chip .count { font-size: .7rem; color: var(--dim); font-variant-numeric: tabular-nums; }
.chip.on .count { color: #FFD08A; }
.live-board { padding: 6px 0 8px; }
.live-group { margin: 0; }
.live-group + .live-group { margin-top: 4px; }
.live-group h3 { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px 5px; font-family: var(--display); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--text-2); font-weight: 700; }
.live-group h3 .lg-country { color: var(--text); }
.live-group h3 .lg-sep { color: var(--dim); }
.live-group h3 .lg-comp { color: var(--text-2); }
.live-group h3 .lg-tracked { font-size: .58rem; padding: 1px 7px; margin-left: 4px; letter-spacing: .08em; }
.live-row { display: grid; grid-template-columns: 46px minmax(110px, 240px) 56px minmax(110px, 240px) 1fr; align-items: center; gap: 10px;
    padding: 5px 16px; min-height: 34px; border-top: 1px solid rgba(255,255,255,.045); font-size: .9rem; transition: background .12s var(--ease); }
.live-row:hover { background: rgba(255,255,255,.03); }
.live-row .min { font-family: var(--display); font-weight: 800; font-size: .78rem; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-row.is-live .min { color: #FF6B83; }
.live-row .team { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-row .score { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-family: var(--display); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums;
    padding: 2px 8px; border-radius: 7px; background: rgba(0,0,0,.4); border: 1px solid var(--glass-border); }
.live-row .score i { font-style: normal; color: var(--dim); font-weight: 600; }
.live-row .st { justify-self: end; }
.live-row .badge { padding: 2px 8px; font-size: .62rem; }
/* News — text left, the article's own picture right (compact, lazy) */
.news-card { display: grid; grid-template-columns: minmax(0,1fr) 168px; gap: 16px; align-items: start; padding: 14px 16px; margin-bottom: 10px; }
.news-tags { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.news-title { display: block; font-weight: 700; font-size: 1rem; line-height: 1.32; }
.news-summary { margin: 5px 0 0; color: var(--text-2); font-size: .86rem; line-height: 1.45; }
.news-meta { margin-top: 7px; font-size: .78rem; color: var(--dim); display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; }
.news-meta b { color: var(--text-2); font-weight: 600; }
.news-sources { flex-basis: 100%; margin-top: 4px; }
.news-sources summary { cursor: pointer; color: var(--info); font-weight: 600; list-style: none; }
.news-sources summary::-webkit-details-marker { display: none; }
.news-sources ul { margin: 6px 0 0; padding-left: 16px; }
.news-img { width: 168px; height: 104px; border-radius: 10px; overflow: hidden; display: block; background: rgba(255,255,255,.04); border: 1px solid var(--glass-border); }
.news-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.04); }
.news-img.noimg { display: grid; place-items: center; color: var(--dim); background: radial-gradient(circle at 30% 20%, rgba(255,101,0,.12), rgba(255,255,255,.02) 70%); }
.news-img.noimg svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; opacity: .7; }
@media (max-width: 640px) {
    .news-card { grid-template-columns: 1fr; }
    .news-img { width: 100%; height: 160px; order: -1; }
    .news-img.noimg { display: none; }
}

/* Leagues */
.league-pick { min-width: 260px; }
.league-pick select { font-weight: 600; background-image: linear-gradient(45deg, transparent 50%, var(--red-bright) 50%), linear-gradient(135deg, var(--red-bright) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; appearance: none; -webkit-appearance: none; padding-right: 36px; }
select:hover, input:hover { border-color: rgba(255,255,255,.22); }
optgroup { color: var(--text-2); background: var(--bg-elev); font-style: normal; font-weight: 700; }   /* UI PREMIUM 01: readable group rows (was --dim) */
select option { color: var(--text); }
tr.standing .pos { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 8px; font-family: var(--display); font-weight: 800; font-size: .82rem; color: var(--text-2); background: rgba(255,255,255,.04); }
tr.standing.top .pos { color: #fff; background: var(--accent-grad); box-shadow: 0 0 12px rgba(255,101,0,.25); }
tr.standing.bottom .pos { color: #FCA5A5; background: rgba(239,68,68,.1); }
tr.standing.top td:first-child { box-shadow: inset 2px 0 0 rgba(255,101,0,.7); }
.pts { font-family: var(--display); font-weight: 800; font-size: 1rem; }
.gd-pos { color: #4ADE80; font-weight: 600; } .gd-neg { color: #FF6B83; font-weight: 600; }
.form { display: inline-flex; gap: 4px; }
.form i { font-style: normal; width: 20px; height: 20px; border-radius: 6px; display: inline-grid; place-items: center; font-size: .66rem; font-weight: 800; font-family: var(--display); }
.form .f-W { background: var(--ok-soft); color: var(--ok); } .form .f-D { background: rgba(255,255,255,.07); color: var(--text-2); } .form .f-L { background: var(--err-soft); color: #FF6B83; }
.row-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; font-weight: 400; }

/* collapsible card (history refresh log) */
details.card.advanced > summary { margin: -4px 0; }
details.card.advanced[open] > summary { margin-bottom: 10px; }

/* small inline icons */
.live-meta svg, .live-group h3 svg, .period-note svg, .ico-inline svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* skeleton */
.skeleton { border-radius: var(--radius-s); background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04)); background-size: 200% 100%; animation: shimmer 1.4s infinite; min-height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.auth .card { width: 100%; max-width: 420px; }
.auth .brand { justify-content: center; padding-bottom: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .page { padding: 22px; } }
@media (max-width: 960px) {
    .shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--ease); z-index: 30; }
    .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.6); }
    .menu-btn { display: inline-block; }
    .top-brand { display: inline-flex; }
    .topbar { padding: 10px 16px; gap: 10px; }
    .topbar .status.hide-s { display: none; }
    .page { padding: 16px; }
    .grid.two { grid-template-columns: 1fr; }
    h1 { font-size: 1.4rem; }
    .hide-s { display: none; }
    .live-row { grid-template-columns: 44px minmax(0,1fr) 54px minmax(0,1fr) auto; gap: 8px; padding: 5px 12px; }
    .lf-search { margin-left: 0; max-width: none; flex: 1 1 100%; }
}
@media (max-width: 520px) {
    .tile .value { font-size: 1.8rem; }
    td, th { padding: 9px 7px; }
    .match-hero .teams { font-size: 1.15rem; }
    .grid.two { grid-template-columns: 1fr; }
    .grid.tiles { grid-template-columns: 1fr 1fr; }
    /* phone: two lines — minute + status on the left, teams stacked with their goals */
    .live-row { grid-template-columns: 40px minmax(0,1fr) auto; grid-template-areas: "min home sh" "st away sa"; row-gap: 1px; padding: 6px 12px; font-size: .86rem; }
    .live-row .min { grid-area: min; } .live-row .home { grid-area: home; } .live-row .away { grid-area: away; }
    .live-row .score { display: contents; } .live-row .score i { display: none; }
    .live-row .score b:first-child { grid-area: sh; justify-self: end; } .live-row .score b:last-child { grid-area: sa; justify-self: end; }
    .live-row .st { grid-area: st; justify-self: start; } .live-row .st .badge { font-size: .54rem; padding: 1px 5px; }
    .live-group h3 { padding: 9px 12px 5px; }
    .live-row { padding: 4px 12px; line-height: 1.22; }
    .lf-line { gap: 8px; }
    .lf-line .seg { width: 100%; }
    .lf-line .seg button { flex: 1; padding: 6px 6px; font-size: .66rem; letter-spacing: .02em; }
    .lf-line .seg .count { display: none; }
    .chip { padding: 4px 9px; min-height: 30px; font-size: .76rem; }
    .seg { width: 100%; } .seg button { flex: 1; padding: 8px 10px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .card, .sidebar, .topbar, .kpi { background: #121216; }
}

/* ---------- Printed offer (/oferta) ---------- */
.lf-line .of-market { display: inline-flex; align-items: center; gap: 8px; }
.lf-line .of-market select { min-width: 240px; }
.offer-table td.of-odd { font-variant-numeric: tabular-nums; font-weight: 700; }
.of-teams { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.of-teams .vs { color: var(--dim); margin: 0 2px; }
.of-teams .side { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.of-unclear { font-size: .6rem; letter-spacing: .06em; padding: 1px 6px; }
.of-match { padding: 10px 16px 14px; border-top: 1px solid var(--glass-border); }
.of-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.of-teams-lg { font-size: .95rem; }
.om-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.om-block { border: 1px solid var(--glass-border); border-radius: 10px; padding: 7px 9px; background: var(--glass-soft); min-width: 0; }
.om-block h4 { margin: 0 0 6px; font-family: var(--display); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); font-weight: 700; }
.om-vals { display: flex; flex-wrap: wrap; gap: 5px; }
.om-val { display: inline-flex; flex-direction: column; align-items: center; min-width: 46px; padding: 3px 6px; border-radius: 8px; background: rgba(0,0,0,.28); }
.om-val small { color: var(--dim); font-size: .64rem; white-space: nowrap; }
.om-val b { font-variant-numeric: tabular-nums; font-size: .86rem; }
.offer-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.offer-banner span { flex: 1 1 200px; }
.chips-hint { align-self: center; margin-left: 4px; }
@media (max-width: 640px) {
    .lf-line .of-market { width: 100%; } .lf-line .of-market select { min-width: 0; flex: 1; }
    .of-match { padding: 10px 12px 12px; }
    .offer-table .of-teams { flex-direction: column; align-items: flex-start; gap: 3px; } .offer-table .of-teams .vs { display: none; }
    .om-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) { .om-grid { grid-template-columns: 1fr; } }

/* ticket count stepper (/tickets) */
.stepper { display: flex; align-items: stretch; gap: 6px; }
.stepper input[type=number] { text-align: center; min-width: 0; flex: 1; -moz-appearance: textfield; }
.stepper input[type=number]::-webkit-inner-spin-button, .stepper input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .step { flex: 0 0 40px; min-height: 40px; border-radius: 10px; border: 1px solid var(--glass-border-strong); background: var(--glass-soft); color: var(--text); font: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.stepper .step:hover:not(:disabled) { border-color: rgba(255,101,0,.55); color: #fff; }
.stepper .step:disabled { opacity: .4; cursor: default; }

/* ticket cards: long selection lines wrap instead of being cut */
.ticket-table { table-layout: fixed; width: 100%; }
/* 2.51: a word breaks only when it alone does not fit (was overflow-wrap:anywhere — on an iPhone the team names came out letter by letter) */
.ticket-table td, .ticket-table th { white-space: normal; overflow-wrap: break-word; word-break: normal; }
.ticket-table td:first-child, .ticket-table th:first-child { width: 38%; }
.ticket-table .badge { white-space: normal; }
/* 2.51: the team names are plain wrapping text, not a shrinkable inline-flex box */
.ticket-table .match-cell .st-link { display: inline; padding: 0; margin: 0; line-height: 1.35; text-align: left; }
.ticket-table .match-cell .st-link svg { vertical-align: -2px; margin-left: 4px; }
.ticket-table .match-cell .vs { margin: 0 4px; }
.ticket-table .tk-odds-state { margin-left: 6px; vertical-align: 1px; }
@media (max-width: 640px) {
    /* 2.51: on phones every selection is a vertical card — the match on the full width, then market / odds / probability, then the explanations */
    .ticket-table, .ticket-table tbody, .ticket-table tr, .ticket-table td { display: block; width: 100%; }
    .ticket-table thead { display: none; }
    .ticket-table td:first-child { width: 100%; padding: 12px 2px 4px; border-bottom: 0; font-size: 1rem; }
    .ticket-table td + td { padding: 4px 2px 12px; }
    .ticket-table tr + tr td:first-child { border-top: 1px solid rgba(255,255,255,.08); }
}

/* ticket JPEG export (/tickets) */
.tk-export { margin-top: 12px; display: flex; justify-content: flex-end; }
.tk-jpeg { display: inline-flex; align-items: center; gap: 8px; }
.tk-jpeg svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-jpeg.busy { opacity: .6; pointer-events: none; }
.tk-export-preview { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,.82); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tk-export-box { background: var(--bg-elev); border: 1px solid var(--glass-border-strong); border-radius: var(--radius); padding: 14px; max-width: 560px; width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 10px; }
.tk-export-box img { width: 100%; height: auto; min-height: 0; flex: 1 1 auto; object-fit: contain; border-radius: var(--radius-s); -webkit-touch-callout: default; }
.tk-export-box p { margin: 0; color: var(--text-2); }
.tk-export-bar { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 640px) { .tk-export { justify-content: stretch; } .tk-jpeg { width: 100%; justify-content: center; } }

/* WhatsApp sharing (/tickets), UI stage — test mode; same tokens as the rest of the page */
.tk-export { gap: 8px; flex-wrap: wrap; }
.tk-wa { font-family: var(--display); font-size: .78rem; letter-spacing: .04em; border-color: rgba(255,101,0,.45); }
.tk-wa:hover { border-color: rgba(255,101,0,.75); box-shadow: 0 0 0 3px rgba(255,101,0,.12); }
.tk-wa svg, #wa-contacts svg, .wa-modal .btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
@media (max-width: 640px) { .tk-wa { width: 100%; } #wa-contacts { width: 100%; } }
html.wa-lock, html.wa-lock body { overflow: hidden; }
/* owner mode: locked tools (🔒) for everyone else, same palette */
.tk-owner-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.tk-owner-bar svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.btn.locked { color: var(--muted); border-color: var(--glass-border-strong); }
.btn.locked:hover { color: var(--text); border-color: rgba(255,101,0,.55); }
.ow-box { max-width: 520px; }
.ow-box.ow-panel { max-width: 720px; }
.ow-box h2 { display: flex; align-items: center; gap: 8px; }
.ow-box h2 svg, .wa-owner svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wa-owner svg { width: 12px; height: 12px; }
.ow-box h3 { margin: 4px 0 0; }
.ow-form { display: flex; flex-direction: column; gap: 12px; }
.ow-text { margin: 0; color: var(--text-2); }
.ow-remember { min-height: 40px; cursor: pointer; }
.ow-remember input { width: 20px; height: 20px; accent-color: var(--red); }
.ow-form .alert { margin: 0; }
.ow-device .wa-who { gap: 2px; }
.ow-device .small { white-space: normal; }
@media (max-width: 640px) { .tk-owner-bar { width: 100%; } .tk-owner-bar .btn { flex: 1 1 0; } }
.wa-modal { position: fixed; inset: 0; z-index: 1500; background: rgba(5,5,7,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center; padding: 16px; }
.wa-box { width: 100%; max-width: 960px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    background: linear-gradient(180deg, rgba(150,58,0,.10), rgba(16,16,20,0) 140px), var(--bg-elev); border: 1px solid var(--glass-border-strong); border-radius: var(--radius);
    box-shadow: var(--shadow-lift); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.wa-head { display: flex; align-items: center; gap: 10px; }
.wa-head h2 { margin: 0; flex: 1 1 auto; font-size: 1.2rem; }
.wa-x { font-size: 1.5rem; line-height: 1; min-width: 44px; min-height: 44px; padding: 0; }
.wa-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; min-width: 0; }
.wa-body.single { grid-template-columns: minmax(0, 1fr); }
.wa-ticket, .wa-contacts { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.wa-summary { background: var(--glass-soft); border: 1px solid var(--glass-border); border-radius: var(--radius-s); padding: 10px 12px; }
.wa-jpeg { position: relative; border: 1px solid var(--glass-border); border-radius: var(--radius-s); background: rgba(0,0,0,.35); max-height: 300px; overflow: auto;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 80px; padding: 6px; }
.wa-jpeg img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: var(--radius-xs); }
.wa-jpeg img.loading { display: none; }
.wa-msg { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: var(--font); font-size: .86rem; line-height: 1.45; color: var(--text);
    background: rgba(0,0,0,.35); border: 1px solid var(--glass-border); border-left: 3px solid var(--red); border-radius: var(--radius-s); padding: 10px 12px; }
.wa-tools { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.wa-tools .wa-search { flex: 1 1 200px; min-width: 0; }
.wa-select-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--glass-border); padding-bottom: 6px; }
.wa-select-bar .check, .wa-pick-label { min-height: 40px; cursor: pointer; }
.wa-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.wa-contact { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid var(--glass-border); border-radius: var(--radius-s); background: var(--glass-soft); }
.wa-contact.off { opacity: .6; }
.wa-contact .wa-pick-label { flex: 1 1 auto; min-width: 0; margin: 0; }
.wa-contact input[type=checkbox], .wa-select-bar input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--red); }
.wa-who { display: flex; flex-direction: column; min-width: 0; }
.wa-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; color: var(--text); }
.wa-num { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wa-actions { display: flex; gap: 2px; flex: 0 0 auto; align-items: center; }
.wa-actions .btn { min-height: 40px; padding: 6px 10px; font-size: .78rem; }
.wa-actions .wa-edit, .wa-actions .wa-del { min-width: 40px; padding: 6px; }
.wa-del-yes { border-color: rgba(239,68,68,.5); color: #FCA5A5; }
.wa-count { margin: 0; font-weight: 700; font-family: var(--display); color: var(--text); }
.wa-empty { text-align: center; padding: 10px 0; }
.wa-empty p { margin: 0 0 8px; }
.wa-form { border: 1px solid rgba(255,101,0,.35); border-radius: var(--radius-s); background: rgba(255,101,0,.05); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.wa-form h3 { margin: 0; }
.wa-form-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) 90px minmax(0, 1.6fr); gap: 10px; }
.wa-form-grid .wa-f-notes { grid-column: 1 / -1; }
.wa-form-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.wa-form .alert { margin: 0; }
.wa-form-bar, .wa-foot-bar { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.wa-foot { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--glass-border); padding-top: 12px; }
.wa-foot p { margin: 0; }
.wa-foot-bar .btn, .wa-form-bar .btn { min-height: 44px; }
.wa-status { margin: 0; }
.wa-results { margin: 0; padding-left: 18px; }
.wa-results li.ok { color: var(--ok); } .wa-results li.err { color: #FCA5A5; }
.wa-confirm { margin: 0; }
@media (max-width: 760px) {
    .wa-modal { padding: 0; align-items: stretch; }
    .wa-box { max-width: 100%; max-height: 100vh; max-height: 100dvh; border-radius: 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
    .wa-body { grid-template-columns: minmax(0, 1fr); }
    .wa-jpeg { max-height: 220px; }
    .wa-list { max-height: 45vh; }
    .wa-form-grid { grid-template-columns: 84px minmax(0, 1fr); }
    .wa-form-grid .wa-f-name { grid-column: 1 / -1; }
    .wa-form-bar .btn { flex: 1 1 0; }
    .wa-foot-bar { flex-direction: column-reverse; }
    .wa-foot-bar .btn { width: 100%; white-space: nowrap; }
    .wa-actions .wa-toggle { font-size: .72rem; padding: 6px 8px; }
}
/* date picker (/tickets): premium calendar, same palette */
.seg button.open { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,101,0,.7); }   /* calendar open, nothing applied yet */
#p-dates svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -2px; margin-right: 6px; }
.cal { margin-top: 12px; max-width: 400px; padding: 14px; border-radius: var(--radius); border: 1px solid var(--glass-border-strong); background: var(--bg-elev);
       box-shadow: var(--shadow-lift); animation: cal-in .18s var(--ease, ease-out); }
@keyframes cal-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cal-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.cal-quick .chip { min-height: 30px; padding: 4px 12px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-month { font-family: var(--display); font-size: .95rem; letter-spacing: .02em; }
.cal-nav { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--glass-border-strong); background: var(--glass-soft); color: var(--text); font-size: 1.2rem; line-height: 1; cursor: pointer; }
.cal-nav:hover:not(:disabled) { border-color: rgba(255,101,0,.55); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-dn { text-align: center; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 4px 0 6px; font-weight: 700; }
.cal-day { position: relative; aspect-ratio: 1 / 1; min-height: 38px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text);
           font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s; }
.cal-day:hover:not(:disabled) { border-color: rgba(255,101,0,.5); }
.cal-day:disabled { color: var(--graphite); cursor: default; }
.cal-day.we:not(:disabled) { color: #FFD08A; }
.cal-day.today { border-color: var(--glass-border-strong); }
.cal-day.in { background: rgba(255,101,0,.16); border-radius: 6px; }
.cal-day.start, .cal-day.end { background: var(--accent-grad); color: #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(255,101,0,.3); }
.cal-day .dot { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); }
.dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--dim); opacity: .7; }
.dot.odds { background: var(--ok); opacity: 1; }
.cal-day.start .dot, .cal-day.end .dot { background: #fff; }
.cal-legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 2px 0; }
.cal-legend .dot { margin-right: 6px; vertical-align: 1px; }
.cal-sel { margin: 10px 2px 0; font-weight: 600; color: var(--text); }
.cal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
@media (max-width: 640px) {
    .cal { max-width: none; padding: 12px; }
    .cal-day { min-height: 0; font-size: .86rem; }
    .cal-actions .btn { flex: 1; }
}
#blazor-error-ui { background: var(--err); color: #fff; bottom: 0; display: none; left: 0; padding: .6rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ---------- LAB1 (08.10.2026): dashboard window, signal explanation, history curve, section labels (existing palette only) ---------- */
.dash-window-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.dash-window-head h2 { margin: 0; }
.dash-window { display: flex; align-items: center; gap: 8px; margin: 0; }
.dash-window select { min-height: 34px; padding: 4px 10px; }
.dash-window-table { max-height: 560px; overflow-y: auto; }
.sg-explain summary { cursor: pointer; }
.sg-defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 10px 0 4px; }
.sg-defs > div { background: var(--glass-soft); border: 1px solid var(--glass-border); border-radius: var(--radius-s); padding: 10px 12px; }
.sg-defs p { margin: 6px 0 0; color: var(--text-2); }
.section-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; margin: 18px 0 8px; }
.section-label .badge { letter-spacing: .08em; }
.hi-curve { margin: 0 0 12px; }
.hi-curve svg { width: 100%; height: 60px; display: block; }
.hi-curve .axis { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.hi-curve polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.hi-curve polyline.pos { stroke: var(--ok); }
.hi-curve polyline.neg { stroke: var(--err); }
.hi-meta { margin-top: 3px; }
@media (max-width: 600px) {
  .dash-window-head { align-items: flex-start; }
  .dash-window { width: 100%; justify-content: space-between; }
  .sg-defs { grid-template-columns: 1fr; }
}
.dash-stack { display: flex; flex-direction: column; gap: 16px; }
.dash-stack > .card { margin: 0; }

/* LABORATOR 6: competition filter — wraps on narrow screens (no horizontal scroll) */
.comp-filter .seg { flex-wrap: wrap; max-width: 100%; border-radius: 18px; }

/* POST-LAB7: reference odds (last real price, not current) — visibly different from a current total */
.warn-text { color: var(--warn, #F5B942); }
.tk-ref-total { color: var(--warn, #F5B942); }
.ref-odds { color: var(--text-2); font-style: italic; }

/* 2.19.0 — Bobby's recommended tickets: emerald glass button (the site palette is unchanged; emerald only marks this feature) */
.btn-reco { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; cursor: pointer; font-weight: 700; letter-spacing: .02em;
    color: #A7F3D0; background: linear-gradient(135deg, rgba(16,185,129,.16), rgba(5,150,105,.08)); border: 1px solid rgba(52,211,153,.38);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 6px 22px rgba(16,185,129,.12);
    transition: background .2s, border-color .2s, box-shadow .2s, transform .15s; font-family: var(--display); }
.btn-reco:hover { background: linear-gradient(135deg, rgba(16,185,129,.26), rgba(5,150,105,.14)); border-color: rgba(52,211,153,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 8px 28px rgba(16,185,129,.22); }
.btn-reco:focus-visible { outline: 2px solid #34D399; outline-offset: 3px; }
.btn-reco[aria-pressed="true"] { background: linear-gradient(135deg, rgba(16,185,129,.32), rgba(5,150,105,.18)); border-color: #34D399; color: #ECFDF5; }
.reco-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 16px; }
.reco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.reco-card { border-color: rgba(52,211,153,.18); }
.reco-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; margin-bottom: 8px; }
.reco-target { font-family: var(--display); font-size: 1.15rem; }
.reco-legs { width: 100%; border-collapse: collapse; }
.reco-legs td { padding: 6px 4px; border-top: 1px solid var(--glass-border); vertical-align: top; }
.reco-legs td.st { width: 34px; }
/* pick status: V (won) / X (lost) / clock (open) / void — symbol + accessible text, never colour alone */
.res-dot { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: .8rem; font-weight: 800; line-height: 1; border: 1.5px solid; }
.res-dot.won { color: #4ADE80; background: rgba(34,197,94,.16); border-color: rgba(74,222,128,.8); }
.res-dot.lost { color: #F87171; background: rgba(239,68,68,.16); border-color: rgba(248,113,113,.8); }
.res-dot.open { color: var(--text-2); background: rgba(255,255,255,.04); border-color: var(--glass-border); }
.res-dot.void { color: var(--info); background: var(--info-soft); border-color: rgba(138,180,248,.5); }
.res-dot.prov { color: var(--warn); background: var(--warn-soft); border-color: rgba(245,158,11,.5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 640px) { .reco-grid { grid-template-columns: 1fr; } .btn-reco { width: 100%; justify-content: center; } .reco-legs .hide-s { display: none; } }
/* 2.23 — "Performance Memory" page (/performance): local styles only, site palette unchanged (emerald marks the recommended-ticket feature) */
.pm .pm-discreet { margin-top: 4px; }
.pm-section { margin-bottom: 16px; }
.pm-section h2 { margin-top: 0; }
.pm-kpis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.pm-kpis .kpi { min-width: 0; overflow-wrap: anywhere; }
.pm-demo { border: 1px solid rgba(138,180,248,.4); background: var(--info-soft); color: var(--info); border-radius: var(--radius-s); padding: 10px 14px; font-weight: 700; margin-bottom: 16px; }
.pm-note { border: 1px solid rgba(52,211,153,.28); background: rgba(16,185,129,.08); color: #A7F3D0; border-radius: var(--radius-s); padding: 10px 14px; font-weight: 600; margin-bottom: 16px; }
.pm-alert { border: 1px solid rgba(239,68,68,.4); background: var(--err-soft); color: #FCA5A5; border-radius: var(--radius-s); padding: 12px 14px; font-weight: 600; margin-bottom: 16px; }
.pm-insufficient { border: 1px solid rgba(245,158,11,.3); background: rgba(245,158,11,.06); color: var(--warn); border-radius: var(--radius-s); padding: 8px 12px; font-size: .86rem; margin: 10px 0 0; }
.pm-tag { display: inline-block; border: 1px solid rgba(245,158,11,.35); color: var(--warn); border-radius: 999px; padding: 1px 8px; font-size: .72rem; font-weight: 700; }
.pm-line { margin: 8px 0 0; }
.pm-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.pm-scroll:focus-visible { outline: 2px solid #34D399; outline-offset: 2px; }
.pm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .88rem; }
.pm-table th, .pm-table td { padding: 7px 8px; border-top: 1px solid var(--glass-border); text-align: right; white-space: nowrap; }
.pm-table th:first-child, .pm-table td:first-child { text-align: left; }
.pm-table thead th { color: var(--text-2); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-top: 0; }
.pm-chart { display: block; width: 100%; max-width: 560px; margin: 4px auto 0; }
.pm-chart text { fill: var(--text-2); font-size: 11px; }
.pm-chart .frame { fill: none; stroke: var(--glass-border); }
.pm-chart .diag { stroke: rgba(255,255,255,.28); stroke-dasharray: 4 4; }
.pm-chart .ci { stroke: #34D399; stroke-width: 2; }
.pm-chart .pt { fill: #34D399; }
.pm-chart .band { fill: rgba(52,211,153,.12); }
.pm-chart .exp { fill: none; stroke: rgba(255,255,255,.5); stroke-dasharray: 4 4; }
.pm-chart .won { fill: none; stroke: #34D399; stroke-width: 2; }
.pm-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.pm-groups ul { margin: 6px 0 0 18px; padding: 0; }
.pm-method { margin: 0 0 8px 18px; padding: 0; }
.pm-method li { margin: 4px 0; }
.pm-state { font-weight: 700; }
.pm-st-won { color: var(--ok); } .pm-st-lost { color: #FF6B83; } .pm-st-open { color: var(--text-2); }
.pm-st-void, .pm-st-unvalidated { color: var(--warn); } .pm-st-invalid { color: var(--err); }
.pm-link-row { margin-top: 10px; }
@media (max-width: 640px) { .pm-kpis { grid-template-columns: 1fr 1fr; } .pm-table { font-size: .82rem; } }
.pm-table thead th { white-space: normal; vertical-align: bottom; min-width: 64px; }
.pm-table tbody th { font-size: inherit; font-weight: 700; color: var(--text); letter-spacing: 0; text-transform: none; }
.pm-table td.wrap { white-space: normal; min-width: 150px; text-align: left; }
/* 2.24 — odds transparency of the recommended tickets (local styles only, site palette unchanged; calm tones, no alarm colours) */
.ot-box { margin: 8px 0 4px; padding: 10px 12px; border: 1px solid var(--glass-border); border-radius: var(--radius-s); background: rgba(255,255,255,.025); }
.ot-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ot-chip { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--glass-border); border-radius: 999px; padding: 3px 10px; font-size: .78rem; font-weight: 600; color: var(--text-2); background: rgba(255,255,255,.03); }
.ot-chip.ot-total { border-color: rgba(52,211,153,.35); background: rgba(16,185,129,.10); color: #D1FAE5; }
.ot-chip.ot-total .k { font-weight: 600; color: #A7F3D0; }
.ot-chip.ot-total b { font-size: .92rem; color: var(--text); font-variant-numeric: tabular-nums; }
.ot-chip.ot-multi, .ot-chip.ot-same { color: var(--text-2); }
.ot-chip.ot-nodata { color: var(--warn); border-color: rgba(245,158,11,.3); }
.ot-chip.ot-unconf { color: var(--muted); border-style: dashed; }
.ot-chip.ot-ex { color: var(--info); border-color: rgba(138,180,248,.35); background: var(--info-soft); }
.ot-time { margin-top: 6px; }
.ot-stale { color: var(--warn); }
.ot-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid rgba(138,180,248,.35); border-radius: 999px; color: var(--info); font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.ot-details { margin-top: 6px; }
.ot-details > summary { cursor: pointer; color: var(--text-2); font-size: .82rem; font-weight: 600; }
.ot-details > summary:focus-visible { outline: 2px solid #34D399; outline-offset: 2px; border-radius: 4px; }
.ot-details p { margin: 6px 0 0; }
.ot-ex-note { color: var(--info); }
.ot-started { color: var(--warn); margin: 4px 0 6px; overflow-wrap: break-word; }   /* 2.25.1: matches already kicked off in the latest view */
.ot-ops { margin: 4px 0 0 18px; padding: 0; }
.ot-scroll { overflow-x: auto; max-width: 100%; margin-top: 4px; }
.ot-scroll:focus-visible { outline: 2px solid #34D399; outline-offset: 2px; }
.ot-table { width: 100%; border-collapse: collapse; font-size: .8rem; font-variant-numeric: tabular-nums; }
.ot-table th, .ot-table td { padding: 5px 6px; border-top: 1px solid var(--glass-border); text-align: right; white-space: nowrap; }
.ot-table th:first-child { text-align: left; font-weight: 600; color: var(--text); }
.ot-table thead th { color: var(--text-2); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; border-top: 0; white-space: normal; }
.ot-table tr.ot-full td { color: #A7F3D0; }
/* 2.24.1: the comparison table fits the ticket card — the observation time may wrap, tighter cells (no hidden column on desktop) */
.ot-table th, .ot-table td { padding: 5px 4px; }
.ot-table td:last-child { white-space: normal; min-width: 84px; }
.ot-table thead th:nth-child(3) { min-width: 70px; }
/* 2.25 — the two moments of the odds comparison (local styles; site palette unchanged) */
.ot-switch { display: inline-flex; gap: 4px; margin-top: 10px; padding: 3px; border: 1px solid var(--glass-border); border-radius: 999px; background: rgba(255,255,255,.03); flex-wrap: wrap; }
.ot-tab { background: transparent; color: var(--text-2); border: 0; border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 700; cursor: pointer; }
.ot-tab[aria-pressed="true"] { background: rgba(16,185,129,.18); color: #ECFDF5; box-shadow: inset 0 0 0 1px rgba(52,211,153,.45); }
.ot-tab:focus-visible { outline: 2px solid #34D399; outline-offset: 2px; }
.ot-sub { margin-top: 8px; }
.ot-kind { font-size: .7rem; color: var(--muted); white-space: normal; }
.ot-table tr.ot-k-completerecent td b, .ot-table tr.ot-k-completerecent .ot-kind { color: #A7F3D0; }
.ot-table tr.ot-k-completestale .ot-kind { color: var(--warn); }
.ot-table td:nth-child(2) { white-space: normal; min-width: 74px; }
.ot-moments { margin-top: 10px; }
.ot-mt td, .ot-mt th { text-align: right; }
.ot-mt th:first-child { text-align: left; }
.ot-table tbody th[scope="row"] { white-space: normal; overflow-wrap: break-word; word-break: normal; min-width: 0; text-transform: none; letter-spacing: 0; font-size: .8rem; }
.ot-table tbody th[scope="row"] .ot-tag { display: inline-block; margin: 2px 0 0; }
.ot-table td:last-child { min-width: 76px; }

/* STANLEYBET_LAB (internal lab pages, existing palette only) */
.sb-page .sb-comp h3 { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; }
.sb-event { border-top: 1px solid var(--glass-border); }
.sb-event:first-of-type { border-top: 0; }
.sb-sum { all: unset; box-sizing: border-box; width: 100%; cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 8px 2px; color: var(--text); }
.sb-sum:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: var(--radius-s); }
.sb-sum .sb-teams { font-weight: 600; overflow-wrap: anywhere; }
.sb-sum .sb-code { min-width: 3.5em; }
.sb-event.open { padding-bottom: 8px; }
.sb-table { width: 100%; border-collapse: collapse; }
.sb-table th, .sb-table td { padding: 5px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--glass-border); }
.sb-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.sb-sel { min-width: 760px; }
.sb-ambiguous td { color: var(--warn); }
.sb-missing th, .sb-missing td { color: var(--dim); }
.sb-prov { margin: 8px 0 0; overflow-wrap: anywhere; }
.sb-check { display: flex; gap: 6px; align-items: center; }

/* UI PREMIUM 01 — league selector (LeaguePicker): select-only combobox, flags, readable rows (Bobby palette, no new theme) */
.league-pick { position: relative; }
.lp { position: relative; }
.lp-btn { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 8px 38px 8px 12px; position: relative; text-align: left; cursor: pointer;
    background: rgba(0,0,0,.35); color: var(--text); border: 1px solid var(--glass-border-strong); border-radius: var(--radius-s); font: inherit;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease); }
.lp-btn:hover { border-color: rgba(255,255,255,.22); }
.lp-btn:focus-visible, .lp-btn[aria-expanded="true"] { border-color: rgba(255,101,0,.7); box-shadow: 0 0 0 3px rgba(255,101,0,.18); outline: none; }
.lp-val { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.lp-btn .lp-name { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-btn .lp-country { font-size: .74rem; color: var(--text-2); }
.lp-caret { position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--red-bright); border-bottom: 2px solid var(--red-bright); transform: rotate(45deg); transition: transform .18s var(--ease); }
.lp-btn[aria-expanded="true"] .lp-caret { transform: rotate(-135deg); margin-top: -2px; }
.lp-backdrop { position: fixed; inset: 0; z-index: 1190; background: transparent; }
.lp-list { position: absolute; z-index: 1200; top: calc(100% + 6px); right: 0; left: 0; min-width: 260px; max-width: calc(100vw - 32px); max-height: min(62vh, 440px);
    overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 6px; list-style: none; background: var(--bg-elev); border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-s); box-shadow: var(--shadow-lift); }
.lp-group { display: flex; align-items: center; gap: 8px; padding: 10px 10px 4px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.lp-group:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--glass-border); }
.lp-opt { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 10px 8px 14px; border-radius: var(--radius-xs); color: var(--text); cursor: pointer; }
.lp-opt .lp-name { font-weight: 600; }
.lp-opt.active { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.lp-opt.sel { background: var(--red-soft); box-shadow: inset 2px 0 0 var(--red-bright); }
.lp-opt.sel.active { background: rgba(255,101,0,.22); }
.lp-check { margin-left: auto; color: var(--red-bright); font-weight: 800; }
@media (max-width: 640px) { .league-pick { min-width: 0; width: 100%; } .lp-list { max-height: 60vh; } .lp-opt { min-height: 44px; } }

/* UI PREMIUM 01 — league table from a ticket match (StandingsDialog / StandingsTable) */
.st-link { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; margin: -2px -4px; background: none; border: 0; border-radius: var(--radius-xs); color: inherit; font: inherit;
    text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(255,255,255,.18); text-underline-offset: 3px; }
.st-link:hover { color: #fff; text-decoration-color: var(--red-bright); background: rgba(255,255,255,.04); }
.st-link:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
.st-link svg { width: 14px; height: 14px; flex: none; opacity: .55; stroke: currentColor; fill: none; stroke-width: 2; }
.st-box { max-width: 880px; }
.st-section + .st-section { margin-top: 18px; }
.st-section h3 { margin: 0 0 4px; }
.st-missing { color: var(--warn); margin: 0 0 10px; }
.st-hl-table { border-collapse: separate; border-spacing: 0 3px; }
tr.standing.st-hl td { background: linear-gradient(180deg, rgba(255,255,255,.115), rgba(255,255,255,.075)); color: var(--text);
    border-top: 1px solid rgba(255,255,255,.22); border-bottom: 1px solid rgba(255,255,255,.22); }
tr.standing.st-hl td:first-child { border-left: 1px solid rgba(255,255,255,.22); border-radius: 10px 0 0 10px; box-shadow: none; }
tr.standing.st-hl td:last-child { border-right: 1px solid rgba(255,255,255,.22); border-radius: 0 10px 10px 0; }
tr.standing.st-hl .match-cell { font-weight: 800; }
tr.standing.st-hl .pos { color: #fff; background: rgba(255,255,255,.18); box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
tr.standing.st-hl.top .pos { background: var(--accent-grad); box-shadow: 0 0 0 1px rgba(255,255,255,.35), 0 0 12px rgba(255,101,0,.3); }
tr.standing.st-hl .pts { display: inline-grid; place-items: center; min-width: 36px; height: 30px; padding: 0 6px; border-radius: 8px; font-size: 1.2rem; color: #fff;
    background: rgba(255,101,0,.22); box-shadow: 0 0 0 1px rgba(255,101,0,.55); }
.st-tag { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .03em; vertical-align: 1px;
    color: var(--text-2); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); }
tr.standing.st-hl[data-side="home"] .st-tag { color: #fff; }
@media (max-width: 640px) {
    /* 2.27 P6: on phones the last column (form) is hidden, so the outline / rounding goes on the points cell */
    tr.standing.st-hl td:nth-last-child(2) { border-right: 1px solid rgba(255,255,255,.22); border-radius: 0 10px 10px 0; }
    .st-box .table-wrap table { font-size: .84rem; }
    .st-box .match-cell { white-space: normal; word-break: break-word; }
    .st-tag { display: block; width: max-content; margin: 3px 0 0; }
}

/* 2.33 — /matches: kind of probability per row + detail panel with the printed Stanleybet markets (same palette, glass style) */
.prob.mkt .v { color: var(--muted); font-weight: 500; font-style: italic; }
.prob.mkt .bar i { background: rgba(138,180,248,.35); box-shadow: none; }
.mm-matches tr.mm-main.open td { background: rgba(255,255,255,.03); }
.mm-col { width: 44px; text-align: center; }
.mm-btn { background: var(--glass-soft); border: 1px solid var(--glass-border-strong); color: var(--text); border-radius: 10px; min-width: 36px; min-height: 36px; cursor: pointer; font-size: .9rem; }
.mm-btn:hover, .mm-btn.on { background: var(--accent-grad); color: #fff; border-color: rgba(255,255,255,.08); }
.mm-row > td { padding: 0 6px 14px; border-bottom: 1px solid var(--glass-border); }
.table-wrap:has(> .mm-matches) { container-type: inline-size; }
.mm-panel { position: sticky; left: 0; box-sizing: border-box; width: calc(100cqw - 12px); max-width: calc(100cqw - 12px); background: var(--glass-strong); border: 1px solid var(--glass-border-strong); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.mm-head { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; justify-content: space-between; }
.mm-k { color: var(--dim); font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--display); margin-bottom: 6px; }
.mm-trio { display: flex; gap: 10px; flex-wrap: wrap; }
.mm-cell { display: flex; flex-direction: column; gap: 2px; min-width: 76px; padding: 8px 12px; border-radius: var(--radius-s); background: var(--glass-soft); border: 1px solid var(--glass-border); }
.mm-cell .mm-lbl { color: var(--dim); font-size: .7rem; }
.mm-cell b { font-variant-numeric: tabular-nums; font-size: 1rem; }
.mm-mkt { color: var(--muted); font-size: .72rem; font-style: italic; }
.mm-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.mm-why { margin: 10px 0 0; }
.mm-title { margin: 16px 0 8px; font-size: .9rem; }
.mm-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.mm-fam { flex-wrap: wrap; border-radius: 14px; }
.mm-fam button { font-size: .75rem; white-space: nowrap; }
.mm-n { opacity: .65; font-size: .68rem; margin-left: 2px; }
.mm-search { max-width: 260px; min-height: 36px; padding: 6px 10px; }
.mm-scroll { max-height: 420px; overflow-y: auto; }
.mm-table td { vertical-align: top; }
.mm-odds { font-variant-numeric: tabular-nums; }
.mm-reason { max-width: 340px; white-space: normal; margin-top: 3px; }
.mm-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
@media (max-width: 640px) {
    .mm-panel { padding: 12px; }
    .mm-row > td { padding: 0 0 12px; }
    .mm-fam { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
    .mm-meta { font-size: .72rem; }
    .mm-search { max-width: 100%; flex: 1 1 100%; }
    .mm-cell { min-width: 64px; padding: 6px 8px; }
    .mm-reason { max-width: 220px; }
    .mm-scroll { max-height: 60vh; }
}
/* 2.35 — provenance of the odds column (best price of other bookmakers vs Stanleybet's printed price), comparison summary */
.mx-src { color: var(--dim); font-size: .66rem; margin-top: 2px; white-space: nowrap; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.mx-sb { color: var(--muted); font-size: .7rem; margin-top: 2px; white-space: nowrap; }
.mm-pick { margin: 8px 0 4px; }

/* 2.52 — installable app (PWA) / iPhone notch: safe areas. env() is 0 without a notch, so every value below equals the existing one there
   (desktop 12/28 px, ≤ 960 px 10/16 px): only a notched screen in landscape / standalone gets more room. */
@media (min-width: 961px) {
    .topbar { padding-top: max(12px, env(safe-area-inset-top)); padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
    .page { padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); padding-left: max(28px, env(safe-area-inset-left)); padding-right: max(28px, env(safe-area-inset-right)); }
}
@media (max-width: 960px) {
    .topbar { padding-top: max(10px, env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .page { padding-bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
    .sidebar { padding-top: max(18px, env(safe-area-inset-top)); padding-bottom: max(18px, env(safe-area-inset-bottom)); padding-left: max(14px, env(safe-area-inset-left)); }
}
#blazor-error-ui { padding-bottom: max(.6rem, env(safe-area-inset-bottom)); }
/* touch: comfortable targets on phones (buttons / steppers / checkboxes of the forms) */
@media (pointer: coarse) {
    .btn, .step, .lang a, .menu-btn { min-height: 44px; }
    .stepper .step { min-width: 44px; }
    input[type=checkbox] { width: 20px; height: 20px; }
}
/* iPhone (Safari / app on the Home Screen) only — -webkit-touch-callout exists on iOS only, so desktop and Android are unchanged:
   fields ≥ 16 px (iOS zooms the page into any smaller field), no text inflation in landscape, no grey tap flash */
@supports (-webkit-touch-callout: none) {
    html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
    a, button, input, select, label, summary { -webkit-tap-highlight-color: transparent; }
    @media (max-width: 960px) {
        input[type=text], input[type=password], input[type=number], input[type=search], select, textarea { font-size: 16px; }
    }
}
/* 2.53 — WebKit (Safari and Chrome on iPhone, both WebKit) drew native white selects with invisible light text: every single-choice select
   gets the dark field + crimson chevron the league selector already had (same look in every browser) */
select:not([multiple]) { -webkit-appearance: none; appearance: none; background-color: rgba(0,0,0,.35); color: var(--text); padding-right: 36px;
    background-image: linear-gradient(45deg, transparent 50%, var(--red-bright) 50%), linear-gradient(135deg, var(--red-bright) 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
/* 2.54 — the open mobile menu closes on a tap beside it (the dimming stays the sidebar's own shadow) */
.menu-backdrop { display: none; }
@media (max-width: 960px) { .menu-backdrop { display: block; position: fixed; inset: 0; z-index: 29; background: transparent; -webkit-tap-highlight-color: transparent; } }

/* 2.56 — Bobby Bet Builder (/bet-builder): match list + sticky ticket on desktop, one column on phones */
.bb .pos { color: #4ADE80; } .bb .neg { color: #FF6B83; } .bb .ok-text { color: #86EFAC; } .bb .warn-text { color: #FCD34D; }
.bb-status { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; } .bb-note { color: var(--warn); }
.bb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.bb-col-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
.bb-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 12px; }
.bb-filters .field { min-width: 180px; flex: 1 1 180px; }
.bb-check { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.bb-match { margin-bottom: 10px; padding: 0; overflow: hidden; }
.bb-mhead { width: 100%; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "time teams badge" "time comp badge"; gap: 2px 12px; align-items: center;
  background: transparent; border: 0; color: inherit; font: inherit; text-align: left; padding: 14px 16px; cursor: pointer; min-height: 56px; }
.bb-mhead:hover { background: rgba(255,255,255,.03); }
.bb-time { grid-area: time; font-family: var(--display); font-weight: 700; font-size: .8rem; color: var(--text-2); white-space: nowrap; }
.bb-teams { grid-area: teams; overflow-wrap: break-word; word-break: normal; hyphens: manual; } .bb-comp { grid-area: comp; } .bb-mhead .badge { grid-area: badge; }
.bb-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; padding: 0 16px 12px; }
.bb-var { border: 1px solid var(--glass-border); border-radius: var(--radius-s); padding: 12px; background: rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 6px; }
.bb-var.value { border-color: rgba(34,197,94,.45); box-shadow: 0 0 0 1px rgba(34,197,94,.12) inset; }
.bb-var.exp { opacity: .9; border-style: dashed; }
.bb-var-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; } .bb-vn { font-family: var(--display); font-weight: 800; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.bb-sel { overflow-wrap: break-word; }
.bb-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: .85rem; color: var(--text-2); } .bb-nums b { color: var(--text); }
.bb-odds { font-size: 1.05rem; } .bb-why { margin: 0; color: var(--text-2); } .bb-src { font-size: .72rem; }
.bb-add { margin-top: auto; min-height: 40px; }
.bb-all-btn { margin: 0 16px 12px; } .bb-match .ot-scroll { padding: 0 16px 14px; } .bb-novar { padding: 0 16px 14px; margin: 0; }
.bb-add-sm { min-height: 36px; min-width: 40px; padding: 4px 10px; }
.bb-h2 { font-size: 1rem; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; justify-content: space-between; }
.bb-legs { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bb-leg { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: .88rem; }
.bb-leg span { overflow-wrap: anywhere; }
.bb-rm { background: transparent; border: 1px solid var(--glass-border); color: var(--text-2); border-radius: 8px; min-width: 36px; min-height: 36px; cursor: pointer; }
.bb-joint { margin-top: 6px; color: var(--text-2); }
.bb-stake { max-width: 160px; }
.bb-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 10px 0; } .bb-sum dt { color: var(--text-2); } .bb-sum dd { margin: 0; text-align: right; font-weight: 700; }
.bb-verdict { padding: 10px 12px; border-radius: var(--radius-s); margin-bottom: 8px; font-size: .88rem; }
.bb-verdict.recommended { background: var(--ok-soft); color: #86EFAC; } .bb-verdict.notrecommended { background: var(--warn-soft); color: #FCD34D; } .bb-verdict.invalid { background: var(--err-soft); color: #FCA5A5; }
.bb-notes { padding-left: 18px; margin: 0 0 10px; display: flex; flex-direction: column; gap: 4px; }
.bb-rt { border-top: 1px solid var(--glass-border); padding: 10px 0; } .bb-rt ul { margin: 6px 0; padding-left: 18px; }
.bb-loading { display: flex; gap: 12px; align-items: center; }
.bb-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--accent, #FF8A00); animation: bb-spin .8s linear infinite; }
@keyframes bb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bb-spin { animation: none; } }
@media (max-width: 1100px) { .bb-grid { grid-template-columns: 1fr; } .bb-col-side { position: static; } }
@media (max-width: 560px) { .bb-variants { grid-template-columns: 1fr; padding: 0 12px 12px; } .bb-mhead { padding: 12px; grid-template-columns: 1fr auto; grid-template-areas: "time badge" "teams teams" "comp comp"; } }
/* 2.56b — expandable explanation + source; nominal vs conservative EV stay distinct */
.bb-details { margin: 0; } .bb-details > summary { cursor: pointer; font-size: .8rem; color: var(--text-2); padding: 6px 0; min-height: 32px; list-style: none; } .bb-details > summary::before { content: "▸ "; } .bb-details[open] > summary::before { content: "▾ "; }
.bb-details p { margin: 4px 0; }

/* TASK 276 — general ticket builder (/constructor) */
.mb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); gap: 16px; align-items: start; }
.mb-h { font-size: 1.05rem; margin: 0 0 10px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.mb-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
.mb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mb-match { border: 1px solid var(--glass-border); border-radius: 12px; overflow: hidden; }
.mb-match.on { border-color: rgba(34,197,94,.35); }
.mb-match-head { width: 100%; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; justify-content: space-between; text-align: left; background: transparent; border: 0; color: inherit; padding: 10px 12px; cursor: pointer; font: inherit; }
.mb-teams { flex: 1 1 220px; }
.mb-markets { padding: 4px 12px 12px; display: grid; gap: 10px; }
.mb-market-name { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.mb-prices { display: flex; flex-wrap: wrap; gap: 6px; }
.mb-price { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--glass-border); background: rgba(255,255,255,.04); color: inherit; cursor: pointer; font: inherit; }
.mb-price:hover, .mb-price:focus-visible { border-color: var(--crimson, #FF8A00); }
.mb-price.mb-flagged { border-style: dashed; }
.mb-odds { font-weight: 800; font-size: 1rem; }
.mb-op { font-size: .75rem; color: var(--muted); }
.mb-own { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 6px; }
.mb-ticket { position: sticky; top: 12px; }
.mb-legs { margin: 0 0 10px; padding-left: 18px; display: grid; gap: 10px; }
.mb-leg-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.mb-leg-pick { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin: 4px 0; }
.mb-leg-odds { width: 88px; text-align: right; font-weight: 800; }
.mb-x { padding: 4px 8px; min-height: 0; height: 32px; width: 36px; flex: 0 0 auto; }
.mb-x svg { width: 16px; height: 16px; }
.mb-actions .btn { white-space: nowrap; }
.mb-totals { display: grid; gap: 6px; margin: 8px 0; }
.mb-total { display: flex; justify-content: space-between; font-size: 1rem; }
.mb-total b { font-size: 1.15rem; }
.mb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
@media (max-width: 900px) {
  .mb-grid { grid-template-columns: 1fr; }
  .mb-ticket { position: static; }
  .mb-filters { grid-template-columns: 1fr; }
  .mb-own { grid-template-columns: 1fr; }
}

/* TASK 285 — Istoric: one compact card per complete ticket, details on demand */
.th-kpis { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.th-kpis .kpi .v { font-size: 1.35rem; }
.th-filters { margin-bottom: 14px; flex-wrap: wrap; gap: 12px; }
.th-list { display: flex; flex-direction: column; gap: 10px; }
details.th-ticket { padding: 14px 16px; }
details.th-ticket > summary { list-style: none; cursor: pointer; }
details.th-ticket > summary::-webkit-details-marker { display: none; }
details.th-ticket[open] { border-color: rgba(255,101,0,.45); }
.th-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.th-ref { font-family: var(--display); font-weight: 800; letter-spacing: .02em; margin-right: auto; }
.th-meta { margin-top: 4px; }
.th-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.th-nums > span { display: flex; flex-direction: column; min-width: 0; }
.th-nums .k { color: var(--text-2); font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.th-nums b { font-variant-numeric: tabular-nums; }
.th-nums b.pos { color: var(--ok); } .th-nums b.neg { color: #FF6B83; }
.th-legs { margin-top: 6px; }
.th-legs td.pos { color: var(--ok); } .th-legs td.neg { color: #FF6B83; }
.th-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .th-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); } details.th-ticket { padding: 12px; }
  .th-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .th-kpis .kpi { padding: 10px; } .th-kpis .kpi .v { font-size: 1.05rem; margin-top: 4px; } .th-kpis .kpi .small { display: none; } }

/* TASK 286 — Bet Builder for every visitor: the owner's choices on one row, ticket facts, conditions in Istoric */
.ho-row2 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ho-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 4px; color: var(--text-2); }
.ho-facts b { color: var(--text); font-variant-numeric: tabular-nums; }
.ho-proof { margin: 4px 0 10px; }
.hb-pricenote { margin: 6px 0 0; }
.th-conds { margin: 0; padding: 0; list-style: none; }
.th-conds .hb-pick { padding: 2px 0 8px 22px; } .th-conds .hb-pick:last-child { padding-bottom: 2px; } .th-conds .hb-dot { top: 6px; }
.tk-bb-link { text-decoration: none; }
@media (max-width: 720px) { .ho-row2 { grid-template-columns: 1fr; } }
.th-why { color: var(--text-2); font-size: .78rem; margin-top: 3px; line-height: 1.3; }
