/* Kopīgs minimālisma dizains publiskajām lapām. */
:root {
  --navy: #1e408a;
  --blue: #2860d8;
  --sky: #e8effd;
  --bg: #efefef;
  --paper: #ffffff;
  --ink: #152c4b;
  --mute: #52637b;
  --line: #d8e0ed;
  --ok: #116b49;
  --okbg: #dcf5e8;
  --bad: #be2941;
  --badbg: #fce7eb;
  --warn: #805000;
  --warnbg: #fff1d6;
  --surface-blue: #f0f4fd;
  --surface-selected: #dfe9ff;
  --on-navy: #dce7ff;
  --r: 14px;
  --sh: none;
}
html{background:var(--bg)}
body.pub,body.stats-page{background:var(--bg);color:var(--ink);min-height:100vh;padding-bottom:calc(88px + env(safe-area-inset-bottom,0px));font-family:Inter,system-ui,sans-serif}
.pub-header{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--line);backdrop-filter:none!important}
.pub-header .top-in{max-width:1180px;margin:auto;padding:12px 24px;display:flex;gap:12px;align-items:center}
.pub-header .logo-img{width:34px;height:34px;border-radius:8px;object-fit:cover}
.pub-header .brand{font:700 18px/1.2 Inter,system-ui,sans-serif;letter-spacing:-.04em;white-space:nowrap}
.appsw{display:flex;margin-left:auto;gap:4px;padding:3px;background:var(--bg);border-radius:10px}
.appsw a{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:0 12px;color:var(--mute);font-size:13px;font-weight:600;text-decoration:none;border-radius:7px;white-space:nowrap}
.appsw a[aria-current=page]{background:#fff;color:var(--blue);box-shadow:0 1px 3px #17243514}
.pub-header [data-language-control]{height:40px;max-width:84px;padding:0 8px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:13px}
.ic{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.pub h1,body.pub h2,body.pub h3,#stats h1,#stats h2,#stats h3{font-family:Inter,system-ui,sans-serif;font-weight:700;letter-spacing:-.035em}
body.pub main{max-width:1180px;padding:20px 24px 32px;gap:20px}
body.pub .pub-t{margin:28px auto 0;padding:0 24px;max-width:1180px}
body.pub .pub-t>div{padding:0;background:none;color:var(--ink);border:0;border-radius:0}
body.pub .pub-t>div::before{display:none}
body.pub .pub-t h1{font-size:30px;line-height:1.25}
body.pub .pub-t p{color:var(--mute);margin-top:10px;line-height:1.6}
body.pub .card,body.pub .tbl,body.pub .queue,#stats .card,#stats .tile,#stats .pd{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:none}
body.pub .card,#stats .card{padding:20px}
body.pub .card h2,#stats h2{font-size:19px}
body.pub .btn,#stats .btn{background:var(--blue);color:#fff;border:1px solid transparent;box-shadow:none;border-radius:9px;min-height:44px;gap:8px}
body.pub .btn.ghost,#stats .btn.ghost{background:#fff;color:var(--navy);border-color:var(--line)}
body.pub .btn:hover,#stats .btn:hover{filter:brightness(.96)}
body.pub input:not([type=checkbox]),body.pub select,#stats input[type=search],#stats select{background:#fff;border:1px solid #ccd5e0;box-shadow:none;border-radius:9px;font-size:16px;min-height:44px}
body.pub .tag{border-radius:6px;box-shadow:none}
body.pub .tag.live,body.pub .pub-t .tag.live{animation:none;background:#e8f5ee;color:#187449;font-size:12px}
body.pub .pub-t .tag.live::before{background:currentColor}
body.pub .me-card .who{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:12px}
body.pub .me-card .who>span{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.pub .lnk{display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--blue);font-size:13px}
body.pub .me-card .now{background:var(--navy);border-radius:10px;padding:22px;animation:none;gap:8px}
body.pub .me-card .now::after{display:none}
body.pub .me-card .now b{font:700 44px/1.1 Inter,system-ui,sans-serif;letter-spacing:-.05em}
body.pub .me-card .now .call-label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:#dce9fb}
body.pub .me-card .next{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:16px;color:var(--ink);gap:8px}
body.pub .next b{display:flex;gap:8px;align-items:center}
body.pub .next span{color:var(--mute);line-height:1.6}
body.pub .myres{margin-top:8px}.rrow b{font-variant-numeric:tabular-nums}
body.pub .me-card.pick{max-height:none;display:grid;grid-template-columns:1fr;gap:12px}
body.pub .pick-list{max-height:240px;overflow:auto}.pick-b{min-height:44px!important;border-radius:8px!important}
body.pub .pick-b:hover{background:var(--sky)}
body.pub .hall{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body.pub .tbl{padding:16px;border-top:1px solid var(--line)}
body.pub .tbl.mine{border:2px solid var(--blue);box-shadow:none}
body.pub .tbl-h b{font-size:18px}.tbl-h{flex-wrap:wrap}
body.pub .court{background:var(--bg);color:var(--ink);border-radius:8px;grid-template-columns:1fr;grid-template-rows:1fr 1fr;min-height:106px;box-shadow:none;margin-top:12px}
body.pub .court::before,body.pub .court::after{display:none}
body.pub .court .court-player{font-size:16px;padding:10px 12px}
body.pub .court small{color:var(--mute);font-size:13px}
body.pub .court .court-player+ .court-player{border-top:1px solid var(--line)}
body.pub .court.idle{grid-template-rows:1fr;background:#fafbfc;color:var(--mute)}
body.pub .table-state{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--mute);margin-top:12px}
body.pub .table-state.playing{color:#187449}.table-state.mine{color:var(--blue);font-weight:600}
body.pub .table-state .ic{width:15px;height:15px}
body.pub .tm{background:#fff;border:1px solid var(--line);font-size:12px;color:var(--mute)}
body.pub nav.tabs.pubtabs,#stats .st-tabs{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:40;display:flex;margin:0;width:auto;max-width:none;background:#fff;border:0;border-top:1px solid var(--line);border-radius:0;box-shadow:none;backdrop-filter:none;padding:6px 12px calc(6px + env(safe-area-inset-bottom,0px));gap:4px;overflow-x:auto;scrollbar-width:thin}
body.pub .pubtabs button,#stats .st-tabs a{flex:1 0 auto;min-width:66px;min-height:56px;border-radius:8px;padding:6px 10px;color:var(--mute);font-size:12px;font-weight:500;transform:none}
body.pub .pubtabs button[aria-pressed=true],#stats .st-tabs a[aria-current=page]{background:var(--sky);color:var(--blue);box-shadow:none}
body.pub .pubtabs button[aria-pressed=true]::before{display:none}
body.pub .pubtabs .ic,#stats .st-tabs .ic{width:21px;height:21px;transform:none!important}
body.pub .xwrap,#stats .xw{background:#fff;border:1px solid var(--line);border-radius:10px;overflow:auto}
body.pub .xt,body.pub .rt,#stats .tb{font-size:14px;font-variant-numeric:tabular-nums}
body.pub .xt thead th,body.pub .rt thead th,#stats .tb thead th{background:#f4f6f9;color:var(--mute)}
body.pub .xt td.xn,body.pub .rt td.xn,body.pub .rt td:first-child,#stats #st-rt td:first-child,#stats #st-rt td.l{background:#fff}
body.pub .rt tbody tr:nth-child(-n+3) td:first-child,#stats #st-rt tbody tr:nth-child(-n+3) td:first-child{background:#f0f4fb;color:var(--navy)}
body.pub .xt td,body.pub .rt td,#stats .tb td{border-color:var(--line);padding-top:12px;padding-bottom:12px}
body.pub .xt tr.me td,body.pub .rt tr.me td,body.pub .rt tr.me td.xn,body.pub .xt tr.me td.xn{background:var(--surface-selected)!important}
body.pub .xt .mycol{background:var(--surface-blue)}.group-score{font-size:17px}
body.pub .gsum{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
body.pub .gsum>div{display:grid;gap:6px}.gsum span{font-size:12px;color:var(--mute)}.gsum b{font-size:24px}
.group-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.group-tools .row{gap:8px}
.scroll-hint{display:flex;align-items:center;gap:7px;color:var(--mute);font-size:12px;margin:0}
body.pub .grp{scroll-margin-top:90px}body.pub .grp h3{margin-bottom:12px}
body.pub .minibar{background:var(--navy);border-radius:10px;box-shadow:none;padding:16px;color:#fff}
body.pub .arow{padding:14px 0;border-radius:0;gap:10px}.arow .ic{color:var(--mute)}
.off-season{display:grid;grid-template-columns:1fr 1fr;gap:20px}.off-season .card{align-content:start}
body.pub .schedule{display:flex;gap:16px;align-items:flex-start}.schedule>.ic{width:28px;height:28px;color:var(--blue)}.schedule h2{margin-bottom:8px}.schedule p{color:var(--mute);font-size:14px;line-height:1.7}
.leader-name{display:flex;gap:12px;align-items:center}.leader-place{font-size:13px;color:var(--mute)}
body.pub .pfoot{color:var(--mute);line-height:1.8;padding:12px 24px 24px;font-size:12px}
body.stats-page .wrap{max-width:1180px;margin:auto;padding:28px 24px 16px}
#stats {
  --navy: #1e408a;
  --blue: #2860d8;
  --sky: #e8effd;
  --bg: #efefef;
  --ink: #152c4b;
  --mute: #52637b;
  --line: #d8e0ed;
  --ok: #116b49;
  --bad: #be2941;
}
#stats .st-head{background:none;padding:0 0 24px}#stats .st-head::before{display:none}#stats .st-title{font-size:30px}#stats .st-brand{letter-spacing:.08em;color:var(--mute);font-size:11px}
#stats .st-body{padding:0;gap:20px}#stats .tile{padding:18px}#stats .tile b{font-size:28px}#stats .pd{border-radius:10px}#stats .hero{background:#fff}#stats .trow{border-radius:8px}#stats .trow:hover{background:var(--bg)}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(min-width:900px){body.pub nav.tabs.pubtabs,#stats .st-tabs{justify-content:center}body.pub .pubtabs button,#stats .st-tabs a{flex:0 0 auto;min-width:100px}body.pub .me-card{max-width:none}body.pub .me-card:not(.pick){display:grid;grid-template-columns:1fr 1fr;align-items:start}body.pub .me-card .who{grid-column:1/-1}.myres{grid-column:2;grid-row:2 / span 2}body.pub .me-card .next{grid-column:1}body.pub .court{grid-template-columns:1fr;grid-template-rows:1fr 1fr}body.pub .court.idle{grid-template-rows:1fr}}
@media(max-width:700px){body.pub .hall{grid-template-columns:repeat(2,minmax(0,1fr))}.off-season{grid-template-columns:1fr}.pub-header .top-in{padding:10px 16px;gap:8px}body.pub main{padding:16px}body.pub .pub-t{padding:0 16px;margin-top:22px}body.pub .pub-t h1,#stats .st-title{font-size:25px}body.stats-page .wrap{padding:22px 16px 12px}body.pub .card,#stats .card{padding:16px}body.pub .tbl{padding:12px}.appsw a{padding:0 10px}.pub-header .brand{font-size:16px}}
@media(max-width:440px){.pub-header .brand{display:none}.appsw{margin-left:auto}.pub-header [data-language-control]{max-width:70px}.appsw a{gap:5px;padding:0 8px}body.pub .hall{gap:10px}body.pub .tbl-h b{font-size:16px}body.pub .court .court-player{font-size:14px;padding:8px}.gsum span{font-size:11px}body.pub .me-card .now b{font-size:40px}}
@media(prefers-reduced-motion:reduce){body.pub *,#stats *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

body.pub .gh b,#stats .big{font-family:Inter,system-ui,sans-serif;font-weight:700;letter-spacing:-.035em}
@media(max-width:360px){.pub-header .top-in{padding-inline:12px;gap:6px}.pub-header .logo-img{width:28px;height:28px}.appsw a{font-size:12px;padding:0 6px}.appsw .ic{width:16px;height:16px}.pub-header [data-language-control]{max-width:60px;font-size:12px;padding:0 4px}}

/* Kompakta spēlētāja izvēle un dalībnieku logs. */
body.pub .participant-launcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}
.participant-launcher p { margin: 4px 0 0; font-size: 13px; }
.participant-count { padding: 2px 6px; border-radius: 5px; background: #ffffff26; font-size: 12px; }
body.participants-open { overflow: hidden; }
.participants-dialog {
  width: min(960px, calc(100% - 32px));
  max-height: min(780px, calc(100dvh - 48px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px #17243526;
  overflow: hidden;
}
.participants-dialog[open] { display: flex; flex-direction: column; }
.participants-dialog::backdrop { background: #17243580; }
.participants-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px 12px; flex-shrink: 0; }
.participants-header > div { display: flex; align-items: baseline; gap: 12px; }
.participants-header h2 { font-size: 20px; }
.participants-header .muted { font-size: 13px; font-variant-numeric: tabular-nums; }
.participants-close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; color: var(--mute); }
.participants-close:hover { background: var(--bg); }
.participants-search { position: relative; margin: 0 24px 16px; flex-shrink: 0; }
.participants-search > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mute); pointer-events: none; }
body.pub .participants-search input { width: 100%; padding-left: 40px; height: 46px; }
.participants-list { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 0 24px; }
.participant-row { border-top: 1px solid var(--line); }
.participant-row > summary { display: grid; grid-template-columns: minmax(170px, 1.7fr) repeat(4, minmax(86px, 1fr)) 18px; gap: 14px; align-items: center; padding: 14px 0; cursor: pointer; list-style: none; }
.participant-row > summary::-webkit-details-marker { display: none; }
.participant-row > summary:hover { background: #fafbfc; }
.participant-name { display: grid; gap: 4px; min-width: 0; }
.participant-name > b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.participant-name small, .participant-metric small { font-size: 11px; color: var(--mute); line-height: 1.4; }
.participant-metric { display: grid; gap: 4px; font-variant-numeric: tabular-nums; }
.participant-metric > b { font-size: 14px; font-weight: 600; }
.participant-row > summary > .ic { width: 16px; height: 16px; color: var(--mute); transition: transform .15s; }
.participant-row[open] > summary > .ic { transform: rotate(90deg); }
.participant-row[open] > summary .participant-name > b { color: var(--blue); }
.participant-detail { padding: 2px 0 20px; }
.participant-detail-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13px; }
.participant-detail-actions > a { display: inline-flex; align-items: center; min-height: 44px; }
.participant-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 16px; border-radius: 10px; background: var(--surface-blue); }
body.pub .participant-detail h3 { font-size: 13px; margin: 0 0 10px; letter-spacing: 0; }
.participant-detail p { font-size: 13px; }
.participant-matches, .participant-history { padding: 0; margin: 0; list-style: none; }
.participant-matches li, .participant-history li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.participant-matches li:last-child, .participant-history li:last-child { border: 0; }
.participant-matches li > span, .participant-history li > a { min-width: 0; overflow-wrap: anywhere; }
.participant-matches li > b, .participant-history li > span, .participant-history li > b { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.participant-history li > a { flex: 1; }
.match-win { color: #187449; }
.match-loss { color: #b03040; }
.match-playing { color: var(--blue); }
.match-queued { color: var(--mute); font-weight: 500; }
.participants-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; padding: 12px 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); flex-shrink: 0; }
.participant-empty { padding: 24px 0; color: var(--mute); font-size: 14px; }
@media (max-width: 760px) {
  .participant-row > summary { grid-template-columns: minmax(130px, 1.4fr) repeat(3, minmax(62px, 1fr)) 16px; gap: 10px; }
  .participant-recent { display: none; }
  .participant-detail-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 520px) {
  body.pub .participant-launcher { padding: 12px 14px; flex-wrap: wrap; gap: 12px; }
  body.pub .participant-launcher h2 { font-size: 16px; }
  .participant-launcher > .btn { width: 100%; }
  .participants-dialog { width: calc(100% - 16px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .participants-header { padding: 12px 16px 6px; }
  .participants-search { margin: 0 16px 12px; }
  .participants-list { padding: 0 16px; }
  .participant-row > summary { grid-template-columns: 1fr 1fr 1fr 16px; gap: 10px 8px; padding: 12px 0; }
  .participant-name { grid-column: 1 / 4; }
  .participant-row > summary > .ic { grid-column: 4; grid-row: 1 / 3; }
  .participant-metric { grid-row: 2; }
  .participant-metric small { font-size: 10px; }
  .participants-footer { padding: 10px 16px; font-size: 11px; }
}

/* Zilās virsmas un statusi abās publiskajās lapās. */
body.pub .pub-header,
body.stats-page .pub-header {
  background: var(--navy);
  color: #fff;
  border-bottom-color: #33599f;
}
.pub-header .appsw { background: #173572; }
.pub-header .appsw a { color: var(--on-navy); }
.pub-header .appsw a[aria-current=page] { background: #fff; color: var(--navy); box-shadow: none; }
.pub-header [data-language-control] { background: #173572; border-color: #6986bd; color: #fff; }
.pub-header [data-language-control] option { background: #fff; color: var(--ink); }

body.pub .pub-t { margin-top: 18px; }
body.pub .pub-t > div,
#stats .st-head {
  background: var(--navy);
  color: #fff;
  border: 1px solid #5275b5;
  border-radius: 14px;
  padding: 18px 20px;
}
body.pub .pub-t h1,
#stats .st-head .st-title { color: #fff; }
body.pub .pub-t p,
#stats .st-head p,
#stats .st-head .st-brand { color: var(--on-navy); opacity: 1; }
#stats .st-head { margin-bottom: 20px; }
body.pub .tag.live,
body.pub .pub-t .tag.live { background: var(--bad); color: #fff; }
body.pub .pub-t .tag.live::before { background: #fff; }

body.pub .btn.ghost,
#stats .btn.ghost { background: var(--sky); color: var(--navy); border-color: #d2dff8; }
body.pub .btn:disabled,
#stats .btn:disabled { filter: none; }
body.pub .participant-launcher { background: var(--sky); border-color: #cbd9f4; }
body.pub .participant-launcher h2 { color: var(--navy); }
body.pub .me-card .now { background: var(--navy); }
body.pub .me-card .now span { color: var(--on-navy); }
body.pub .me-card .next { background: var(--surface-blue); border-color: #d2dff8; }
body.pub .gsum { background: var(--sky); border-color: #cbd9f4; }
body.pub .gsum b { color: var(--navy); }

body.pub .tbl.on { border-top: 3px solid var(--blue); }
body.pub .tbl.mine { background: var(--surface-blue); border: 2px solid var(--blue); }
body.pub .tbl.on .court { background: var(--sky); }
body.pub .tbl.on .court-player + .court-player { border-color: #cfdbef; }
body.pub .court.idle { background: #f3f4f6; }
body.pub .table-state { width: fit-content; padding: 4px 8px; border-radius: 6px; background: #eef0f3; color: var(--mute); }
body.pub .table-state.playing { background: var(--okbg); color: var(--ok); }
body.pub .table-state.mine { background: var(--surface-selected); color: var(--navy); }
body.pub .up, .match-win { color: var(--ok); }
body.pub .down, .match-loss { color: var(--bad); }

body.pub nav.tabs.pubtabs,
#stats .st-tabs { background: var(--sky); border-top-color: #c5d3ed; }
body.pub .pubtabs button,
#stats .st-tabs a { color: var(--navy); }
body.pub .pubtabs button[aria-pressed=true],
#stats .st-tabs a[aria-current=page],
#stats .st-tabs a[aria-current=page]:hover { background: var(--blue); color: #fff; }

body.pub .xt thead th,
body.pub .rt thead th,
body.pub .rt th.xn,
body.pub .rt thead th:first-child,
#stats .tb thead th,
#stats #st-rt thead th:first-child,
#stats #st-rt thead th.l { background: var(--navy); color: #fff; border-color: #4362a0; }
body.pub .rt tbody tr:nth-child(-n+3) td:first-child,
#stats #st-rt tbody tr:nth-child(-n+3) td:first-child { background: var(--surface-selected); color: var(--navy); }
#stats .tb tbody tr:hover td,
body.pub .rt tbody tr:hover td { background: var(--surface-blue); }
#stats .tile { background: var(--sky); border-color: #cbd9f4; }
#stats .tile b,
#stats .elo { color: var(--navy); }
#stats .hero { background: var(--surface-blue); border-color: #cbd9f4; }
#stats .pd { background: var(--surface-blue); }
#stats .pd1 { background: var(--sky); border-color: #9eb9eb; }
#stats .trow:hover { background: var(--sky); }

.participants-dialog { border-color: #c5d3ed; }
.participants-header { background: var(--navy); color: #fff; padding-bottom: 12px; }
.participants-header .muted,
.participants-header .participants-close { color: var(--on-navy); }
.participants-header .participants-close:hover { background: #173572; }
.participants-search { margin-top: 16px; }
.participant-row[open] { background: var(--surface-blue); }
.participant-row[open] > summary { background: var(--sky); }
.participant-row[open] .participant-detail { padding-inline: 12px; }
.participant-row > summary:hover { background: var(--sky); }
.participants-footer { background: var(--surface-blue); }
.pub-header :focus-visible,
.participants-header :focus-visible { outline-color: #a9c7ff; }

@media (max-width: 700px) {
  body.pub .pub-t > div,
  #stats .st-head { padding: 16px; }
}

/* Zāles mači un to analīze. */
.match-hall { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.match-table { position: relative; min-width: 0; overflow: hidden; border: 1px solid #cbd6e7; border-radius: 14px; background: #fff; box-shadow: 0 2px 4px #152c4b06; }
.match-table > header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 10px; }
.match-table > header > b { display: inline-flex; align-items: center; gap: 7px; font-size: 17px; letter-spacing: -.035em; }
.match-table > header .ic { width: 18px; height: 18px; color: var(--navy); }
.match-table.is-playing { border-top: 3px solid var(--blue); }
.match-table.is-playing:hover { border-color: var(--blue); box-shadow: 0 5px 16px #1e408a12; }
.match-table.is-mine { border: 2px solid var(--blue); background: var(--surface-blue); }
.match-table-state { font-size: 11px; padding: 4px 7px; border-radius: 5px; background: var(--okbg); color: var(--ok); font-weight: 600; white-space: nowrap; }
.is-mine .match-table-state { background: var(--blue); color: #fff; }
.is-idle .match-table-state { background: #edf0f5; color: var(--mute); }
.match-table-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px 10px; color: var(--mute); font-size: 11px; min-height: 28px; }
body.pub .match-table-meta .tm { margin: 0; padding: 2px 6px; border: 0; background: var(--sky); color: var(--navy); border-radius: 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
body.pub .match-table-meta .tm.long { background: var(--warnbg); color: var(--warn); }
.match-table-players { margin: 0 12px; padding: 4px 12px; background: var(--navy); color: #fff; border-radius: 9px; }
.match-table-players > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; }
.match-table-players > div + div { border-top: 1px solid #5876b1; }
.match-table-players > div > span { font-size: 20px; font-weight: 700; letter-spacing: -.035em; overflow-wrap: anywhere; min-width: 0; line-height: 1.15; }
.match-table-players small { display: block; color: var(--on-navy); font-size: 11px; font-weight: 400; letter-spacing: 0; margin-top: 4px; }
.match-table-players > div > b { font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; flex-shrink: 0; }
.match-table-players > div > b small { margin: 0 0 3px; font-size: 9px; letter-spacing: .03em; }
.match-table > footer { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px 8px; font-size: 11px; color: var(--mute); font-variant-numeric: tabular-nums; }
.match-table-probability { text-align: right; color: var(--navy); font-weight: 600; }
.match-table-probability small { display: block; margin-bottom: 3px; color: var(--mute); font-size: 10px; font-weight: 400; }
.match-table-open { display: flex; align-items: center; gap: 7px; padding: 10px 16px; width: 100%; min-height: 44px; color: var(--blue); font-weight: 600; font-size: 12px; background: var(--surface-blue); border-top: 1px solid var(--line); }
.match-table-open > span { margin-left: auto; }
.match-table-open .ic { width: 16px; height: 16px; }
.match-table-open::after { content: ''; position: absolute; inset: 0; border-radius: 13px; }
.match-table-open:focus-visible { outline: none; }
.match-table-open:focus-visible::after { outline: 3px solid var(--blue); outline-offset: -4px; }
.match-table-idle { display: grid; place-content: center; justify-items: center; gap: 10px; margin: 0 12px 12px; min-height: 126px; padding: 20px; border: 1px dashed #cad4e4; background: #f4f6fa; border-radius: 9px; color: var(--mute); font-size: 12px; }
.match-table-idle .ic { width: 30px; height: 30px; color: #64799b; }
body.analysis-open { overflow: hidden; }
.match-dialog { width: min(880px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 1px solid #6986bd; border-radius: 16px; padding: 0; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 24px 80px #152c4b38; }
.match-dialog[open] { display: flex; flex-direction: column; }
.match-dialog::backdrop { background: #152c4b99; }
.analysis-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; background: var(--navy); color: #fff; flex-shrink: 0; }
.analysis-header > div { display: grid; gap: 5px; }
.analysis-header h2 { font-size: 18px; }
.analysis-header [data-analysis-status] { color: var(--on-navy); font-size: 12px; }
.analysis-close { display: grid; place-items: center; width: 44px; height: 44px; color: #fff; border: 1px solid #6986bd; border-radius: 8px; }
.analysis-close:hover { background: #173572; }
.analysis-close:focus-visible { outline-color: #a9c7ff; }
.analysis-players { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; padding: 20px 24px; background: var(--sky); flex-shrink: 0; font-weight: 700; font-size: 20px; letter-spacing: -.035em; }
.analysis-players > :last-child { text-align: right; }
.analysis-players > span { color: var(--mute); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.analysis-players > a, .analysis-players > b { min-width: 0; overflow-wrap: anywhere; color: var(--navy); }
.analysis-tabs { display: flex; gap: 6px; padding: 10px 24px; border-bottom: 1px solid var(--line); flex-shrink: 0; overflow-x: auto; }
.analysis-tabs button { min-height: 44px; padding: 0 16px; background: var(--surface-blue); color: var(--navy); font-size: 13px; font-weight: 600; border-radius: 8px; white-space: nowrap; }
.analysis-tabs button[aria-pressed=true] { background: var(--blue); color: #fff; }
.analysis-content { padding: 20px 24px 24px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.analysis-content > h3, .analysis-evening h3 { margin: 22px 0 10px; font-size: 15px; }
.analysis-content p { font-size: 13px; line-height: 1.65; }
.analysis-forecast { padding: 16px; margin-bottom: 20px; background: var(--surface-blue); border: 1px solid #d2dff8; border-radius: 10px; }
.analysis-forecast-label, .analysis-probabilities { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.analysis-forecast-label h3 { font-size: 14px; }
.analysis-forecast-label > span { font-size: 11px; color: var(--mute); }
.analysis-probabilities { margin: 14px 0 10px; }
.analysis-probabilities b { font-size: 28px; color: var(--navy); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.analysis-probabilities > span { color: var(--mute); font-size: 11px; }
.analysis-probability-bar { background: #9aafe0; height: 10px; overflow: hidden; border-radius: 5px; }
.analysis-probability-bar i { display: block; height: 100%; background: var(--navy); border-right: 2px solid #fff; }
.analysis-content .analysis-data-date { margin: 10px 0 0; font-size: 11px; color: var(--mute); }
.analysis-comparison-row { display: grid; grid-template-columns: minmax(110px, 1fr) repeat(2, minmax(0, 1fr)); align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.analysis-comparison-row > span { color: var(--mute); }
.analysis-comparison-row > b { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.analysis-comparison-row > b > small { display: block; font-weight: 400; color: var(--mute); font-size: 11px; margin-top: 4px; }
.analysis-comparison-row > b:last-child { text-align: right; }
.analysis-form { display: inline-flex; gap: 4px; }
.analysis-form abbr { display: grid; place-items: center; width: 22px; height: 24px; font-size: 11px; border-radius: 4px; text-decoration: none; }
.analysis-form .won { background: var(--okbg); color: var(--ok); }
.analysis-form .lost { background: var(--badbg); color: var(--bad); }
.analysis-method { margin-top: 16px; border: 1px solid var(--line); border-radius: 9px; padding: 12px 16px; background: #fafbfe; }
.analysis-method > summary { cursor: pointer; min-height: 28px; font-size: 13px; font-weight: 600; color: var(--navy); }
.analysis-method p { color: var(--mute); margin-top: 12px; }
.analysis-factors { display: grid; gap: 12px; margin-top: 16px; }
.analysis-factors > div { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 12px; }
.analysis-factors small { grid-column: 1 / -1; color: var(--mute); font-size: 11px; }
.analysis-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.analysis-summary > div { display: grid; gap: 8px; background: var(--sky); border-radius: 8px; padding: 14px; }
.analysis-summary small { color: var(--mute); font-size: 11px; }
.analysis-summary b { color: var(--navy); font-size: 24px; font-variant-numeric: tabular-nums; }
.analysis-results { list-style: none; padding: 0; margin: 0; }
.analysis-results li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.analysis-results li > span { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.analysis-results li small { font-size: 11px; color: var(--mute); }
.analysis-results li strong { font-size: 16px; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.analysis-results li strong small { display: block; text-align: right; margin-top: 3px; }
.analysis-evening { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (min-width: 1400px) { .match-hall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .match-hall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .analysis-evening { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .match-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .analysis-header { padding: 12px 16px; }
  .analysis-header h2 { font-size: 16px; }
  .analysis-players { padding: 16px; gap: 8px; font-size: 17px; }
  .analysis-tabs { padding: 8px 12px; gap: 5px; }
  .analysis-tabs button { padding: 0 10px; font-size: 12px; }
  .analysis-content { padding: 16px; }
  .analysis-comparison-row { grid-template-columns: minmax(85px, .8fr) repeat(2, minmax(0, 1fr)); font-size: 12px; gap: 8px; }
  .analysis-form { gap: 2px; }
  .analysis-form abbr { width: 16px; height: 22px; font-size: 10px; }
  .analysis-probabilities > span { max-width: 90px; text-align: center; }
  .analysis-summary > div { padding: 12px 8px; }
}

/* Personīgais rezultātu logs un alternatīvie izspēles ceļi. */
.evening-launcher { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; padding: 18px; border: 1px solid #d2dff8; border-radius: 10px; background: var(--surface-blue); min-width: 0; }
body.pub .evening-launcher h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: -.02em; color: var(--navy); }
.evening-launcher h3 .ic { width: 18px; height: 18px; }
.evening-launcher p { font-size: 13px; color: var(--mute); margin: 8px 0 0; font-variant-numeric: tabular-nums; }
body.evening-open { overflow: hidden; }
.evening-dialog { width: min(940px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid #6986bd; border-radius: 16px; background: #fff; color: var(--ink); overflow: hidden; box-shadow: 0 24px 80px #152c4b38; }
.evening-dialog[open] { display: flex; flex-direction: column; }
.evening-dialog::backdrop { background: #152c4b99; }
.evening-dialog .analysis-header > div > span { font-size: 13px; color: var(--on-navy); }
.evening-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px 24px; background: var(--sky); flex-shrink: 0; }
.evening-summary > span { display: flex; align-items: baseline; gap: 6px; color: var(--mute); font-size: 12px; }
.evening-summary b { color: var(--navy); font-size: 23px; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.evening-content { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 20px 24px 24px; }
.evening-stage { margin-bottom: 22px; }
.evening-stage:last-child { margin-bottom: 0; }
.evening-stage > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 12px; border-radius: 8px; background: var(--sky); }
body.pub .evening-stage h3 { color: var(--navy); font-size: 15px; }
.evening-stage > header > span { color: var(--mute); font-size: 12px; font-variant-numeric: tabular-nums; }
.evening-stage > ul { list-style: none; padding: 0; margin: 0; }
.evening-match { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.evening-match > div { display: grid; gap: 5px; min-width: 0; }
.evening-match > div > b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.evening-match small { color: var(--mute); font-size: 11px; }
.evening-match-score { text-align: right; font-variant-numeric: tabular-nums; }
.evening-match .evening-match-score > b { font-size: 18px; }
.evening-live { color: var(--blue); }
.evening-content p { font-size: 13px; line-height: 1.65; }
.evening-route-note { padding: 16px; border-radius: 10px; background: var(--surface-blue); border: 1px solid #d2dff8; margin-bottom: 18px; }
.evening-route-note > b { color: var(--navy); font-size: 14px; }
.evening-route-note p { margin: 8px 0; color: var(--mute); }
.evening-route-note > small { color: var(--mute); font-size: 11px; }
.evening-route-stage { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
.evening-route-stage > summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px; cursor: pointer; background: var(--sky); list-style: none; }
.evening-route-stage > summary::-webkit-details-marker { display: none; }
.evening-route-stage > summary::before { content: '›'; font-size: 24px; color: var(--navy); }
.evening-route-stage[open] > summary::before { transform: rotate(90deg); }
.evening-route-stage > summary > span { display: grid; gap: 6px; font-size: 13px; color: var(--navy); }
.evening-route-stage > summary > span:first-of-type { flex: 1; min-width: 0; }
.evening-route-stage > summary > span:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.evening-route-stage > summary small { color: var(--mute); font-weight: 400; font-size: 11px; line-height: 1.5; white-space: normal; }
.evening-route-opponents { padding: 0 16px; }
.evening-opponent { padding: 18px 0; border-bottom: 1px solid var(--line); }
.evening-opponent:last-child { border: 0; }
.evening-opponent > header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.evening-opponent > header > b { font-size: 15px; overflow-wrap: anywhere; }
.evening-opponent > header > strong { color: var(--navy); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.evening-opponent > p { margin: 7px 0 12px; color: var(--mute); }
.evening-opponent-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; background: var(--surface-blue); border-radius: 8px; }
.evening-opponent-metrics > div { display: grid; gap: 7px; }
.evening-opponent-metrics small { color: var(--mute); font-size: 11px; }
.evening-opponent-metrics b { font-size: 14px; color: var(--navy); font-variant-numeric: tabular-nums; }
.evening-points { margin-top: 12px; font-size: 13px; }
.evening-points > summary { color: var(--ok); font-weight: 600; cursor: pointer; padding: 6px 0; min-height: 32px; }
.evening-points > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; background: #f4f9f6; border-radius: 8px; }
.evening-points > div > span { font-variant-numeric: tabular-nums; }
.evening-points small { display: block; margin-top: 5px; font-size: 11px; color: var(--mute); }
.evening-other-conditions { margin: 8px 0 12px; font-size: 12px; }
.evening-other-conditions > summary { color: var(--blue); cursor: pointer; min-height: 32px; padding-top: 6px; }
.evening-other-conditions ul { padding-left: 18px; color: var(--mute); }
.evening-other-conditions li { margin-bottom: 8px; line-height: 1.5; }
.evening-loading { padding: 30px 16px; border-radius: 10px; background: var(--surface-blue); color: var(--navy); text-align: center; font-size: 14px; }
@media (min-width: 900px) {
  body.pub .me-card .evening-launcher { grid-column: 2; grid-row: 2 / span 2; align-self: stretch; }
}
@media (max-width: 600px) {
  .evening-dialog { width: calc(100% - 12px); max-height: calc(100dvh - 16px); border-radius: 12px; }
  .evening-summary { padding: 14px 16px; gap: 8px; }
  .evening-summary > span { flex-direction: column; gap: 4px; font-size: 10px; }
  .evening-summary b { font-size: 22px; }
  .evening-content { padding: 16px; }
  .evening-stage > header { align-items: flex-start; flex-direction: column; gap: 5px; }
  .evening-match { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .evening-match > button { grid-column: 1 / -1; justify-self: start; }
  .evening-match .evening-match-score > b { font-size: 16px; }
  .evening-route-stage > summary { padding: 12px; gap: 10px; }
  .evening-route-opponents { padding: 0 12px; }
  .evening-opponent > header { align-items: flex-start; flex-direction: column; gap: 6px; }
  .evening-opponent-metrics { grid-template-columns: 1fr 1fr; }
  .evening-opponent-metrics > div:last-child { grid-column: 1 / -1; }
  .evening-points > div { grid-template-columns: 1fr; }
}

/* Telefona skats: divi galdi rindā un kompaktāki kopsavilkumi. */
@media (max-width: 600px) {
  body.pub main { padding: 12px 10px 20px; gap: 12px; }
  body.pub .pub-t { padding: 0 10px; margin-top: 12px; }
  body.pub .pub-t > div { padding: 12px; border-radius: 11px; }
  body.pub .pub-t h1 { font-size: 21px; gap: 6px; }
  body.pub .pub-t p { font-size: 12px; line-height: 1.5; margin-top: 6px; }
  body.pub .me-card { padding: 12px; gap: 8px; }
  body.pub .me-card .who { padding-bottom: 8px; gap: 8px; }
  body.pub .me-card .who b { font-size: 14px; }
  body.pub .me-card .now { padding: 14px; gap: 5px; border-radius: 9px; }
  body.pub .me-card .now b { font-size: 32px; }
  body.pub .me-card .now span { font-size: 13px; }
  body.pub .me-card .next { padding: 12px; gap: 5px; }
  body.pub .me-card .next b { font-size: 14px; }
  body.pub .me-card .next span { font-size: 12px; }
  body.pub .evening-launcher { padding: 12px; gap: 10px; }
  body.pub .evening-launcher h3 { font-size: 14px; }
  .evening-launcher p { margin-top: 5px; font-size: 12px; }
  .evening-launcher > .btn { width: 100%; font-size: 13px; }
  body.pub .participant-launcher { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  body.pub .participant-launcher h2 { font-size: 15px; }
  .participant-launcher p { font-size: 12px; line-height: 1.5; }
  .participant-launcher > .btn { width: auto; max-width: 156px; padding-inline: 10px; font-size: 12px; white-space: normal; }

  .match-hall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
  .match-table { display: flex; flex-direction: column; border-radius: 10px; }
  .match-table > header { padding: 10px 8px 6px; gap: 4px; flex-wrap: wrap; }
  .match-table > header > b { font-size: 14px; gap: 4px; white-space: nowrap; }
  .match-table > header .ic { width: 14px; height: 14px; }
  .match-table-state { padding: 3px 4px; font-size: 9px; }
  .match-table-meta { min-height: 24px; padding: 0 8px 6px; gap: 4px; font-size: 10px; }
  .match-table-meta > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body.pub .match-table-meta .tm { flex-shrink: 0; font-size: 10px; padding: 2px 4px; }
  .match-table-players { flex: 1; margin: 0 6px; padding: 0 7px; border-radius: 7px; }
  .match-table-players > div { min-height: 53px; padding: 9px 0; gap: 5px; }
  .match-table-players > div > span { font-size: 14px; line-height: 1.2; letter-spacing: -.025em; }
  .match-table-players small { margin-top: 3px; font-size: 10px; }
  .match-table-players > div > b { font-size: 12px; }
  .match-table-players > div > b small { font-size: 8px; margin-bottom: 2px; }
  .match-table > footer { padding: 8px; font-size: 10px; }
  .match-table > footer > span:first-child { display: none; }
  .match-table-probability { width: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 4px; font-size: 11px; }
  .match-table-probability small { margin: 0; font-size: 10px; }
  .match-table-open { min-height: 44px; padding: 8px; gap: 5px; font-size: 11px; }
  .match-table-open .ic { width: 15px; height: 15px; }
  .match-table-open::after { border-radius: 9px; }
  .match-table-idle { flex: 1; min-height: 116px; margin: 0 6px 6px; padding: 12px 6px; gap: 8px; font-size: 11px; text-align: center; }
  .match-table-idle .ic { width: 25px; height: 25px; }
  body.pub .pubtabs button { min-width: 60px; min-height: 48px; padding: 5px 7px; font-size: 10px; }
  body.pub .pubtabs .ic { width: 20px; height: 20px; }
  .group-tools { gap: 8px; }
  .group-tools .btn { font-size: 13px; }
}
@media (max-width: 360px) {
  .match-table > header > b { font-size: 13px; }
  .match-table-players > div > span { font-size: 13px; }
  .match-table-players > div > b { font-size: 11px; }
}

/* Turnīru vēsture ar aktuālās izspēles sānu paneli. */
.tournament-hub { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.tournament-aside { display: grid; gap: 16px; min-width: 0; }
.tournament-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.tournament-section-head p { font-size: 13px; margin-top: 7px; }
.tournament-history-list { display: grid; }
.tournament-history-row { display: flex; align-items: center; gap: 14px; width: 100%; min-width: 0; padding: 15px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); text-align: left; }
.tournament-history-row:hover { background: var(--surface-blue); }
.tournament-history-row:last-child { border: 0; }
.tournament-date { display: grid; justify-items: center; align-content: center; gap: 3px; width: 54px; min-height: 58px; flex-shrink: 0; border-radius: 9px; background: var(--sky); color: var(--navy); font-variant-numeric: tabular-nums; }
.tournament-date > b { font-size: 23px; line-height: 1.1; }
.tournament-date > small { font-size: 10px; }
.tournament-row-info { display: grid; gap: 6px; flex: 1; min-width: 0; }
.tournament-row-info > b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.tournament-row-info > small { font-size: 12px; line-height: 1.5; color: var(--mute); }
.tournament-history-row > .ic { width: 18px; height: 18px; color: var(--blue); }
.tournament-history-all { justify-self: start; margin-top: 8px; }
.tournament-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 40px 16px; }
.tournament-empty > .ic { width: 36px; height: 36px; color: var(--blue); }
.tournament-empty p { max-width: 36ch; font-size: 14px; line-height: 1.6; }
body.pub .tournament-current { background: var(--navy); color: #fff; border-color: #5275b5; gap: 14px; }
body.pub .tournament-current h3 { font-size: 19px; line-height: 1.3; }
.tournament-current > p { margin: 0; color: var(--on-navy); font-size: 12px; }
.tournament-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--on-navy); }
.tournament-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 6px; }
.tournament-metrics > div { display: grid; gap: 6px; padding: 10px 0; }
.tournament-metrics b { font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.tournament-metrics span { color: var(--on-navy); font-size: 10px; }
.tournament-current progress { appearance: none; width: 100%; height: 6px; border: 0; border-radius: 8px; background: #5275b5; overflow: hidden; }
.tournament-current progress::-webkit-progress-bar { background: #5275b5; }
.tournament-current progress::-webkit-progress-value { background: #dce7ff; border-radius: 8px; }
.tournament-current progress::-moz-progress-bar { background: #dce7ff; }
body.pub .tournament-current > .btn { width: 100%; background: #fff; color: var(--navy); }
body.pub .tournament-personal { background: var(--sky); border-color: #cbd9f4; gap: 10px; }
.tournament-table-number { font-size: 32px; letter-spacing: -.04em; color: var(--navy); }
.tournament-personal p { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.tournament-actions > .btn { justify-content: flex-start; width: 100%; font-size: 13px; white-space: normal; }
body.pub .minibar { display: flex; align-items: center; justify-content: flex-start; gap: 16px; text-align: left; }
body.pub .minibar > b { flex-shrink: 0; font-size: 18px; }
body.pub .minibar > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
body.pub .minibar > i { display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-size: 13px; }
@media (max-width: 820px) {
  .tournament-hub { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tournament-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .tournament-current { grid-column: 1 / -1; }
  .tournament-aside > .card > .btn { white-space: normal; font-size: 12px; }
}
@media (max-width: 520px) {
  .tournament-aside { grid-template-columns: minmax(0, 1fr); }
  .tournament-history-row { gap: 10px; padding: 12px 0; }
  .tournament-date { width: 46px; min-height: 52px; }
  .tournament-row-info > b { font-size: 14px; }
  .tournament-row-info > small { font-size: 11px; }
  .tournament-history-all { width: 100%; font-size: 13px; white-space: normal; }
  body.pub .minibar { gap: 10px; padding: 12px; flex-wrap: wrap; }
  body.pub .minibar > b { font-size: 16px; }
  body.pub .minibar > span { font-size: 12px; }
}

