.app-shell{
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --sidebar-width: 250px;
}.app-shell, .app-shell *{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}.app-shell.dark-theme{
  --bg-body: #0b0f15;
  --bg-sidebar: #10151f;
  --bg-table: #131822;
  --bg-header: #171d28;
  --bg-sub-header: #141a24;
  --bg-league: #19222f;
  --bg-row-even: #131822;
  --bg-row-odd: #151b26;
  --bg-row-hover: #1f2736;
  --border-cell: #212c3b;
  --border-strong: #2a374a;
  --text-main: #ffffff;
  --text-silver: #cbd5e1;
  --text-muted: #8292a6;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-gold: #f59e0b;
  --accent-blue: #38bdf8;
  --search-bg: #1c2533;
  --search-border: #2d3847;
  --pill-bg: #151c27;
  --pill-border: #232f3e;
  --pill-hover: #1f2a3a;
  --pill-active-bg: #38bdf8;
  --pill-active-text: #041829;
  --odd-hover-bg: #2a3647;
  --date-tabs-bg: #161d28;
  --date-tab-active-bg: #263345;
  --card-bg: #182029;
  --shadow-table: 0 4px 20px rgba(0, 0, 0, 0.5);
  --modal-overlay: rgba(0, 0, 0, 0.75);
}.app-shell.light-theme{
  --bg-body: #f4f6f9;
  --bg-sidebar: #ffffff;
  --bg-table: #ffffff;
  --bg-header: #e6ecf2;
  --bg-sub-header: #f1f5f9;
  --bg-league: #e6ecf2;
  --bg-row-even: #ffffff;
  --bg-row-odd: #f8fafc;
  --bg-row-hover: #eaf1f8;
  --border-cell: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-main: #0f172a;
  --text-silver: #334155;
  --text-muted: #64748b;
  --accent-green: #059669;
  --accent-red: #dc2626;
  --accent-gold: #d97706;
  --accent-blue: #0284c7;
  --search-bg: #ffffff;
  --search-border: #cbd5e1;
  --pill-bg: #f8fafc;
  --pill-border: #e2e8f0;
  --pill-hover: #e8eef5;
  --pill-active-bg: #0284c7;
  --pill-active-text: #ffffff;
  --odd-hover-bg: #e0f2fe;
  --date-tabs-bg: #edf2f7;
  --date-tab-active-bg: #ffffff;
  --card-bg: #ffffff;
  --shadow-table: 0 4px 16px rgba(0, 0, 0, 0.08);
  --modal-overlay: rgba(15, 23, 42, 0.5);
}.app-shell{
  background-color: var(--bg-body);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 12.5px;
  line-height: 1.35;
  overflow-x: auto;
  transition: background-color 0.2s ease, color 0.2s ease;
}.app-shell{
  display: flex;
  min-height: 100vh;
  width: 100%;
}.app-shell .site-sidebar{
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-cell);
  display: flex;
  flex-direction: column;
  padding: 18px 14px 14px;
  box-sizing: border-box;
  z-index: 1000;
  overflow: hidden;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}.app-shell .sidebar-header{
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-cell);
  margin-bottom: 14px;
}.app-shell .brand{
  display: flex;
  align-items: center;
  gap: 10px;
}.app-shell .brand-logo{
  font-size: 22px;
  color: var(--accent-gold);
}.app-shell .brand-text .title{
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--text-main);
}.app-shell .brand-text .subtitle{
  font-size: 10.5px;
  color: var(--accent-blue);
  font-weight: 600;
}.app-shell .sidebar-group{
  margin-bottom: 14px;
}.app-shell .sidebar-label{
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}.app-shell .date-quick-tabs{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--date-tabs-bg);
  border: 1px solid var(--border-cell);
  border-radius: 6px;
  padding: 3px;
}.app-shell .btn-tab{
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}.app-shell .btn-tab:hover{
  color: var(--text-main);
}.app-shell .btn-tab.active{
  background: var(--date-tab-active-bg);
  color: var(--text-main);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}.app-shell .date-picker-wrap{
  margin-top: 6px;
}.app-shell .dark-date-input{
  width: 100%;
  box-sizing: border-box;
  background: var(--date-tabs-bg);
  border: 1px solid var(--border-cell);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 11.5px;
  padding: 6px 8px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}.app-shell .dark-date-input:focus{
  border-color: var(--accent-blue);
}.app-shell .sidebar-leagues-group{
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 12px;
}.app-shell .header-pills{
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
  scrollbar-width: thin;
}.app-shell .pill{
  display: flex;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  background: var(--pill-bg);
  border: 1px solid var(--pill-border);
  color: var(--text-silver);
  padding: 7px 10px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  transition: all 0.15s;
}.app-shell .pill:hover{
  background: var(--pill-hover);
  color: var(--text-main);
}.app-shell .pill.active{
  background: var(--pill-active-bg);
  border-color: var(--pill-active-bg);
  color: var(--pill-active-text);
  font-weight: 700;
}.app-shell .pill-divider{
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  padding: 8px 4px 2px;
  text-transform: uppercase;
  border-top: 1px solid var(--border-cell);
  margin-top: 4px;
}.app-shell .sidebar-coupon-box{
  background: var(--date-tabs-bg);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.08);
}.app-shell .coupon-box-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}.app-shell .coupon-box-title{
  font-size: 11.5px;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.3px;
}.app-shell .btn-clear-favs{
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: all 0.15s;
}.app-shell .btn-clear-favs:hover{
  color: var(--accent-red);
  background: rgba(239, 68, 68, 0.12);
}.app-shell .btn-copy-slip{
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}.app-shell .btn-copy-slip:hover{
  filter: brightness(1.1);
  transform: translateY(-1px);
}.app-shell .pill-fav{
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-color: rgba(245, 158, 11, 0.3) !important;
}.app-shell .pill-fav.active{
  background: #f59e0b !important;
  border-color: #f59e0b !important;
  color: #000000 !important;
}.app-shell .fav-count-badge{
  background: var(--date-tab-active-bg);
  color: var(--accent-gold);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}.app-shell .pill-fav.active .fav-count-badge{
  background: #000000;
  color: #f59e0b;
}.app-shell .sidebar-footer{
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-cell);
  display: flex;
  flex-direction: column;
  gap: 6px;
}.app-shell .sidebar-action-btn{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--pill-bg);
  border: 1px solid var(--border-cell);
  color: var(--text-silver);
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s;
}.app-shell .sidebar-action-btn:hover{
  background: var(--pill-hover);
  color: var(--text-main);
}.app-shell .action-icon{
  font-size: 14px;
}.app-shell .main-content{
  flex: 1;
  min-width: 0;
  padding: 16px 20px 40px;
  overflow-x: auto;
}.app-shell .bulten-container{
  max-width: 1400px;
  margin: 0 auto;
  min-width: 1120px;
}.app-shell .table-frame{
  background: var(--bg-table);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  box-shadow: var(--shadow-table);
}.app-shell .matrix-table{
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  table-layout: auto;
}.app-shell .tr-group-header{
  background: var(--bg-header);
  border-bottom: 1px solid var(--border-cell);
}.app-shell .tr-group-header th{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-header);
  background-clip: padding-box;
}.app-shell .th-search-cell{
  text-align: left;
  padding: 8px 12px;
  border-right: 1px solid var(--border-cell);
  min-width: 460px;
}.app-shell .search-box-inner{
  display: flex;
  align-items: center;
  background: var(--search-bg);
  border: 1px solid var(--search-border);
  border-radius: 6px;
  padding: 6px 12px;
}.app-shell .search-glyph{
  font-size: 14px;
  margin-right: 8px;
  opacity: 0.8;
}.app-shell .search-box-inner input{
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 12.5px;
  width: 100%;
  font-family: inherit;
}.app-shell .search-box-inner input::placeholder{
  color: var(--text-muted);
}.app-shell .count-tag{
  background: rgba(2, 132, 199, 0.15);
  color: var(--accent-blue);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  white-space: nowrap;
}.app-shell .th-cat{
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  border-right: 1px solid var(--border-cell);
  letter-spacing: 0.2px;
}.app-shell .th-cat:last-child{
  border-right: none;
}.app-shell .cat-ms{ width: 132px; }.app-shell .cat-iy{ width: 132px; }.app-shell .cat-hcap{ width: 176px; }.app-shell .cat-ou{ width: 88px; }.app-shell .cat-kg{ width: 88px; }.app-shell .tr-sub-header{
  background: var(--bg-sub-header);
  border-bottom: 2px solid var(--border-strong);
}.app-shell .tr-sub-header th{
  position: sticky;
  top: 44px;
  z-index: 45;
  background: var(--bg-sub-header);
  background-clip: padding-box;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}.app-shell .th-sub{
  padding: 6px 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  border-right: 1px solid var(--border-cell);
}.app-shell .th-sub:last-child{
  border-right: none;
}.app-shell .col-star{ width: 28px; min-width: 28px; text-align: center; }.app-shell .th-sub.col-star{
  cursor: pointer;
  user-select: none;
  transition: all 0.15s;
}.app-shell .th-sub.col-star:hover,
.app-shell .th-sub.col-star.active{
  color: var(--accent-gold);
  background: rgba(245, 158, 11, 0.15);
}.app-shell .col-time{ width: 52px; min-width: 52px; text-align: center; }.app-shell .col-match{ min-width: 360px; text-align: left; padding-left: 14px !important; }.app-shell .col-action{ width: 32px; min-width: 32px; text-align: center; }.app-shell .col-odd{ width: 44px; min-width: 44px; }.app-shell .col-h-line{width:36px;min-width:36px;text-align:center}.app-shell .tr-league-banner td{
  background: var(--bg-league);
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-cell);
  padding: 6px 12px;
  text-align: left;
}.app-shell .league-banner-content{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}.app-shell .league-ico{
  font-size: 15px;
}.app-shell .league-name-text{
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: var(--text-main);
  text-transform: uppercase;
}.app-shell .badge-target-db{
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
  font-size: 9.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 3px;
}.app-shell .badge-tier1{
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid var(--accent-green);
  color: var(--accent-green);
}.app-shell .badge-tier2{
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid #3b82f6;
  color: #60a5fa;
}.app-shell .league-day-tag{
  font-size: 11.5px;
  color: var(--text-muted);
  margin-left: 12px;
}.app-shell .tr-match-row{
  background: var(--bg-row-even);
  border-bottom: 1px solid var(--border-cell);
  transition: background-color 0.12s ease;
}.app-shell .tr-match-row:nth-child(even){
  background: var(--bg-row-odd);
}.app-shell .tr-match-row:hover{
  background: var(--bg-row-hover);
}.app-shell .td-star{
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 15px;
  user-select: none;
  border-right: 1px solid var(--border-cell);
}.app-shell .td-star.active{ color: var(--accent-gold); }.app-shell .td-time{
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-silver);
  text-align: center;
  border-right: 1px solid var(--border-cell);
}.app-shell .td-match{
  text-align: left;
  padding: 8px 14px;
  font-weight: 500;
  color: var(--text-main);
  font-size: 13px;
  border-right: 1px solid var(--border-cell);
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  min-width: 360px;
}.app-shell .td-match a{
  color: inherit;
  text-decoration: none;
}.app-shell .td-match a:hover{
  color: var(--accent-blue);
  text-decoration: underline;
}.app-shell .td-action{
  text-align: center;
  border-right: 1px solid var(--border-cell);
  padding: 4px;
}.app-shell .btn-crown-copy{
  background: var(--accent-green);
  border: 1px solid var(--accent-green);
  color: white;
  width: 24px;
  height: 22px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 11px;
  transition: all 0.15s;
}.app-shell .btn-crown-copy:hover{
  filter: brightness(1.15);
  transform: scale(1.1);
}.app-shell .td-odd{
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-main);
  text-align: center;
  border-right: 1px solid var(--border-cell);
  padding: 9px 2px;
  cursor: pointer;
  transition: background-color 0.12s;
  user-select: none;
}.app-shell .td-odd:last-child{
  border-right: none;
}.app-shell .td-odd:hover{
  background: var(--odd-hover-bg);
  color: var(--accent-blue);
  font-weight: 600;
}.app-shell .td-h-line{
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  border-right: 1px solid var(--border-cell);
}.app-shell .dark-state{
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-table);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  margin-top: 15px;
  color: var(--text-main);
}.app-shell .dark-spinner{
  width: 38px;
  height: 38px;
  border: 3px solid var(--border-strong);
  border-top-color: var(--accent-green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}.app-shell .warn-icon{
  font-size: 32px;
  margin-bottom: 8px;
  display: block;
}.app-shell .btn-dark-primary{
  background: var(--accent-green);
  color: #ffffff;
  font-weight: 700;
  border: none;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}.bulletin-page .toast{
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #176b35;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.25s ease;
  pointer-events: none;
  z-index: 3000;
}.bulletin-page .toast.show{
  opacity: 1;
  transform: translateY(0);
}

.app-shell .bulletin-live-status{display:flex;align-items:center;gap:8px;min-height:30px;margin:0 0 10px;padding:6px 10px;border:1px solid var(--border-cell);border-radius:6px;background:var(--bg-sidebar);color:var(--text-muted);font-size:11px;font-weight:600}.app-shell .bulletin-live-status::before{content:"";width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--accent-green);box-shadow:0 0 8px color-mix(in srgb,var(--accent-green) 50%,transparent)}.app-shell .bulletin-live-status[data-state="partial"]{color:var(--accent-gold)}.app-shell .bulletin-live-status[data-state="partial"]::before{background:var(--accent-gold);box-shadow:none}.app-shell .bulletin-live-status[data-state="snapshot"],.app-shell .bulletin-live-status[data-state="offline"]{color:var(--text-muted)}.app-shell .bulletin-live-status[data-state="snapshot"]::before,.app-shell .bulletin-live-status[data-state="offline"]::before{background:var(--text-muted);box-shadow:none}

