@font-face {
  font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0400-052F,U+2116;
}
@font-face {
  font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+20BD,U+2212;
}
@font-face {
  font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0400-052F,U+2116;
}
@font-face {
  font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+20BD,U+2212;
}
@font-face {
  font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2");
  unicode-range: U+0400-052F,U+2116;
}
@font-face {
  font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+2000-206F,U+20AC,U+20BD,U+2212;
}
:root {
  --ground: #eef3f3;
  --surface: #fff;
  --raised: #f4f7f7;
  --active: #e0e9e9;
  --border: #e1e8e8;
  --rule: #edf1f1;
  --control: #ccd7d8;
  --text: #142124;
  --muted: #576367;
  --accent: #1b6c80;
  --market: #78929b;
  --positive: #16613e;
  --negative: #9d2835;
  --ink-button: #17282c;
  --radius: 8px;
  --gap: 24px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--ground);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button, select, summary { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: 30px; font-weight: 600; line-height: 1.14; letter-spacing: -.025em; }
h2 { font-size: 17px; font-weight: 600; line-height: 1.25; }
strong, b { font-weight: 600; }
.muted { color: var(--muted); }
.initial { margin: 40px; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.layout {
  display: grid;
  grid-template-columns: 218px minmax(0,1fr);
  grid-template-rows: 48px minmax(calc(100svh - 48px),auto);
  min-height: 100svh;
}
.sidebar { grid-column: 1; grid-row: 1 / 3; display: flex; flex-direction: column; padding: 24px 14px 22px; }
.brand, .mobile-brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 11px; font-size: 22px; font-weight: 600; letter-spacing: -.045em; }
.brand { padding: 0 10px; }
.brand small { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.brand-mark { width: 33px; height: 33px; flex: 0 0 33px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--accent); border-radius: 8px; }
.brand-mark i { width: 3px; height: 14px; background: var(--accent); border-radius: 1px; transform: skewY(-14deg); }
.brand-mark i:nth-child(2) { height: 19px; }
.brand-mark i:nth-child(3) { height: 9px; }
.sidebar nav { display: grid; gap: 4px; margin-top: 40px; }
.nav-button { border: 0; background: transparent; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; min-height: 42px; padding: 0 12px; border-radius: 7px; color: var(--muted); white-space: nowrap; }
.nav-button:hover { background: var(--raised); color: var(--text); }
.nav-button[aria-current="page"] { background: var(--active); color: var(--text); font-weight: 600; }
.nav-symbol { display: inline-block; position: relative; flex: 0 0 15px; width: 15px; height: 15px; opacity: .85; }
.nav-symbol[data-symbol="board"] { border: 1px solid currentColor; border-radius: 3px; }
.nav-symbol[data-symbol="board"]::after { content: ''; position: absolute; inset: 3px 3px 2px; border-top: 1px solid; border-bottom: 1px solid; }
.nav-symbol[data-symbol="results"] { border: 1px solid currentColor; border-radius: 50%; }
.nav-symbol[data-symbol="results"]::after { content: ''; position: absolute; width: 6px; height: 3px; left: 3px; top: 4px; border: solid currentColor; border-width: 0 0 1px 1px; transform: rotate(-45deg); }
.nav-symbol[data-symbol="plan"] { border: 1px solid currentColor; height: 11px; border-radius: 2px; }
.nav-symbol[data-symbol="plan"]::after { content: ''; position: absolute; inset: 3px 0 auto; border-top: 1px solid currentColor; }
.nav-symbol[data-symbol="link"]::before, .nav-symbol[data-symbol="link"]::after { content: ''; position: absolute; width: 8px; height: 5px; border: 1px solid currentColor; border-radius: 4px; transform: rotate(-45deg); }
.nav-symbol[data-symbol="link"]::before { left: 0; top: 7px; }
.nav-symbol[data-symbol="link"]::after { right: 0; top: 2px; }
.side-bottom { margin: auto 10px 0; padding-top: 16px; border-top: 1px solid var(--control); }
.side-bottom strong { display: block; margin-top: 5px; }
.side-label, .side-bottom p { font-size: 12px; color: var(--muted); }
.side-bottom p { margin-top: 4px; }
.topbar { grid-column: 2; grid-row: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 26px 0 24px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb span { margin: 0 6px; color: #798787; }
.identity { display: inline-flex; gap: 7px; align-items: center; max-width: 245px; padding: 2px 4px; border: 0; background: transparent; font-size: 12px; color: var(--muted); }
.identity span:last-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.demo-indicator b { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.avatar { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; color: var(--text); background: var(--active); border-radius: 50%; font-weight: 600; }
.mobile-brand, .mobile-nav { display: none; }

.sheet { grid-column: 2; grid-row: 2; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; min-width: 0; padding: 28px; margin: 0 8px 8px 0; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: var(--gap); }
.title-row p { margin-top: 6px; }
.button { min-height: 36px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid var(--control); border-radius: 6px; padding: 0 13px; background: var(--surface); color: var(--text); text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--raised); }
.button.primary { background: var(--ink-button); border-color: var(--ink-button); color: white; }
.button.primary:hover { background: #274044; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.text-button { border: 0; background: transparent; padding: 0; color: var(--accent); text-align: left; }
.message { border: 1px solid var(--border); background: var(--raised); color: var(--text); border-radius: var(--radius); padding: 11px 13px; margin-bottom: 14px; }
.message.error { border-color: #e7c8cd; color: var(--negative); background: #fcf2f4; }

.overview { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: var(--gap); }
.overview div { padding: 13px 17px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.overview div+div { border-left: 1px solid var(--border); }
.overview span { color: var(--muted); font-size: 13px; }
.overview strong { font-size: 28px; font-weight: 500; line-height: 1.12; }
.analysis-grid { display: grid; grid-template-columns: minmax(0,1.75fr) minmax(270px,1fr); gap: var(--gap); align-items: stretch; margin-bottom: var(--gap); }
.panel { border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.focus-panel, .checks-panel { height: 100%; }
.panel-head { display: flex; gap: 10px; justify-content: space-between; align-items: start; padding: 15px 17px 10px; }
.panel-head p { margin-top: 4px; font-size: 12px; color: var(--muted); }
.status { font-size: 12px; line-height: 1.5; padding: 2px 8px; background: var(--raised); color: var(--muted); border-radius: 12px; white-space: nowrap; font-weight: 500; }
.status.published { color: var(--positive); background: #eaf6ee; }
.duel { display: grid; grid-template-columns: minmax(0,1fr) minmax(68px,auto) minmax(0,1fr); gap: 10px; padding: 13px 17px 17px; margin: 0 17px 10px; border-bottom: 1px solid var(--rule); align-items: start; }
.team { display: grid; justify-items: center; gap: 6px; text-align: center; font-size: 15px; }
.team-monogram { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid #c5d9d9; border-radius: 8px; background: #eaf2f2; color: #295a62; font-size: 13px; letter-spacing: .01em; }
.team-monogram.alt { background: #f1eef4; border-color: #e0d8e5; color: #635066; }
.duel-score { display: grid; text-align: center; gap: 3px; padding-top: 3px; }
.duel-score strong { font-size: 29px; line-height: 1.15; letter-spacing: -.05em; }
.duel-score span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 17px; margin: 0 17px 10px; color: var(--muted); font-size: 12px; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i, .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.legend span+span i, .dot.market { background: var(--market); }
.comparison { display: grid; gap: 7px; margin: 0 17px 13px; }
.comparison-row { display: grid; grid-template-columns: 138px minmax(30px,1fr) 83px; gap: 9px; align-items: center; }
.outcome { display: flex; gap: 6px; align-items: center; font-size: 12px; }
.outcome b { width: 23px; height: 21px; display: grid; place-items: center; border-radius: 4px; background: var(--raised); }
.tracks { display: grid; gap: 3px; }
progress { width: 100%; height: 6px; display: block; appearance: none; border: 0; border-radius: 3px; overflow: hidden; background: var(--raised); --fill: var(--accent); }
progress::-webkit-progress-bar { background: var(--raised); border-radius: 3px; }
progress::-webkit-progress-value { background: var(--fill); border-radius: 3px; }
progress::-moz-progress-bar { background: var(--fill); border-radius: 3px; }
.market-track, .metric:nth-of-type(3) progress { --fill: var(--market); }
.track-values { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 12px; text-align: right; }
.track-values span, .panel-foot { color: var(--muted); }
.panel-foot { border-top: 1px solid var(--rule); padding: 10px 17px; font-size: 12px; }
.panel-foot details { margin-top: 5px; }
.panel-foot summary { width: fit-content; }
.book-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0 0; }
.waiting { min-height: 117px; padding: 16px 18px; display: grid; align-content: center; gap: 4px; color: var(--muted); }
.waiting strong { color: var(--text); }
.check-total { display: flex; align-items: baseline; gap: 9px; padding: 3px 17px 10px; }
.check-total strong { font-size: 32px; line-height: 1; font-weight: 500; }
.check-total span { color: var(--muted); font-size: 13px; }
.metric { padding: 11px 0; margin: 0 17px; border-top: 1px solid var(--rule); }
.metric > div { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.metric strong { margin-left: auto; font-size: 16px; }
.metric small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.metric-note { margin: 6px 17px 14px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; line-height: 1.45; }

.board-head { align-items: center; padding-bottom: 13px; }
.filters { display: flex; align-items: center; gap: 8px; }
input, select { background: var(--surface); min-width: 0; min-height: 34px; padding: 6px 10px; border: 1px solid var(--control); border-radius: 6px; }
input::placeholder { color: var(--muted); }
.filters input { width: 170px; }
.tabs { display: flex; gap: 17px; border-bottom: 1px solid var(--border); padding: 0 17px; }
.tabs button { padding: 4px 0 8px; background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); }
.tabs button[aria-pressed="true"] { border-bottom-color: var(--accent); color: var(--text); font-weight: 600; }
.table-head, .match-row { display: grid; grid-template-columns: 67px minmax(0,1fr) 147px 126px 16px; align-items: center; gap: 12px; padding: 0 17px; }
.table-head { color: var(--muted); font-size: 12px; min-height: 31px; border-bottom: 1px solid var(--rule); }
.match-row { text-align: left; width: 100%; min-height: 52px; border: 0; border-bottom: 1px solid var(--rule); background: var(--surface); }
.match-row:last-child { border-radius: 0 0 var(--radius) var(--radius); border-bottom: 0; }
.match-row:hover, .match-row.selected { background: var(--raised); }
.match-time, .match-name { display: grid; gap: 2px; padding: 7px 0; }
.match-time small, .match-name small { color: var(--muted); font-size: 12px; }
.match-percent, .table-head span:nth-child(3), .match-result, .table-head span:nth-child(4) { text-align: right; }
.match-percent { white-space: nowrap; }
.match-result strong { font-size: 15px; }
.chevron { color: var(--muted); font-size: 20px; text-align: right; }
.empty { margin: 17px; color: var(--muted); }
.account-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); gap: var(--gap); }
.account-card { padding: 20px; }
.small-label { color: var(--muted); font-size: 13px; }
.account-card h2 { margin: 6px 0; font-size: 22px; }
.account-card .muted { margin: 7px 0 12px; }
.plan-price { font-size: 32px; letter-spacing: -.04em; font-weight: 600; margin: 17px 0 11px; }
.plan-price span { color: var(--muted); font-size: 14px; font-weight: 400; letter-spacing: 0; }
.billing-note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.features { padding-left: 18px; margin: 12px 0 0; line-height: 2.1; }

.auth-grid { max-width: 860px; display: grid; grid-template-columns: minmax(270px,1fr) minmax(250px,1fr); gap: 55px; align-items: center; min-height: min(580px,72svh); margin: 0 auto; padding: 26px; }
.auth-panel > p { margin: 8px 0 18px; }
.auth-panel form { display: grid; gap: 14px; }
.auth-panel label { display: grid; gap: 5px; font-weight: 500; }
.auth-panel label small { color: var(--muted); font-weight: 400; }
.auth-panel input { min-height: 41px; }
.auth-panel .primary { min-height: 41px; }
.auth-switch { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 9px; margin-top: 15px; }
.auth-aside { border-left: 1px solid var(--border); padding-left: 30px; }
.auth-aside h2 { font-size: 24px; letter-spacing: -.02em; margin: 7px 0 16px; }
.auth-aside p { margin: 18px 0; color: var(--muted); line-height: 1.55; }
.auth-outcomes { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border); border-radius: 8px; }
.auth-outcomes span { display: grid; justify-items: center; padding: 10px 3px; font-size: 12px; color: var(--muted); gap: 2px; }
.auth-outcomes span+span { border-left: 1px solid var(--border); }
.auth-outcomes b { color: var(--accent); font-size: 22px; }
.auth-leagues { color: var(--muted); font-size: 12px; }

@media (max-width: 1060px) {
  .layout { grid-template-columns: minmax(0,1fr); grid-template-rows: 48px auto minmax(calc(100svh - 96px),auto); }
  .sidebar { display: none; }
  .topbar { grid-column: 1; grid-row: 1; padding: 0 18px; }
  .crumb { display: none; }
  .mobile-brand { display: flex; font-size: 19px; }
  .mobile-brand .brand-mark { width: 26px; height: 26px; flex-basis: 26px; border-radius: 6px; }
  .mobile-brand .brand-mark i:nth-child(2) { height: 15px; }
  .mobile-nav { grid-row: 2; display: flex; overflow: auto; gap: 5px; padding: 0 14px 5px; }
  .mobile-nav .nav-button { width: auto; min-height: 40px; padding: 0 9px; }
  .sheet { grid-column: 1; grid-row: 3; margin: 0 8px 8px; padding: 22px; }
  .layout-auth .sheet { grid-row: 2 / 4; }
}
@media (max-width: 680px) {
  :root { --gap: 16px; }
  h1 { font-size: 23px; }
  .layout { grid-template-rows: 48px auto minmax(calc(100svh - 93px),auto); }
  .topbar { padding: 0 16px; }
  .mobile-nav { gap: 3px; padding: 0 8px 4px; }
  .mobile-nav .nav-button { min-height: 44px; gap: 5px; font-size: 13px; }
  .mobile-nav .nav-symbol { display: none; }
  .sheet { margin: 0; padding: 18px 16px; border-left: 0; border-right: 0; border-bottom: 0; border-radius: 13px 13px 0 0; }
  .sheet:has(.analysis-grid) { display: flex; flex-direction: column; }
  .title-row { align-items: start; }
  .title-row p { font-size: 13px; line-height: 1.35; }
  .title-row .button { font-size: 12px; min-height: 44px; padding: 0 8px; }
  .overview div { padding: 9px 7px; }
  .overview span { font-size: 12px; }
  .overview strong { font-size: 22px; }
  .analysis-grid { display: contents; }
  #featured { order: 1; margin-bottom: var(--gap); }
  .board { order: 2; }
  .checks-panel { order: 3; margin-top: var(--gap); height: auto; }
  .comparison-row { grid-template-columns: 103px minmax(25px,1fr) 67px; gap: 6px; }
  .outcome { gap: 4px; font-size: 12px; }
  .outcome b { flex: 0 0 18px; width: 18px; }
  .track-values, .legend, .panel-head p { font-size: 13px; }
  .team { font-size: 14px; }
  .duel { padding-left: 0; padding-right: 0; }
  .board-head { flex-wrap: wrap; padding-bottom: 9px; }
  .filters { width: 100%; }
  .filters input { width: auto; flex: 1; }
  .filters input, .filters select, .button { min-height: 44px; }
  .tabs button { min-height: 44px; }
  .table-head { display: none; }
  .match-row { grid-template-columns: 45px minmax(0,1fr) 68px 9px; grid-template-rows: auto auto; column-gap: 7px; row-gap: 0; padding: 0 10px; min-height: 64px; }
  .match-time, .match-result, .chevron { grid-row: 1 / 3; }
  .match-time { grid-column: 1; }
  .match-name { grid-row: 1; grid-column: 2; font-size: 13px; padding-bottom: 0; }
  .match-percent { grid-row: 2; grid-column: 2; font-size: 13px; text-align: left; color: var(--muted); padding-bottom: 6px; }
  .match-result { grid-column: 3; }
  .chevron { grid-column: 4; }
  .match-result .status { font-size: 10px; padding: 2px 3px; }
  .auth-grid { padding: 18px 3px; grid-template-columns: minmax(0,1fr); gap: 30px; }
  .auth-aside { border-left: 0; border-top: 1px solid var(--border); padding: 15px 0 0; }
  .account-grid { grid-template-columns: minmax(0,1fr); }
}
