/* Книга ставок. Те же maroon-цвета, что у матчей: плоские панели, табличные цифры. */
.shell.bets-open { max-width: 1480px; padding-top: 18px; }
.bets-view {
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.bets-side {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 16px;
  min-height: calc(100vh - 120px);
}
.bets-brand {
  margin: 2px 8px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f2ece8;
}
.bets-side-label {
  margin: 16px 8px 6px;
  color: #7a6a68;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bets-nav, .bets-tour {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c9b0b6;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bets-nav.is-on, .bets-tour.is-on { background: #32161a; color: #f2ece8; }
.bets-nav:hover, .bets-tour:hover { color: #f2ece8; }
.bets-tour b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 550;
}
.bets-tour span { color: #7a6a68; font-variant-numeric: tabular-nums; flex: none; }
.bets-side-spacer { flex: 1; min-height: 28px; }
.bets-ghost {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #3a181c;
  border-radius: 8px;
  background: transparent;
  color: #c9b0b6;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bets-ghost:hover { border-color: #4a282c; color: #f2ece8; }
.bets-main { min-width: 0; }
.bets-create { display: flex; gap: 10px; align-items: flex-end; }
.bets-create label, .bets-fields label, .bets-coupon-grid > label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #9a8a88;
  font-size: 12px;
}
.bets-create label { flex: 1; min-width: 0; }
.bets-create input, .bets-fields input, .bets-fields select, .bets-coupon textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #3a181c;
  border-radius: 8px;
  background: #1a0c0e;
  color: #f2ece8;
  font: inherit;
}
.bets-create input:focus, .bets-fields input:focus, .bets-fields select:focus, .bets-coupon textarea:focus {
  outline: 1px solid #f5d76e;
  border-color: #f5d76e;
}
.bets-create button, .bets-coupon-actions button, #betsCouponBtn, #betsFileBtn, #betsPaste {
  padding: 9px 14px;
  border: 1px solid #4a282c;
  border-radius: 8px;
  background: #32161a;
  color: #f2ece8;
  font: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.bets-create button { background: #f2ece8; color: #14080a; border-color: #f2ece8; font-weight: 650; }
.bets-create button:hover { background: #fff; }
#betsCouponBtn.is-on, #betsFileBtn:hover, #betsPaste:hover, .bets-coupon-actions button:hover {
  border-color: #8a6a32;
  color: #f5d76e;
}
.bets-periods { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 16px 0 8px; }
.bets-periods-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.bets-periods-tabs button {
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #9a8a88;
  font: inherit;
  cursor: pointer;
}
.bets-periods-tabs button.is-on { background: #32161a; border-color: #4a282c; color: #f2ece8; }
.bets-fx { display: flex; align-items: center; gap: 6px; }
.bets-fx button {
  width: 36px;
  height: 32px;
  padding: 0;
  border: 1px solid #4a282c;
  border-radius: 8px;
  background: #1a0c0e;
  color: #9a8a88;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.bets-fx button.is-on { border-color: #8a6a32; background: #32161a; color: #f5d76e; }
.bets-fx button:hover { color: #f2ece8; }
.bets-rate {
  margin-left: 4px;
  color: #9a8a88;
  font-size: 12px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.bets-rate b { color: #f5d76e; font-weight: 650; }
.bets-slice { margin: 0 0 12px; color: #7a6a68; font-size: 12px; letter-spacing: 0.04em; }
.bets-hero { display: block; }
.bets-kicker { margin: 0 0 4px; color: #9a8a88; font-size: 12px; }
.bets-bank-row { display: flex; align-items: center; gap: 16px; }
.bets-bank {
  margin: 0;
  color: #9a8a88;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.bets-bank.is-pos { color: #36c977; }
.bets-bank.is-neg { color: #f45d5d; }
.bets-spark { width: 156px; height: 48px; flex: none; }
.bets-spark .series { fill: none; stroke: #f2ece8; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.bets-draw { margin: 8px 0 0; color: #9a8a88; font-size: 13px; font-variant-numeric: tabular-nums; }
.bets-hero-right { text-align: right; }
.bets-profit {
  margin: 0;
  color: #36c977;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.bets-profit.is-neg { color: #f45d5d; }
.bets-open { margin: 8px 0 0; color: #9a8a88; font-size: 13px; font-variant-numeric: tabular-nums; }
.bets-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 14px 0 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.bets-kpi span {
  display: block;
  color: #7a6a68;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bets-kpi b {
  display: block;
  margin-top: 4px;
  color: #f2ece8;
  font-size: 22px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.bets-chart { margin: 8px 0 18px; }
.bets-chart svg { display: block; width: 100%; height: auto; }
.bets-chart .grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.bets-chart .tick { fill: #7a6a68; font-size: 11px; }
.bets-chart .series { fill: none; stroke: #f2ece8; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.bets-chart .guide { stroke: rgba(242, 236, 232, 0.32); stroke-dasharray: 2 4; }
.bets-chart .mark-label { fill: #9a8a88; font-size: 10px; }
.bets-chart .end-label { fill: #f2ece8; font-size: 12px; }
.bets-chart-empty, .bets-empty { color: #9a8a88; }
.bets-table-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 8px;
}
.bets-table-bar h2 {
  margin: 0;
  color: #9a8a88;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bets-table-wrap { overflow-x: auto; }
.bets-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bets-table.bets-matches { min-width: 920px; table-layout: auto; }
.bets-table th:first-child, .bets-table td:first-child { width: 32%; }
.bets-table th {
  padding: 8px 8px 10px;
  color: #7a6a68;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: right;
}
.bets-table td {
  padding: 9px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.bets-table th:first-child, .bets-table td:first-child, .bets-table .bets-text { text-align: left; }
.bets-table td:not(:first-child), .bets-table th:not(:first-child) { white-space: nowrap; }
.bets-table tbody tr:hover td { background: #32181c; }
.bets-total td { font-weight: 650; color: #f2ece8; }
.bets-name {
  padding: 0;
  border: 0;
  background: none;
  color: #f2ece8;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(242, 236, 232, 0.4);
  text-underline-offset: 3px;
  cursor: pointer;
}
.bets-name:hover { color: #f5d76e; text-decoration-color: #f5d76e; }
.bets-table tr.is-file-target td {
  background: rgba(245, 215, 110, 0.1);
  box-shadow: inset 0 1px 0 #f5d76e, inset 0 -1px 0 #f5d76e;
}
.bets-table tr.is-file-target td:first-child {
  box-shadow: inset 2px 0 0 #f5d76e, inset 0 1px 0 #f5d76e, inset 0 -1px 0 #f5d76e;
}
.bets-table tr.is-file-target td:last-child {
  box-shadow: inset -2px 0 0 #f5d76e, inset 0 1px 0 #f5d76e, inset 0 -1px 0 #f5d76e;
}
.bets-tour.is-file-target { outline: 1px solid #f5d76e; outline-offset: 0; background: #32181c; }
.bets-table-wrap.is-file-target { outline: 1px solid #f5d76e; outline-offset: 2px; }
.bets-shot {
  display: block;
  width: 100%;
  max-height: 280px;
  margin: 0;
  object-fit: contain;
  border: 0;
  background: #0e0608;
}
.bets-pill {
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid #3a181c;
  border-radius: 4px;
  color: #c9b0b6;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.bets-flash td:first-child { box-shadow: inset 2px 0 0 #f5d76e; }
.is-pos { color: #36c977; }
.is-neg { color: #f45d5d; }
.bets-coupon {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(220px, 300px);
  gap: 10px 14px;
  align-items: start;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #3a181c;
  border-radius: 8px;
  background: #16080c;
}
.bets-drop {
  grid-column: 3;
  grid-row: 1 / span 4;
  width: auto;
  margin: 0;
  padding: 10px;
  border: 1px dashed #4a282c;
  border-radius: 8px;
  background: #1a0c0e;
}
.bets-drop.is-file-target { border-color: #f5d76e; background: #32181c; }
.bets-drop.is-filled { border-style: solid; }
.bets-drop-empty {
  display: grid;
  place-items: center;
  min-height: 148px;
  margin: 0 0 8px;
  color: #7a6a68;
  font-size: 13px;
  text-align: center;
}
.bets-drop.is-filled .bets-shot { margin-bottom: 8px; }
#betsPaste { width: 100%; }
.bets-coupon-grid { display: grid; grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr); gap: 16px; }
.bets-coupon textarea { min-height: 240px; resize: vertical; }
.bets-fields { display: contents; }
.bets-fields label { min-width: 0; }
.bets-span { grid-column: 1 / -1; }
.bets-coupon .bets-span { grid-column: 1 / 3; }
.bets-coupon > .bets-hint,
.bets-coupon > .bets-status { grid-column: 1 / -1; }
.bets-coupon-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bets-hint, .bets-file-note, .bets-note { margin: 8px 0 0; color: #7a6a68; font-size: 12px; }
.bets-status { min-height: 1.2em; margin: 8px 0 0; color: #9a8a88; font-size: 13px; }
.bets-status.is-ok { color: #36c977; }
.bets-status.is-err { color: #f45d5d; }
.bets-note { margin-top: 16px; }
.bets-stream {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(10, 4, 6, 0.78);
}
.bets-stream-card {
  position: relative;
  width: min(480px, 92vw);
  padding: 36px 40px 32px;
  border: 1px solid #3a181c;
  background: #16080c;
}
.bets-stream-card .bets-bank { font-size: 56px; }
#betsStreamClose { position: absolute; top: 12px; right: 12px; }
@media (max-width: 980px) {
  .bets-view { grid-template-columns: 1fr; }
  .bets-side { position: static; min-height: 0; }
  .bets-side-spacer { display: none; }
  .bets-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .bets-create, .bets-coupon-grid, .bets-hero { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; }
  .bets-coupon { grid-template-columns: 1fr; }
  .bets-drop { grid-column: 1; grid-row: auto; }
  .bets-fields { display: grid; grid-template-columns: 1fr; }
  .bets-coupon .bets-span,
  .bets-coupon > .bets-hint,
  .bets-coupon > .bets-status { grid-column: 1; }
  .bets-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bets-bank { font-size: 36px; }
}