/* Bring the live odds matrix into the Futbol HT-FT Data visual system. */
html[data-theme] .app-shell {
  --font-family: inherit;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --sidebar-width: 226px;
  --bg-body: var(--bg);
  --bg-sidebar: var(--surface);
  --bg-table: var(--bg);
  --bg-header: var(--surface);
  --bg-sub-header: var(--surface2);
  --bg-league: var(--surface);
  --bg-row-even: var(--bg);
  --bg-row-odd: var(--surface);
  --bg-row-hover: var(--hover);
  --border-cell: var(--border);
  --border-strong: var(--muted-border);
  --text-main: var(--text);
  --text-silver: var(--text);
  --text-muted: var(--muted);
  --accent-green: var(--green);
  --accent-red: var(--orange);
  --accent-gold: var(--orange);
  --accent-blue: var(--link);
  --search-bg: var(--bg);
  --search-border: var(--border);
  --pill-bg: var(--bg);
  --pill-border: var(--border);
  --pill-hover: var(--hover);
  --pill-active-bg: var(--green-bg);
  --pill-active-text: #fff;
  --odd-hover-bg: var(--hover);
  --date-tabs-bg: var(--surface2);
  --date-tab-active-bg: var(--surface);
  --card-bg: var(--surface);
  --shadow-table: var(--shadow);
  display: grid;
  grid-template-columns: minmax(195px, 226px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  width: 100%;
  min-height: 0;
  padding: 22px 0 40px;
  overflow: visible;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}

.bulletin-page {
  width: calc(100% - 88px);
  max-width: 1400px;
  margin-inline: auto;
}

.app-shell .site-sidebar {
  position: sticky;
  top: 18px;
  width: auto;
  min-width: 0;
  height: calc(100vh - 36px);
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: none;
}

.app-shell .sidebar-header {
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-color: var(--muted-border);
}

.app-shell .brand-logo {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--green);
  font-size: 0;
}

