body {
    font-size: .875rem;
    background:
        linear-gradient(135deg, rgba(49, 133, 53, 0.10), transparent 24%),
        linear-gradient(225deg, rgba(127, 146, 230, 0.10), transparent 28%),
        linear-gradient(180deg, #111311 0%, #1b1b1b 42%, #151515 100%) !important;
    background-attachment: fixed !important;
    color:aliceblue !important;
    overflow-x: hidden !important;
}

* {
  scrollbar-width: thin;
  scrollbar-color:rgb(26, 110, 0) rgb(26, 26, 26);
}

/* для Chrome/Edge/Safari */
*::-webkit-scrollbar {
  height: 12px;
  width: 10px;
}
*::-webkit-scrollbar-track {
  background: rgb(26, 26, 26);
}
*::-webkit-scrollbar-thumb {
  background-color: rgb(26, 110, 0);
  border-radius: 4px;
}

.main {
    display: flex;
    justify-content: space-between;
    height: calc(100svh - 100px);
    width: 100svw;
    box-sizing: border-box;
}

.card-block-3 {
    padding-top: 5px;
    width: 30%;
    min-width: 250px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
        rgb(24, 24, 24);
    border: 1px solid rgba(158, 209, 139, 0.14);
    display: inline-table;
    justify-content: center;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.55) 0 16px 28px -24px;
    vertical-align: middle;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card-block-2 {
    padding-top: 5px;
    width: 49%;
    min-width: 250px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
        rgb(24, 24, 24);
    border: 1px solid rgba(158, 209, 139, 0.14);
    display: inline-table;
    justify-content: center;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.55) 0 16px 28px -24px;
    vertical-align: middle;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.card-block-2:hover,
.card-block-3:hover {
    border-color: rgba(158, 209, 139, 0.28);
    box-shadow: rgba(0, 0, 0, 0.65) 0 18px 30px -22px;
    transform: translateY(-1px);
}

.card-block-wrapper {
    display: flex;
    justify-content: space-around;
    row-gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}


.card-inner {
    margin: 10px 10px;
    display: inline-block;
    vertical-align: middle;
}


.hr-no-margin {
    margin: 0.4rem;
    opacity: 0.15;
}

.hr-no-margin_all {
    margin: 0.1rem;
    opacity: 0.15;
}

.main-area {
    width: min(1180px, 100%);
    padding: 0 0.5rem; 
    margin-left: auto; 
    margin-right: auto; 
    display: inline-block;
}

.chart-area {
    height: 43svh;
}

.roidiag-area {
    height: 43svh;
}

.stats-area {
    height: 36svh;
}

@media screen and (max-width:1023px){
   .multiselect-container button.dropdown-item {
     pointer-events:none;
   }
   .multiselect-container span.form-check input {
     pointer-events: all;
   }
   .multiselect-container span.form-check label  {
     pointer-events: none;
   }
   div.main-area {
     width: 100%;
   }
   .chart-area {
     height: 35svh;
   }
   .roidiag-area {
    height: 35svh;
    }
   .stats-area {
    height: 26svh;
}
}

.multiselect-group {
    background-color: #b4b4b4 !important;
    color: white;
}

.predictInfo-hidden {
  display: none;
}

.blurred {
  color: black;
  opacity: 0.08;
  z-index: -555;
  filter: blur(10px);
  pointer-events: none;
}

.abs-navigator {
    position: sticky;
    left: 50px;
    top: 150px;
    width: fit-content;
    display: inline-grid;
}

.filter-row {
    width: 70%;
    margin-left: auto !important;
    margin-right: auto !important;
}

.short-input {
    width: 40px;
}

.centered-input {
    margin-right: auto;
    margin-left: auto;
    width: 100%;
    display: grid;
}

svg {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) rotate(45deg) scale(1);
          transform: translate(-50%, -50%) rotate(45deg) scale(1);
}

