/* TOTOBOARD v6.1 Home Sidebar — scoped strictly to sidebar widgets. */
.tb-v2-sidebar .tb610-panel{padding:15px 15px 13px;border:1px solid #e5ebf2;border-radius:12px;background:#fff;box-shadow:0 7px 19px rgba(7,30,53,.04);min-width:0}
.tb-v2-sidebar .tb610-panel-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px}
.tb-v2-sidebar .tb610-panel-title h2{display:flex;align-items:center;gap:7px;font-size:16px;line-height:1.4;font-weight:850;color:#112c49;margin:0;letter-spacing:-.035em}
.tb-v2-sidebar .tb610-panel-title>a{padding:5px 9px;color:#44617b;font-size:11px;border:1px solid #e3e9f0;border-radius:6px;text-decoration:none;white-space:nowrap}
.tb-v2-sidebar .tb610-head-icon{color:#cc9c4d;font-size:19px;line-height:1}
.tb-v2-sidebar .tb610-recent-list{list-style:none;margin:0;padding:0}
.tb-v2-sidebar .tb610-recent-list>li+li{border-top:1px solid #edf1f5}
.tb-v2-sidebar .tb610-recent-link{display:flex;align-items:center;gap:10px;padding:10px 0;text-decoration:none;min-width:0;color:#132e48}
.tb-v2-sidebar .tb610-recent-logo{width:40px;height:40px;border-radius:8px;flex:0 0 40px;overflow:hidden;background:#081e36;display:flex;align-items:center;justify-content:center;color:#f0c675;box-shadow:inset 0 0 0 1px rgba(217,175,101,.5)}
.tb-v2-sidebar .tb610-recent-logo img{width:40px;height:40px;object-fit:cover;display:block}
.tb-v2-sidebar .tb610-recent-logo b{font-family:Georgia,serif;font-size:22px;font-weight:700}
.tb-v2-sidebar .tb610-recent-copy{display:block;min-width:0;flex:1}
.tb-v2-sidebar .tb610-recent-copy strong{display:block;font-size:12px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.55}
.tb-v2-sidebar .tb610-recent-copy small{display:block;font-size:10.5px;color:#8c7049;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tb-v2-sidebar .tb610-chevron{font-size:22px;font-weight:300;color:#9daebe}
.tb-v2-sidebar .tb610-recent-link:hover strong,.tb-v2-sidebar .tb610-recent-link:focus-visible strong{color:#bc8540}
.tb-v2-sidebar .tb610-recent-link:focus-visible,.tb-v2-sidebar .tb610-quick-grid>a:focus-visible{outline:2px solid #c99e58;outline-offset:2px}
.tb-v2-sidebar .tb610-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.tb-v2-sidebar .tb610-quick-grid>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:75px;background:#f8fafc;border:1px solid #e3eaf0;border-radius:9px;text-decoration:none;color:#223e58;text-align:center;transition:background .16s,border-color .16s}
.tb-v2-sidebar .tb610-quick-grid>a:hover{background:#fff9ed;border-color:#d7b576}
.tb-v2-sidebar .tb610-quick-grid>a span{font-size:21px;line-height:1;color:#ba8b43}
.tb-v2-sidebar .tb610-quick-grid>a strong{font-size:12px;line-height:1.3;font-weight:800}
.tb-v2-sidebar .tb610-empty{margin:8px 0 4px;color:#74869a;font-size:12px;line-height:1.65}
@media(max-width:600px){.tb-v2-sidebar .tb610-panel{padding:13px}.tb-v2-sidebar .tb610-panel-title h2{font-size:15px}.tb-v2-sidebar .tb610-recent-copy strong{font-size:12px}}

/* TOTOBOARD v6.2.0 | Adaptive homepage side rail
   CSS-only override. Keeps existing ranking, cards, data, URLs and random logic.
   791px+: compact four-widget rail so it balances with TOP10.
   791px and below: remove inherited empty left column and reflow the widgets.
*/
.tb-v2-home .tb-v2-feature-layout {min-width:0;align-items:start}
.tb-v2-home .tb-v2-sidebar {min-width:0;align-content:start;grid-auto-rows:max-content}
.tb-v2-home .tb-v2-sidebar > * {min-width:0;box-sizing:border-box}
.tb-v2-home .tb-v2-sidebar .tb610-recent-link,
.tb-v2-home .tb-v2-sidebar .tb610-quick-grid > a {box-sizing:border-box}
.tb-v2-home .tb-v2-ranking {min-width:0}
.tb-v2-home .tb-v2-ranking .tb-table-scroll {max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}

/* Shared measured proportions: smaller whitespace, unchanged readable text. */
.tb-v2-home .tb-v2-sidebar .tb610-panel {padding:12px 13px;min-height:0}
.tb-v2-home .tb-v2-sidebar .tb610-panel-title {margin-bottom:7px;gap:8px}
.tb-v2-home .tb-v2-sidebar .tb610-panel-title h2 {font-size:15px;line-height:1.35;min-width:0}
.tb-v2-home .tb-v2-sidebar .tb610-panel-title > a {padding:4px 8px;font-size:11px}
.tb-v2-home .tb-v2-sidebar .tb610-head-icon {font-size:17px}
.tb-v2-home .tb-v2-sidebar .tb610-recent-link {padding:6px 0;min-height:47px;gap:9px}
.tb-v2-home .tb-v2-sidebar .tb610-recent-logo {width:35px;height:35px;flex:0 0 35px;border-radius:7px}
.tb-v2-home .tb-v2-sidebar .tb610-recent-logo img {width:35px;height:35px}
.tb-v2-home .tb-v2-sidebar .tb610-recent-logo b {font-size:20px}
.tb-v2-home .tb-v2-sidebar .tb610-recent-copy strong {line-height:1.45}
.tb-v2-home .tb-v2-sidebar .tb610-recent-copy small {line-height:1.4}
.tb-v2-home .tb-v2-sidebar .tb610-chevron {font-size:20px;line-height:1}
.tb-v2-home .tb-v2-sidebar .tb610-quick-grid {gap:8px}
.tb-v2-home .tb-v2-sidebar .tb610-quick-grid > a {min-height:60px;padding:7px 4px;gap:5px;border-radius:8px}
.tb-v2-home .tb-v2-sidebar .tb610-quick-grid > a span {font-size:19px}
.tb-v2-home .tb-v2-sidebar .tb610-quick-grid > a strong {font-size:11px;line-height:1.25}

/* Desktop: bring the right-hand rail closer to the actual TOP10 height. */
@media (min-width:791px) {
  .tb-v2-home .tb-v2-sidebar {gap:9px;grid-template-columns:minmax(0,1fr)}
  .tb-v2-home .tb-v2-sidebar > * {grid-column:1/-1;grid-row:auto}
  .tb-v2-home .tb-v2-sidebar > .tb-v2-today {padding:10px 12px}
  .tb-v2-home .tb-v2-sidebar > .tb-v2-today .tb-v2-news-row {padding:3px 0;min-width:0;line-height:1.35}
  .tb-v2-home .tb-v2-sidebar > .tb-v2-contact {min-height:58px;padding:7px 10px}
  .tb-v2-home .tb-v2-sidebar > .tb-v2-contact .tb-v2-contact-icon {width:38px;height:38px;font-size:23px}
}

/* Narrow desktop: prevent fixed 270px side rail from squeezing the rank table. */
@media (min-width:791px) and (max-width:1050px) {
  .tb-v2-home .tb-v2-feature-layout {grid-template-columns:minmax(0,1.7fr) minmax(255px,1fr);gap:11px}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-copy strong {font-size:11.5px}
  .tb-v2-home .tb-v2-sidebar .tb610-quick-grid > a strong {font-size:10.5px}
}

/* Tablet/mobile: the old theme pinned Today and Contact to column 2.
   That left an entire empty column beside them after the guarantee card was removed. */
@media (max-width:790px) {
  .tb-v2-home .tb-v2-feature-layout {grid-template-columns:minmax(0,1fr)!important;gap:13px}
  .tb-v2-home .tb-v2-sidebar {display:grid;grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row;gap:10px;align-content:start}
  .tb-v2-home .tb-v2-sidebar > .tb-v2-guarantee,
  .tb-v2-home .tb-v2-sidebar > .tb-v2-today,
  .tb-v2-home .tb-v2-sidebar > .tb-v2-contact,
  .tb-v2-home .tb-v2-sidebar > .tb610-panel {grid-column:1/-1!important;grid-row:auto!important;width:100%;min-width:0}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-list {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-list > li {min-width:0;border-top:1px solid #edf1f5}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-list > li:first-child,
  .tb-v2-home .tb-v2-sidebar .tb610-recent-list > li:nth-child(2) {border-top:0}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-list > li + li {border-top:1px solid #edf1f5}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-list > li:nth-child(2) {border-top:0}
  .tb-v2-home .tb-v2-sidebar .tb610-quick-grid {grid-template-columns:repeat(4,minmax(0,1fr))}
  .tb-v2-home .tb-v2-sidebar .tb610-quick-grid > a {min-height:70px}
  .tb-v2-home .tb-v2-sidebar > .tb-v2-today {padding:12px 14px}
  .tb-v2-home .tb-v2-sidebar > .tb-v2-contact {min-height:62px;padding:9px 13px}
}

/* Small phones: one recent item per row and 2x2 shortcuts for comfortable tapping. */
@media (max-width:570px) {
  .tb-v2-home .tb-v2-sidebar {gap:9px}
  .tb-v2-home .tb-v2-sidebar .tb610-panel {padding:12px}
  .tb-v2-home .tb-v2-sidebar .tb610-panel-title h2 {font-size:15px}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-list {display:block}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-list > li:first-child {border-top:0}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-list > li:nth-child(2) {border-top:1px solid #edf1f5}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-link {min-height:49px;padding:7px 0;gap:10px}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-logo {width:36px;height:36px;flex:0 0 36px}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-logo img {width:36px;height:36px}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-copy strong {font-size:12px}
  .tb-v2-home .tb-v2-sidebar .tb610-recent-copy small {font-size:10px}
  .tb-v2-home .tb-v2-sidebar .tb610-quick-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .tb-v2-home .tb-v2-sidebar .tb610-quick-grid > a {min-height:67px;gap:5px}
  .tb-v2-home .tb-v2-sidebar > .tb-v2-today {padding:11px 12px}
  .tb-v2-home .tb-v2-sidebar .tb-v2-news-row {min-width:0}
  .tb-v2-home .tb-v2-sidebar .tb-v2-newstitle {min-width:0}
}