.app-shell .brand-logo::before {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 11px;
  width: 3px;
  height: 8px;
  border-radius: 1px 1px 0 0;
  background: currentColor;
  box-shadow: 5px -4px 0 currentColor, 10px -2px 0 currentColor;
}

.app-shell .brand-logo::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 9px;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.app-shell .brand-text .title {
  display: block;
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.app-shell .brand-text .subtitle {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
}

.app-shell .brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.app-shell .sidebar-label {
  font-size: 10px;
  letter-spacing: 1px;
}

.app-shell .pill,
.app-shell .sidebar-action-btn,
.app-shell .btn-tab,
.app-shell .dark-date-input {
  font-family: inherit;
}

.app-shell .pill {
  border-radius: 6px;
}

.app-shell .pill.active {
  background: var(--green-bg);
  border-color: var(--green-bg);
  color: #fff;
}

.app-shell .pill-fav.active {
  background: var(--green-bg) !important;
  border-color: var(--green-bg) !important;
  color: #fff !important;
}

.app-shell .pill-fav.active .fav-count-badge {
  background: #fff;
  color: var(--green-bg);
}

.app-shell .main-content {
  min-width: 0;
  padding: 0;
  overflow: visible;
}

.app-shell .bulten-container {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
}

.app-shell .bulletin-live-status {
  min-height: 36px;
  margin-bottom: 12px;
  padding: 7px 11px;
  border-color: var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 11px;
}

.app-shell .table-frame {
  overflow: auto;
  border-color: var(--border);
  border-radius: 8px;
  box-shadow: none;
  scrollbar-color: var(--muted) var(--surface);
}

.app-shell .btn-crown-copy {
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface2);
  color: var(--muted);
}