.stroke-still {
  stroke: #232323;
}

.stroke-animation {
  -webkit-animation: stroke-spacing 1.2s ease-in, stroke-color 4.8s linear;
          animation: stroke-spacing 1.2s ease-in, stroke-color 4.8s linear;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
  -webkit-animation-delay: 0;
          animation-delay: 0;
  -webkit-animation-direction: normal;
          animation-direction: normal;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
  -webkit-animation-play-state: running;
          animation-play-state: running;
  -webkit-transform-origin: center center;
          transform-origin: center center;
}

@-webkit-keyframes stroke-spacing {
  0% {
    stroke-dasharray: 0 200;
  }
  45% {
    stroke-dashoffset: 0;
    stroke-dasharray: 200 200;
  }
  90% {
    stroke-dashoffset: -200;
    stroke-dasharray: 200 200;
  }
  100% {
    stroke-dashoffset: -200;
    stroke-dasharray: 200 200;
  }
}

@keyframes stroke-spacing {
  0% {
    stroke-dasharray: 0 200;
  }
  45% {
    stroke-dashoffset: 0;
    stroke-dasharray: 200 200;
  }
  90% {
    stroke-dashoffset: -200;
    stroke-dasharray: 200 200;
  }
  100% {
    stroke-dashoffset: -200;
    stroke-dasharray: 200 200;
  }
}

