.tbvo-page{
  width: 100%;
  color: #eaf7ff;
}

.tbvo-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.42);
  z-index: 29;
}

.tbvo-wrap{
  margin-top: 18px;
  background: #1b1b1f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
}

.tbvo-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 12px;
  align-items: start;
}

.tbvo-card{
  min-width: 0;
  background: #232327;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 12px;
  overflow: hidden;
}

.tbvo-card--setup{
  overflow: visible;
}

.tbvo-card--result{
  position: static;
}

.tbvo-title{
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: #2bbcff;
}

.tbvo-topbar{
  display: grid;
  grid-template-columns: 126px 176px 120px 120px 120px;
  gap: 8px;
  margin-bottom: 10px;
  align-items: end;
}

.tbvo-field{
  margin-bottom: 0;
  min-width: 0;
}

.tbvo-field label{
  display: block;
  margin-bottom: 5px;
  font-weight: 700;
  color: #d8e7f3;
  font-size: .82rem;
  line-height: 1.15;
  min-height: 1.9rem;
}

.tbvo-label-with-help{
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}

.tbvo-stat-label{
  display: flex !important;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  width: fit-content;
}

.tbvo-stat-label .tbvo-stat-label-text{
  display: block !important;
  margin: 0 !important;
  color: #b6c8d7;
  font-size: .8rem;
  line-height: 1.15;
}

.tbvo-help{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: rgba(43,188,255,.14);
  border: 1px solid rgba(43,188,255,.28);
  color: #9be4ff;
  font-size: .7rem;
  font-weight: 800;
  cursor: help;
  user-select: none;
  flex: 0 0 auto;
  margin: 0 !important;
}

.tbvo-field input{
  width: 100%;
  box-sizing: border-box;
  background: #2d2d32;
  color: #f3fbff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 9px 10px;
  outline: none;
  font-size: .9rem;
  min-width: 0;
}

.tbvo-field input:focus,
.tbvo-slider-pct:focus{
  border-color: #2bbcff;
  box-shadow: 0 0 0 3px rgba(43,188,255,.18);
}

.tbvo-field--hero{
  position: relative;
}

.tbvo-hero-trigger{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #2d2d32;
  color: #f3fbff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
}

.tbvo-hero-trigger:hover{
  border-color: rgba(43,188,255,.35);
}

.tbvo-hero-caret{
  opacity: .9;
  font-size: .88rem;
}

.tbvo-hero-picker{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 30;
  width: min(760px, 94vw);
  max-height: min(84vh, 760px);
  overflow: auto;
  background: #1f1f23;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 18px 36px rgba(0,0,0,.38);
}

.tbvo-hero-picker-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #eef9ff;
}

.tbvo-hero-close{
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: #2c2c31;
  color: #eef9ff;
  border-radius: 8px;
  padding: 4px 8px;
  cursor: pointer;
  font-weight: 700;
}

.tbvo-matrices{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.tbvo-matrix-card{
  min-width: 0;
  background: #1f1f23;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px;
  overflow: hidden;
}

.tbvo-matrix-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
  min-width: 0;
}

.tbvo-matrix-head h4{
  margin: 0 0 3px;
  font-size: .96rem;
  color: #f4fbff;
}

.tbvo-matrix-head p{
  margin: 0;
  color: #b6c8d7;
  font-size: .84rem;
  line-height: 1.2;
}

.tbvo-meta{
  white-space: nowrap;
  color: #8fdcff;
  font-weight: 700;
  font-size: .84rem;
  flex: 0 0 auto;
}

.tbvo-matrix-wrap{
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.tbvo-matrix{
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 3px;
  width: 100%;
  min-width: 350px;
}

.tbvo-matrix--hero{
  min-width: 520px;
}

.tbvo-cell{
  appearance: none;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
  min-height: 28px;
  padding: 0;
  font-size: .66rem;
  font-weight: 700;
  color: #edf8ff;
  cursor: pointer;
  transition: .12s ease;
  user-select: none;
}

.tbvo-cell.is-pair{
  background: #3c3454;
}

.tbvo-cell.is-suited{
  background: #224458;
}

.tbvo-cell.is-offsuit{
  background: #4f352f;
}

.tbvo-cell:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.18);
}

#tbvo-or-grid .tbvo-cell.is-selected,
#tbvo-hero-grid .tbvo-cell.is-selected{
  background: linear-gradient(180deg, #3bc4ff, #1f84d6);
  color: #08151d;
  border-color: rgba(59,196,255,.75);
}

#tbvo-call-grid .tbvo-cell.is-selected{
  background: linear-gradient(180deg, #ffb84d, #ff7b39);
  color: #1b0f06;
  border-color: rgba(255,184,77,.75);
}