.app-shell .btn-crown-copy:hover {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 14%, var(--surface));
  color: var(--green);
}

.app-shell .matrix-table {
  min-width: 1080px;
  font-size: 12px;
}

.app-shell .tr-group-header th {
  border-bottom: 1px solid var(--border);
}

.app-shell .tr-sub-header th {
  box-shadow: 0 3px 8px #0002;
}

.app-shell .tr-league-banner td {
  border-color: var(--border);
  background: var(--surface);
}

.app-shell .odd-cell:hover,
.app-shell .odd-cell.selected {
  background: var(--hover);
}

.app-shell .sidebar-action-btn {
  border-radius: 6px;
}

@media (max-width: 900px) {
  .bulletin-page {
    width: calc(100% - 48px);
  }

  html[data-theme] .app-shell {
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .bulletin-page {
    width: calc(100% - 32px);
  }

  html[data-theme] .app-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
  }

  .app-shell .site-sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    padding: 12px;
  }

  .app-shell .sidebar-header {
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  .app-shell .sidebar-leagues-group {
    flex: none;
    min-height: 0;
    margin-bottom: 0;
  }

  .app-shell .header-pills {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 210px;
    overflow-y: auto;
    padding-right: 0;
  }

  .app-shell .pill {
    overflow: hidden;
    padding: 7px 8px;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  .app-shell .pill-divider {
    grid-column: 1 / -1;
  }

  .app-shell .main-content {
    width: 100%;
  }

  .app-shell .matrix-table {
    min-width: 1000px;
  }
}
.odds-help{color:var(--text-muted);font-size:12px;line-height:1.5;margin:10px 4px 0}

/* Full-width bulletin with the former sidebar filters arranged as a horizontal menu. */
html[data-theme] .bulletin-page{
  width:calc(100% - 88px);
  max-width:1400px;
}

html[data-theme] .app-shell{
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
  padding:14px 0 32px;
}

.app-shell .site-sidebar{
  position:relative;
  top:auto;
  display:grid;
  grid-template-columns:minmax(190px,1fr) minmax(600px,800px) max-content max-content;
  align-items:center;
  gap:10px 16px;
  width:100%;
  height:auto;
  max-height:none;
  min-width:0;
  padding:10px 14px 8px;
  overflow:visible;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--surface);
  box-shadow:none;
}