@-webkit-keyframes stroke-color {
  0%  { stroke: #3498DB; }
  24% { stroke: #643232; }
  25% { stroke: #327864; }
  49% { stroke: #327864; }
  50% { stroke: #32326e; }
  74% { stroke: #32326e; }
  75% { stroke: #78325a; }
  99% { stroke: #78325a; }
}

@keyframes stroke-color {
  0%  { stroke: #3498DB; }
  24% { stroke: #643232; }
  25% { stroke: #327864; }
  49% { stroke: #327864; }
  50% { stroke: #32326e; }
  74% { stroke: #32326e; }
  75% { stroke: #78325a; }
  99% { stroke: #78325a; }
}

.filter-name {
    color: #d8d8d8;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
    text-align: left;
}

.dashboard-shell {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.dashboard-masthead {
    background:
        linear-gradient(120deg, rgba(18, 22, 19, 0.96), rgba(29, 31, 35, 0.88)),
        rgb(20, 22, 22);
    border: 1px solid rgba(158, 209, 139, 0.18);
    border-radius: 16px;
    box-shadow: rgba(0, 0, 0, 0.68) 0 26px 55px -38px;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
    margin-top: 10px;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.dashboard-masthead::before {
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
    position: absolute;
}

.masthead-copy {
    position: relative;
    z-index: 1;
}

.masthead-copy span {
    color: #9ed18b;
    display: block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.masthead-copy h1 {
    color: #f4f4f4;
    font-size: 36px;
    font-weight: 850;
    letter-spacing: 0;
    line-height: 1.05;
    margin: 8px 0 10px;
}

.masthead-copy p {
    color: #b7beb8;
    font-size: 15px;
    margin: 0;
    max-width: 560px;
}

.masthead-objective {
    align-items: center;
    display: flex;
    height: clamp(92px, 11vw, 138px);
    justify-content: center;
    justify-self: end;
    position: relative;
    width: clamp(92px, 11vw, 138px);
    z-index: 1;
}

.masthead-objective::before {
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(157, 173, 157, 0.07)),
        rgba(63, 69, 64, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        rgba(0, 0, 0, 0.38) 0 18px 30px -24px;
    content: "";
    inset: 0;
    position: absolute;
}

.objective-hero {
    animation: icon-rise 420ms ease-out both;
    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28))
        drop-shadow(0 10px 18px rgba(0, 0, 0, 0.58));
    height: clamp(70px, 8.5vw, 110px);
    object-fit: contain;
    position: relative;
    width: clamp(70px, 8.5vw, 110px);
    z-index: 1;
}

@keyframes icon-rise {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dashboard-rail {
    background-color: rgba(20, 22, 22, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 7px;
    position: sticky;
    top: 8px;
    -webkit-overflow-scrolling: touch;
    z-index: 6;
}

.dashboard-rail a {
    border-radius: 8px;
    color: #cbd1cc;
    flex: 0 0 auto;
    font-size: 13px;
    padding: 8px 11px;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.dashboard-rail a:hover,
.dashboard-rail a.rail-active {
    background-color: rgba(158, 209, 139, 0.16);
    color: #ffffff;
    transform: translateY(-1px);
}

.rail-label {
    color: #8f9690;
    display: none;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 2px 9px 6px;
    text-transform: uppercase;
}

.control-panel {
    background:
        linear-gradient(135deg, rgba(49, 133, 53, 0.18), rgba(63, 91, 192, 0.10)),
        rgb(24, 24, 24);
    border: 1px solid rgba(158, 209, 139, 0.16);
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.55) 0 18px 28px -22px;
    margin-top: 8px;
    padding: 14px;
    animation: panel-enter 280ms ease-out both;
}

.mobile-filter-fab {
    display: none;
}

.control-panel-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.control-panel-header span {
    color: #9ed18b;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.control-panel-header strong {
    color: #f1f1f1;
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.control-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.control-field {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    min-width: 0;
    padding: 12px;
}

.control-field-header {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.control-field-header span {
    color: #d8d8d8;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

.control-field .multiselect {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f0f0f0 !important;
    font-size: 14px !important;
    min-height: 40px;
    padding: 8px 11px !important;
    width: 100%;
}

.control-field .centered-input {
    gap: 8px;
}

.control-panel .btn-group.btn-group-sm {
    display: flex;
    min-height: 34px;
}

.control-panel .btn-group.btn-group-sm .btn {
    align-items: center;
    display: inline-flex;
    flex: 1 1 0;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    line-height: 1.1;
    min-width: 0;
    padding: 7px 9px;
    white-space: nowrap;
}

.control-run-button {
    border: 1px solid rgba(158, 209, 139, 0.30);
    border-radius: 9px;
    color: #f1f1f1;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.control-panel-close {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #d8d8d8;
    cursor: pointer;
    display: none;
    font-size: 22px;
    height: 36px;
    line-height: 1;
    padding: 0;
    transition: background-color 150ms ease, color 150ms ease;
    width: 36px;
}

.control-panel-close:hover {
    background-color: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.mobile-filter-backdrop {
    background-color: rgba(0, 0, 0, 0.55);
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 220ms ease;
    z-index: 18;
}

.mobile-filter-backdrop[data-active="true"] {
    opacity: 1;
    pointer-events: auto;
}

.control-extra-filters {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.desktop-filter-segment {
    display: flex;
    justify-content: stretch;
    margin-top: 8px;
    width: 100%;
}

.desktop-filter-segment .btn-group {
    width: 100%;
}

.control-extra-filters input[type="date"],
.control-extra-filters input[type="number"] {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    color: #f1f1f1;
    font-size: 14px;
    min-height: 40px;
    padding: 8px 11px;
    width: 100%;
}

.control-extra-filters input[type="range"] {
    accent-color: #4c9a43;
    margin: 2px 0 0;
    width: 100%;
}

.date-shortcuts {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 8px;
}

.date-shortcuts button {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e8e8e8;
    font-size: 13px;
    font-weight: 700;
    min-height: 34px;
    padding: 7px 5px;
}

.date-label {
    color: #8f9690;
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin: 7px 0 3px;
    text-transform: uppercase;
}

.control-run-button {
    background: linear-gradient(135deg, #318535, #4c9a43);
    margin-top: 12px;
    min-height: 42px;
    width: 100%;
}

.control-run-button:hover {
    border-color: rgba(158, 209, 139, 0.55);
    transform: translateY(-1px);
}

.metric-board {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0)),
        rgb(24, 24, 24);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    min-width: 0;
    padding: 12px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
    animation: panel-enter 280ms ease-out both;
}

.metric-card:hover {
    border-color: rgba(158, 209, 139, 0.24);
    box-shadow: rgba(0, 0, 0, 0.65) 0 14px 24px -22px;
    transform: translateY(-1px);
}

.metric-card span {
    color: #8f9690;
    display: block;
    font-size: 12px;
    margin-bottom: 7px;
}

.metric-values {
    align-items: baseline;
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.metric-values strong,
.metric-values em {
    display: block;
    font-style: normal;
    min-height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.metric-primary {
    color: #9ed18b;
    font-size: 19px;
    font-weight: 800;
}

.metric-secondary {
    color: #7f92e6;
    font-size: 14px;
    font-weight: 700;
}

.chart-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
        rgb(22, 24, 24);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    box-shadow: rgba(0, 0, 0, 0.56) 0 22px 42px -32px;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.chart-panel:hover {
    border-color: rgba(158, 209, 139, 0.19);
    box-shadow: rgba(0, 0, 0, 0.68) 0 28px 48px -34px;
    transform: translateY(-1px);
}

.chart-panel-header {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 0 2px 8px;
}

.chart-panel-header span {
    color: #f0f0f0;
    font-size: 18px;
    font-weight: 800;
}

.chart-panel-header small {
    color: #8f9690;
    font-size: 12px;
    text-align: right;
}

@keyframes panel-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.echarts-surface {
    height: 100%;
    min-height: 260px;
    width: 100%;
}

.quick-slices {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    min-width: 0;
}

.quick-slices > *,
.analytics-grid > *,
.analytics-sections > * {
    min-width: 0;
}

.compact-chart-area {
    height: 320px;
    min-height: 260px;
}

.dashboard-shell > h5 {
    background:
        linear-gradient(90deg, rgba(158, 209, 139, 0.14), rgba(63, 91, 192, 0.04));
    border-left: 3px solid #9ed18b;
    border-radius: 8px;
    color: #f0f0f0;
    padding: 10px 12px;
}

.chart-area,
.roidiag-area,
.stats-area {
    background-color: rgba(10, 12, 12, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 10px;
}

.predictInfo {
    background:
        linear-gradient(135deg, rgba(49, 133, 53, 0.10), rgba(63, 91, 192, 0.06)),
        rgb(24, 24, 24) !important;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px !important;
}

.team1Picks img,
.team2Picks img {
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, 0.45) 0 3px 8px;
    height: 28px;
    margin: 2px;
    width: 28px;
}

.analytics-title {
    margin-left: 45px;
    margin-top: 20px;
    margin-bottom: 8px;
}

.analytics-commandbar {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(49, 133, 53, 0.22), rgba(63, 91, 192, 0.14)),
        rgb(22, 24, 23);
    border: 1px solid rgba(158, 209, 139, 0.18);
    border-radius: 12px;
    box-shadow: rgba(0, 0, 0, 0.55) 0 18px 28px -22px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(170px, 1fr) minmax(240px, 1.4fr) auto;
    margin-top: 18px;
    padding: 14px;
    position: sticky;
    top: 8px;
    z-index: 5;
}

.analytics-commandbar-title span {
    color: #9ed18b;
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.analytics-commandbar-title strong {
    color: #f1f1f1;
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.analytics-summary-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.analytics-pill {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    color: #d8d8d8;
    font-size: 12px;
    padding: 6px 10px;
}

.analytics-pill strong {
    color: #ffffff;
    margin-left: 4px;
}

.analytics-pill-positive strong {
    color: #9ed18b;
}

.analytics-pill-negative strong {
    color: #e38a8a;
}

.analytics-commandbar-actions {
    display: flex;
    gap: 8px;
}

.analytics-commandbar-actions button {
    background-color: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #e8e8e8;
    font-size: 12px;
    padding: 7px 10px;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.analytics-commandbar-actions button:hover {
    background-color: rgba(158, 209, 139, 0.18);
    border-color: rgba(158, 209, 139, 0.35);
    transform: translateY(-1px);
}

.analytics-sections {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.analytics-section {
    background:
        linear-gradient(135deg, rgba(49, 133, 53, 0.10), rgba(63, 91, 192, 0.06)),
        rgb(24, 24, 24);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.55) 0 8px 22px -12px;
    min-width: 0;
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.analytics-section:hover {
    border-color: rgba(158, 209, 139, 0.18);
    box-shadow: rgba(0, 0, 0, 0.65) 0 18px 32px -22px;
    transform: translateY(-1px);
}

.analytics-section summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    list-style: none;
    padding: 13px 16px;
    user-select: none;
}

.analytics-section summary::-webkit-details-marker {
    display: none;
}

.analytics-section summary::after {
    color: #9ed18b;
    content: "+";
    font-size: 22px;
    line-height: 1;
    transition: transform 180ms ease, color 180ms ease;
}

.analytics-section[open] summary::after {
    color: #d7d7d7;
    content: "-";
    transform: rotate(180deg);
}

.analytics-section summary span {
    color: #f1f1f1;
    font-size: 18px;
    font-weight: 700;
}

.section-badge {
    background-color: rgba(158, 209, 139, 0.13);
    border: 1px solid rgba(158, 209, 139, 0.22);
    border-radius: 999px;
    color: #b7e2aa;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    padding: 3px 8px;
    vertical-align: middle;
}

.analytics-section summary small {
    color: #8f9690;
    font-size: 12px;
    margin-left: auto;
}

.analytics-section[open] > :not(summary) {
    animation: analytics-open 180ms ease-out;
}

@keyframes analytics-open {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analytics-chart-area {
    width: 100%;
    position: relative;
    min-height: 260px;
    height: 34svh;
    padding: 0 12px 14px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 0 14px 14px;
}

.analytics-grid-single {
    grid-template-columns: 1fr;
}

.analytics-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0)),
        rgb(26, 26, 26);
    border-left: 3px solid #318535;
    border-radius: 8px;
    padding: 12px;
    box-shadow: rgba(0, 0, 0, 0.45) 0 0 4px;
    min-width: 0;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.analytics-panel:hover {
    box-shadow: rgba(0, 0, 0, 0.7) 0 12px 22px -18px;
    transform: translateY(-1px);
}

.analytics-panel.accent-blue {
    border-left-color: #3f5bc0;
}

.analytics-panel.accent-violet {
    border-left-color: #865bd7;
}

.analytics-panel.accent-gold {
    border-left-color: #c9973d;
}

.analytics-panel.accent-red {
    border-left-color: #b44a4a;
}

.analytics-panel.accent-teal {
    border-left-color: #40a995;
}

.analytics-panel-title {
    align-items: center;
    color: #d7d7d7;
    display: flex;
    flex-wrap: wrap;
    font-weight: 600;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.panel-caption {
    color: #8f9690;
    display: block;
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}

.overview-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: 0 14px 12px;
}

.overview-toolbar span {
    color: #aeb5b1;
    font-size: 12px;
    font-weight: 700;
}

.analytics-mode-switch {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    display: inline-flex;
    overflow: hidden;
    padding: 2px;
}

.analytics-mode-switch button {
    background: transparent;
    border: none;
    border-radius: 999px;
    color: #b8bcb9;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    transition: background-color 150ms ease, color 150ms ease;
}

.analytics-mode-switch button.active {
    background-color: rgba(158, 209, 139, 0.22);
    color: #ffffff;
}

.analytics-mode-switch button:hover:not(.active) {
    color: #ffffff;
}

.analytics-table-wrap {
    box-sizing: border-box;
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background-color: rgba(26, 26, 26, 0.96);
    border-radius: 8px;
    padding: 8px;
    margin: 0 14px 14px;
    max-width: calc(100% - 28px);
    overscroll-behavior-x: contain;
    scrollbar-color: #4c8f45 #1f1f1f;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.analytics-table {
    border-collapse: collapse;
    color: #d7d7d7;
    font-size: 13px;
    min-width: 720px;
    table-layout: auto;
    width: 100%;
}

.analytics-table-compact {
    min-width: 500px;
}

.analytics-table-wide {
    min-width: 1120px;
}

.analytics-table th,
.analytics-table td {
    border-bottom: 1px solid #303030;
    padding: 7px 8px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 220px;
}

.analytics-table-compact th,
.analytics-table-compact td {
    max-width: 150px;
    padding: 6px 6px;
}

.analytics-table-compact th:first-child,
.analytics-table-compact td:first-child {
    max-width: 156px;
    min-width: 136px;
    width: 148px;
}

.analytics-table th:first-child,
.analytics-table td:first-child {
    background-color: rgb(26, 26, 26);
    box-shadow: 10px 0 14px -14px rgba(0, 0, 0, 0.85);
    left: 0;
    position: sticky;
    z-index: 2;
}

.analytics-table th:first-child {
    z-index: 4;
}

.analytics-table tbody tr:hover td:first-child {
    background-color: rgb(31, 33, 31);
}

.analytics-table tbody tr.selected-row td:first-child {
    background-color: rgb(32, 42, 31);
}

.analytics-panel .analytics-table-wrap {
    background-color: transparent;
    margin: 0;
    max-width: 100%;
    padding: 0;
}

.analytics-table-wide th,
.analytics-table-wide td {
    min-width: 92px;
}

.analytics-table-wide th:nth-child(2),
.analytics-table-wide td:nth-child(2) {
    min-width: 210px;
    max-width: 260px;
}

.analytics-table-wide th:nth-child(3),
.analytics-table-wide td:nth-child(3) {
    min-width: 190px;
    max-width: 260px;
}

.analytics-table th {
    color: #9ed18b;
    font-weight: 600;
    text-align: left;
    position: sticky;
    top: 0;
    background-color: rgb(26, 26, 26);
    cursor: pointer;
    z-index: 1;
}

.analytics-table th.sort-asc::after,
.analytics-table th.sort-desc::after {
    color: #d7d7d7;
    display: inline-block;
    margin-left: 5px;
}

.analytics-table th.sort-asc::after {
    content: "↑";
}

.analytics-table th.sort-desc::after {
    content: "↓";
}

.analytics-table tbody tr {
    animation: row-fade 150ms ease-out;
    transition: background-color 140ms ease, transform 140ms ease;
}

.analytics-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.045);
}

.analytics-table tbody tr.selected-row {
    background-color: rgba(158, 209, 139, 0.12);
}

@keyframes row-fade {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.analytics-table td.numeric,
.analytics-table th.numeric {
    text-align: right;
}

.analytics-table td.compact-col,
.analytics-table th.compact-col {
    max-width: 86px;
    min-width: 66px;
    width: 74px;
}

.analytics-empty {
    color: #878787;
    padding: 12px;
    text-align: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(30px, 1fr));
    gap: 4px;
    min-width: 0;
    width: 100%;
}

.calendar-cell {
    align-items: center;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: #232323;
    color: #d9d9d9;
    cursor: pointer;
    display: grid;
    gap: 4px;
    justify-items: center;
    min-width: 0;
    min-height: 56px;
    overflow: hidden;
    padding: 7px 5px;
    text-align: center;
    transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.calendar-cell-date {
    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    max-width: 100%;
    overflow: hidden;
}

.calendar-cell-profit {
    color: #ffffff;
    font-size: clamp(11px, 1.08vw, 13px);
    font-weight: 750;
    font-variant-numeric: tabular-nums;
    line-height: 1.05;
    max-width: 100%;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
}

.calendar-cell:hover {
    box-shadow: rgba(0, 0, 0, 0.45) 0 8px 16px -10px;
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.calendar-cell-positive {
    background-color: rgba(49, 133, 53, 0.55);
}

.calendar-cell-negative {
    background-color: rgba(154, 42, 42, 0.55);
}

.calendar-cell-muted {
    opacity: 0.55;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

#nomAnchor,
#patchChartAnchor,
#calendarAnchor,
#tournamentTopAnchor,
#roiAnchor,
#analyticsTopAnchor,
#rollingAnchor,
#overviewAnchor,
#riskAnchor,
#betsTableAnchor {
    scroll-margin-top: 112px;
}

.modal-content {
    background:
        linear-gradient(135deg, rgba(49, 133, 53, 0.10), rgba(63, 91, 192, 0.06)),
        rgb(23, 24, 25) !important;
    border: 1px solid rgba(158, 209, 139, 0.16) !important;
    border-radius: 14px !important;
    box-shadow: rgba(0, 0, 0, 0.68) 0 26px 55px -30px !important;
}

.modal-body input,
.modal-body button,
.modal-body select {
    border-radius: 8px;
}

.modal-body input[type="date"],
.modal-body input[type="number"] {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f1f1f1;
    padding: 7px 9px;
}

.modal-body input[type="range"] {
    accent-color: #4c9a43;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

@media screen and (min-width:1500px){
   .main-area {
     box-sizing: border-box;
     margin: 0;
     padding-left: 380px;
     padding-right: 380px;
     width: 100%;
   }

   .dashboard-shell {
     margin: 0 auto;
     max-width: 1180px;
   }

   .dashboard-rail {
     align-items: stretch;
     background:
        linear-gradient(180deg, rgba(49, 133, 53, 0.12), rgba(63, 91, 192, 0.07)),
        rgba(20, 22, 22, 0.88);
     border-color: rgba(158, 209, 139, 0.13);
     box-shadow: rgba(0, 0, 0, 0.56) 0 18px 32px -24px;
     flex-direction: column;
     left: 24px;
     padding: 10px;
     position: fixed;
     top: 96px;
     width: 340px;
   }

   .rail-label {
     display: block;
   }

   .dashboard-rail a {
     font-size: 15px;
     font-weight: 750;
     padding: 12px 14px;
   }

   .control-panel {
     max-height: calc(100svh - 120px);
     overflow-y: auto;
     position: fixed;
     right: 24px;
     top: 96px;
     width: 340px;
     z-index: 6;
   }

   .control-panel-header {
     align-items: flex-start;
     flex-direction: column;
   }

   .control-grid {
     grid-template-columns: 1fr;
   }

   .control-field-header {
     align-items: flex-start;
     flex-direction: column;
   }

   .control-field-header .btn-group {
     width: 100%;
   }
}

@media screen and (max-width:1023px){
   body {
     padding-bottom: 72px;
   }

   .dashboard-rail {
     margin-left: -2px;
     margin-right: -2px;
     position: sticky;
     top: 0;
     transform: none;
     z-index: 12;
   }

   .control-panel {
     animation: none;
     bottom: 0;
     border-radius: 18px 18px 0 0;
     display: block;
     left: 0;
     max-height: 88svh;
     overflow-y: auto;
     padding-bottom: 96px;
     position: fixed;
     right: 0;
     transform: translateY(105%);
     transition: transform 220ms ease;
     z-index: 19;
   }

   .control-panel.mobile-filters-open {
     transform: translateY(0);
   }

   .control-panel .control-panel-header {
     align-items: center;
     flex-direction: row;
     justify-content: space-between;
   }

   .control-panel-close {
     display: inline-flex;
     align-items: center;
     justify-content: center;
   }

   .mobile-filter-fab {
     align-items: center;
     background: linear-gradient(135deg, #318535, #4c9a43);
     border: 1px solid rgba(158, 209, 139, 0.44);
     border-radius: 999px;
     bottom: 16px;
     box-shadow: rgba(0, 0, 0, 0.58) 0 16px 30px -16px;
     color: #ffffff;
     display: flex;
     font-size: 15px;
     font-weight: 800;
     justify-content: center;
     left: 16px;
     min-height: 48px;
     position: fixed;
     right: 16px;
     z-index: 20;
   }

   .dashboard-masthead {
     align-items: center;
     grid-template-columns: minmax(0, 1fr) auto;
   }

   .masthead-objective {
     height: clamp(78px, 24vw, 112px);
     justify-self: end;
     width: clamp(78px, 24vw, 112px);
   }

   .masthead-objective::before {
     transform: none;
   }

   .objective-hero {
     height: clamp(60px, 19vw, 90px);
     width: clamp(60px, 19vw, 90px);
   }

   .masthead-copy h1 {
     font-size: 30px;
   }

   .control-grid {
     grid-template-columns: 1fr;
   }

   .control-panel-header,
   .control-field-header {
     align-items: flex-start;
     flex-direction: column;
   }

   .metric-board {
     grid-template-columns: repeat(2, minmax(0, 1fr));
   }

   .analytics-commandbar {
     grid-template-columns: 1fr;
     position: static;
   }

   .analytics-commandbar-actions {
     flex-wrap: wrap;
   }

   .analytics-grid {
     grid-template-columns: 1fr;
   }

   .quick-slices {
     grid-template-columns: 1fr;
   }

   .calendar-grid {
     grid-template-columns: repeat(7, minmax(0, 1fr));
   }

   .analytics-title {
     margin-left: 12px;
   }

   .analytics-chart-area {
     height: 30svh;
   }

   .analytics-section summary {
     align-items: flex-start;
     flex-direction: column;
     gap: 3px;
   }

   .analytics-section summary small {
     margin-left: 0;
   }

   .analytics-table-wrap {
     margin-left: 0;
     margin-right: 0;
     max-width: 100%;
     padding: 6px;
   }

   .analytics-table,
   .analytics-table-compact {
     table-layout: auto;
   }

   .analytics-table-compact {
     min-width: 500px;
   }

   .analytics-table-wide {
     min-width: 1080px;
   }

   .analytics-table th:first-child,
   .analytics-table td:first-child {
     max-width: 132px;
     min-width: 112px;
     width: 122px;
   }
}

@media screen and (max-width:1023px){
   .metric-card {
     align-items: center;
     display: flex;
     flex-direction: row;
     gap: 10px;
     justify-content: space-between;
     padding: 10px 12px;
   }

   .metric-card span {
     margin-bottom: 0;
   }

   .metric-values {
     gap: 6px;
   }

   .metric-primary {
     font-size: 16px;
   }

   .metric-secondary {
     font-size: 12px;
   }
}

@media screen and (max-width:560px){
   .calendar-grid {
     grid-template-columns: repeat(5, minmax(0, 1fr));
   }

   .calendar-cell {
     min-height: 48px;
     padding: 6px 4px;
   }

   .calendar-cell-profit {
     font-size: 12px;
   }

   .analytics-table {
     min-width: 660px;
   }

   .analytics-table-compact {
     min-width: 480px;
   }

   .analytics-table-wide {
     min-width: 1020px;
   }

   .analytics-table th:first-child,
   .analytics-table td:first-child {
     max-width: 116px;
     min-width: 102px;
   }

   .analytics-table td.compact-col,
   .analytics-table th.compact-col {
     min-width: 62px;
     width: 68px;
   }
}

@media screen and (max-width:390px){
   .calendar-grid {
     grid-template-columns: repeat(4, minmax(0, 1fr));
   }
}