#tbvo-call-grid .tbvo-cell.is-disabled{
  background: #232327;
  color: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.05);
  cursor: not-allowed;
  transform: none;
}

.tbvo-tools{
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.tbvo-slider-box{
  background: #25252a;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px;
}

.tbvo-slider-top{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.tbvo-slider-value-box{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.tbvo-slider-pct{
  width: 68px;
  box-sizing: border-box;
  background: #2d2d32;
  color: #f3fbff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 9px;
  padding: 6px 8px;
  outline: none;
  font-size: .82rem;
  text-align: right;
}

.tbvo-slider-value-box span{
  font-size: .82rem;
  color: #8fdcff;
  font-weight: 700;
}

.tbvo-slider{
  width: 100%;
  margin: 0 0 10px;
  accent-color: #2bbcff;
  cursor: pointer;
}

.tbvo-chip-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tbvo-mini-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tbvo-mini-btn,
.tbvo-chip{
  appearance: none;
  border: 1px solid rgba(255,255,255,.12);
  background: #2c2c31;
  color: #eef9ff;
  border-radius: 10px;
  cursor: pointer;
  transition: .15s ease;
  font-weight: 700;
}

.tbvo-mini-btn{
  padding: 7px 10px;
  font-size: .8rem;
}

.tbvo-chip{
  padding: 6px 10px;
  font-size: .78rem;
  border-radius: 999px;
}

.tbvo-mini-btn:hover,
.tbvo-chip:hover{
  border-color: rgba(43,188,255,.45);
  background: #313137;
}

.tbvo-stats{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.tbvo-stat{
  background: #2b2b30;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 11px;
  min-width: 0;
}

.tbvo-stat > span{
  display: block;
  font-size: .8rem;
  color: #b6c8d7;
  margin-bottom: 3px;
}

.tbvo-stat strong{
  font-size: .98rem;
  color: #f4fbff;
  word-break: break-word;
}

.tbvo-stat strong.is-good{
  color: #63e6be;
}

.tbvo-stat strong.is-bad{
  color: #ff7b7b;
}

.tbvo-bar-block{
  margin: 12px 0 14px;
}

.tbvo-bar-head{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
  font-size: .88rem;
  color: #d6e5ef;
}

.tbvo-bar{
  width: 100%;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: #36363b;
  border: 1px solid rgba(255,255,255,.08);
}

.tbvo-bar-fill{
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff5b4d, #ffb11b);
  transition: width .18s ease;
}

.tbvo-breakdown{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.tbvo-break-card{
  background: #2b2b30;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 10px 11px;
  min-width: 0;
}

.tbvo-break-card span{
  display: block;
  font-size: .79rem;
  color: #b6c8d7;
  margin-bottom: 3px;
  line-height: 1.15;
}

.tbvo-break-card strong{
  color: #f4fbff;
  font-size: .95rem;
  word-break: break-word;
}

/* ===== Spot visual ===== */

.tbvo-mini-table{
  margin-top: 12px;
  background: #1f1f23;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px;
}

.tbvo-mini-table-title{
  margin-bottom: 8px;
  font-size: .84rem;
  font-weight: 700;
  color: #d8e7f3;
}

.tbvo-felt{
  position: relative;
  min-height: 175px;
  border-radius: 50% / 38%;
  background:
    radial-gradient(circle at center, rgba(43,188,255,.07), transparent 58%),
    linear-gradient(180deg, #182129, #10161c);
  border: 1px solid rgba(43,188,255,.12);
}

.tbvo-seat{
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 52px;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  text-align: center;
  line-height: 1.05;
}

.tbvo-seat span{
  font-size: .68rem;
  color: #b6c8d7;
}

.tbvo-seat strong{
  font-size: .82rem;
  color: #f4fbff;
}

.tbvo-seat small{
  font-size: .66rem;
  color: #8fdcff;
}

.tbvo-seat--top{
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.tbvo-seat--left{
  top: 68px;
  left: 18px;
}

.tbvo-seat--right{
  top: 68px;
  right: 18px;
}

.tbvo-seat--bottom{
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.tbvo-pot{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 58px;
  padding: 5px 8px;
  border-radius: 999px;
  text-align: center;
  background: rgba(255,184,77,.12);
  border: 1px solid rgba(255,184,77,.2);
}

.tbvo-pot span{
  display: block;
  font-size: .62rem;
  color: #f3d8a4;
  margin-bottom: 1px;
}

.tbvo-pot strong{
  color: #fff2d8;
  font-size: .76rem;
}

/* ===== Responsive ===== */

@media (max-width: 1500px){
  .tbvo-grid{
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .tbvo-topbar{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1320px){
  .tbvo-grid{
    grid-template-columns: 1fr;
  }

  .tbvo-matrices{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px){
  .tbvo-breakdown{
    grid-template-columns: 1fr;
  }
}