.app-shell .sidebar-header{
  grid-column:1;
  grid-row:1;
  min-width:0;
  margin:0;
  padding:0;
  border:0;
}

.app-shell .sidebar-group:not(.sidebar-leagues-group):not(.sidebar-coupon-box){
  grid-column:2;
  grid-row:1;
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,0.8fr);
  align-items:end;
  gap:6px 8px;
  width:100%;
  min-width:0;
  margin:0;
}

.app-shell .sidebar-group:not(.sidebar-leagues-group):not(.sidebar-coupon-box) > .sidebar-label{grid-column:1/-1;margin:0;}
.app-shell .date-quick-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
.app-shell .date-picker-wrap{min-width:0;margin:0}
.app-shell .dark-date-input{height:100%;font-size:12px;padding:6px 8px}

.app-shell .sidebar-coupon-box{
  grid-column:3;
  grid-row:1;
  width:max-content;
  max-width:230px;
  margin:0;
  padding:8px 10px;
  box-shadow:none;
}

.app-shell .sidebar-leagues-group{
  grid-column:1/-1;
  grid-row:2;
  display:grid;
  grid-template-columns:max-content minmax(0,1fr);
  align-items:start;
  gap:8px 12px;
  min-width:0;
  margin:0;
  padding-top:8px;
  border-top:1px solid var(--border);
}

.app-shell .sidebar-leagues-group > .sidebar-label{
  margin:8px 0 0;
  white-space:nowrap;
}

.app-shell .header-pills{
  display:flex;
  flex-direction:row;
  flex-wrap:nowrap;
  gap:6px;
  width:100%;
  min-width:0;
  padding:0 0 4px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  scrollbar-color:var(--muted-border) transparent;
  overscroll-behavior-inline:contain;
}

.app-shell .pill{
  flex:0 0 auto;
  width:auto;
  min-height:34px;
  padding:7px 10px;
}

.app-shell .pill-divider{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  align-self:stretch;
  margin:0 2px;
  padding:0 9px;
  border-top:0;
  border-left:1px solid var(--border);
  font-size:9px;
  white-space:nowrap;
}

.app-shell .main-content{
  width:100%;
  min-width:0;
}

.app-shell .bulten-container{
  width:100%;
  max-width:none;
  min-width:0;
}

.app-shell .table-frame{width:100%;}
.app-shell .matrix-table{width:100%;min-width:1400px;table-layout:fixed;}
.app-shell .col-star{width:2%;min-width:0;}
.app-shell .col-time{width:4%;min-width:0;}
.app-shell .col-match{width:22%;min-width:0;max-width:none;}
.app-shell .col-action{width:2%;min-width:0;}
.app-shell .col-h-line{width:4%;min-width:0;}
.app-shell .col-odd{width:5.0769%;min-width:0;}
.app-shell .th-search-cell{min-width:0;}
.app-shell .td-match{min-width:0!important;max-width:0;overflow:hidden!important;text-overflow:ellipsis!important;}

@media (max-width:900px){
  html[data-theme] .bulletin-page{width:calc(100% - 28px)}
  .app-shell .site-sidebar{grid-template-columns:minmax(170px,1fr) minmax(220px,250px) max-content;gap:9px 12px}
  .app-shell .sidebar-coupon-box{grid-column:3}
}

@media (max-width:680px){
  html[data-theme] .bulletin-page{width:calc(100% - 24px)}
  html[data-theme] .app-shell{gap:10px;padding-top:10px}
  .app-shell .site-sidebar{grid-template-columns:minmax(0,1fr) minmax(205px,1fr);gap:10px;padding:10px}
  .app-shell .sidebar-header{grid-column:1;grid-row:1}
  .app-shell .sidebar-group:not(.sidebar-leagues-group):not(.sidebar-coupon-box){grid-column:2;grid-row:1}
  .app-shell .sidebar-coupon-box{grid-column:1/-1;grid-row:2;width:100%;max-width:none}
  .app-shell .sidebar-leagues-group{grid-column:1/-1;grid-row:3;display:flex;flex-direction:column;gap:5px}
  .app-shell .sidebar-leagues-group > .sidebar-label{margin:0}
  .app-shell .header-pills{max-height:none}
  .app-shell .pill{min-height:32px;padding:6px 9px;font-size:10.5px}
  .app-shell .pill-divider{padding-inline:7px;font-size:8px}
  .app-shell .main-content{width:100%}
  .app-shell .matrix-table{min-width:1400px}
}

@media (max-width:420px){
  .app-shell .site-sidebar{grid-template-columns:minmax(0,1fr)}
  .app-shell .sidebar-header{grid-column:1;grid-row:1}
  .app-shell .sidebar-group:not(.sidebar-leagues-group):not(.sidebar-coupon-box){grid-column:1;grid-row:2}
  .app-shell .sidebar-coupon-box{grid-column:1;grid-row:3}
  .app-shell .sidebar-leagues-group{grid-column:1;grid-row:4}
}

/* Keep coupon actions beside the live status, below the league filters. */
.app-shell .site-sidebar{grid-template-columns:minmax(190px,1fr) minmax(0,2fr)}
.app-shell .bulletin-status-row{display:flex;align-items:center;gap:12px;margin-bottom:10px;padding:6px 10px;border:1px solid var(--border-cell);border-radius:6px;background:var(--bg-sidebar);min-width:0}
.app-shell .bulletin-status-row .bulletin-live-status{flex:1;min-width:0;margin:0;padding:0;border:0;background:transparent}
.app-shell .bulletin-status-row .sidebar-coupon-box{flex:0 0 auto;grid-column:auto;grid-row:auto;width:auto;max-width:none;margin:0;padding:0;border:0;background:transparent}
.app-shell .bulletin-status-row .coupon-box-header{display:inline-flex;align-items:center;gap:10px;margin:0 12px 0 0}
.app-shell .bulletin-status-row .btn-copy-slip{width:auto;display:inline-flex;align-items:center;padding:7px 12px}
@media(max-width:680px){
 .app-shell .site-sidebar{grid-template-columns:minmax(0,1fr) minmax(205px,1fr)}
 .app-shell .sidebar-leagues-group{grid-row:2}
 .app-shell .bulletin-status-row{flex-wrap:wrap}
 .app-shell .bulletin-status-row .bulletin-live-status{flex-basis:100%}
 .app-shell .bulletin-status-row .sidebar-coupon-box{margin-left:auto}
}
@media(max-width:420px){
 .app-shell .site-sidebar{grid-template-columns:minmax(0,1fr)}
 .app-shell .sidebar-leagues-group{grid-row:3}
 .app-shell .bulletin-status-row .sidebar-coupon-box{width:100%}
 .app-shell .bulletin-status-row .coupon-box-header{margin-bottom:6px}
}
