.databi-shell {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  width: 100vw;
  min-width: 1280px;
  min-height: 720px;
  padding: 0 24px 24px 0;
}

.databi-shell-content {
  min-width: 0;
  padding-left: 24px;
}

.databi-report-sidebar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  height: 100vh;
  min-height: 720px;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 18px 8px;
  border-right: 1px solid rgba(34, 121, 170, 0.46);
  background: rgba(2, 15, 31, 0.84);
}

.report-sidebar-brand {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(39, 228, 245, 0.7);
  border-radius: 50%;
  background: rgba(11, 45, 70, 0.82);
  box-shadow: inset 0 0 12px rgba(39, 228, 245, 0.16);
}

.report-sidebar-brand svg {
  width: 23px;
  height: 23px;
  color: #27e4f5;
  filter: drop-shadow(0 0 8px rgba(39, 228, 245, 0.38));
}

.report-sidebar-nav {
  display: grid;
  width: 100%;
  gap: 8px;
}

.report-sidebar-item {
  display: grid;
  min-height: 66px;
  place-items: center;
  gap: 6px;
  padding: 8px 4px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #9eb7ce;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.1;
}

.report-sidebar-item svg {
  width: 20px;
  height: 20px;
}

.report-sidebar-item:hover,
.report-sidebar-item.is-active {
  border-color: rgba(37, 216, 245, 0.38);
  background: rgba(37, 216, 245, 0.18);
  color: #e9f6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 216, 245, 0.18);
}

.report-sidebar-item.is-active:hover {
  border-color: rgba(37, 216, 245, 0.56);
  background: rgba(37, 216, 245, 0.22);
}

.databi-screen {
  --analysis-row-height: 320px;
  --business-metric-row-height: 104px;
  --robot-gift-metric-row-height: 104px;
  display: grid;
  grid-template-rows: 72px 140px var(--business-metric-row-height) var(--robot-gift-metric-row-height) var(--analysis-row-height);
  gap: 16px;
  min-height: 0;
}

.databi-screen--self-game {
  grid-template-rows: 72px minmax(0, 1fr);
}

.databi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  margin: 0 -24px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(34, 121, 170, 0.46);
  background: rgba(2, 15, 31, 0.72);
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand-emblem {
  display: grid;
  position: relative;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(39, 228, 245, 0.7);
  border-radius: 50%;
  background: rgba(11, 45, 70, 0.82);
  box-shadow: inset 0 0 12px rgba(39, 228, 245, 0.16);
}

.brand-emblem svg {
  width: 23px;
  height: 23px;
  color: #27e4f5;
  filter: drop-shadow(0 0 8px rgba(39, 228, 245, 0.38));
}

.brand-lockup h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 780;
  letter-spacing: 0;
}

.screen-switch,
.game-switch {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(61, 141, 190, 0.42);
  border-radius: 8px;
  background: rgba(7, 28, 47, 0.72);
}

.screen-switch button,
.game-switch button {
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9eb7ce;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 760;
}

.screen-switch button:hover,
.game-switch button:hover,
.screen-switch button.is-active,
.game-switch button.is-active {
  background: rgba(37, 216, 245, 0.18);
  color: #e9f6ff;
  box-shadow: inset 0 0 0 1px rgba(37, 216, 245, 0.38);
}

.header-meta {
  display: flex;
  gap: 12px;
  margin-top: 2px;
  color: #7fa1bf;
  font-size: 12px;
}

.header-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.filter-control {
  position: relative;
  flex: 0 0 auto;
}

.filter-trigger {
  position: relative;
  display: grid;
  min-width: 138px;
  height: 34px;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: end;
  gap: 0;
  padding: 7px 28px 3px 12px;
  border: 1px solid rgba(64, 148, 197, 0.48);
  border-radius: 8px;
  background: rgba(7, 29, 48, 0.9);
  color: #d8ebff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.filter-control--timezone .filter-trigger {
  width: 118px;
  min-width: 118px;
}

.filter-control--app .filter-trigger {
  width: 138px;
  min-width: 138px;
}

.filter-control--country .filter-trigger {
  width: 150px;
}

.filter-trigger:hover,
.filter-trigger[aria-expanded="true"] {
  border-color: rgba(39, 228, 245, 0.78);
  box-shadow: 0 0 0 3px rgba(39, 228, 245, 0.08);
}

.filter-trigger:hover .filter-label,
.filter-trigger[aria-expanded="true"] .filter-label,
.date-range-trigger:hover .date-range-label,
.date-range-trigger[aria-expanded="true"] .date-range-label {
  color: #27e4f5;
}

.filter-trigger:disabled {
  cursor: progress;
  opacity: 0.68;
}

.filter-icon,
.filter-chevron {
  color: #cbd9e9;
}

.filter-label {
  position: absolute;
  top: -8px;
  left: 10px;
  display: inline-flex;
  max-width: calc(100% - 20px);
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(2, 15, 31, 0.98);
  color: #7f9bb7;
  font-size: 10px;
  font-weight: 760;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-glyph {
  color: #27e4f5;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0;
}

.filter-icon {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 16px;
  place-items: center;
  color: #cbd9e9;
}

.filter-label .filter-icon {
  color: #27e4f5;
}

.filter-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #e6f3ff;
  font-size: 13px;
  font-weight: 720;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chevron {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
}

.date-range-trigger {
  position: relative;
  display: grid;
  width: 318px;
  height: 34px;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: end;
  gap: 0;
  padding: 7px 28px 3px 12px;
  border: 1px solid rgba(64, 148, 197, 0.48);
  border-radius: 8px;
  background: rgba(7, 29, 48, 0.9);
  box-shadow: none;
  color: #e6f3ff;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.date-range-trigger:hover,
.date-range-trigger[aria-expanded="true"] {
  border-color: rgba(39, 228, 245, 0.78);
  box-shadow: 0 0 0 3px rgba(39, 228, 245, 0.08);
}

.date-range-label {
  position: absolute;
  top: -8px;
  left: 10px;
  display: inline-flex;
  max-width: calc(100% - 20px);
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 0 5px;
  border-radius: 5px;
  background: rgba(2, 15, 31, 0.98);
  color: #7f9bb7;
  font-size: 10px;
  font-weight: 760;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-range-label svg {
  flex: 0 0 auto;
  color: #cbd9e9;
}

.date-range-values {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  overflow: hidden;
}

.date-range-values b {
  min-width: 0;
  overflow: hidden;
  color: #eaf6ff;
  font-size: 13px;
  font-weight: 760;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-range-values i {
  color: #a7bdd3;
  font-size: 13px;
  font-style: normal;
  text-align: center;
}

.date-range-chevron {
  position: absolute;
  top: 50%;
  right: 8px;
  color: #cbd9e9;
  transform: translateY(-50%);
}

.filter-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  min-width: 168px;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(64, 148, 197, 0.52);
  border-radius: 8px;
  background: rgba(4, 21, 36, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.filter-popover button {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #cfe3f7;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.filter-popover button:hover,
.filter-popover button.is-active {
  background: rgba(39, 228, 245, 0.12);
  color: #f3fbff;
}

.filter-popover--searchable {
  width: 260px;
}

.filter-search {
  display: grid;
  gap: 5px;
  padding: 2px 2px 8px;
}

.filter-search span {
  color: #7f9bb7;
  font-size: 10px;
  font-weight: 720;
}

.filter-search input {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(64, 148, 197, 0.36);
  border-radius: 7px;
  outline: 0;
  background: rgba(3, 18, 31, 0.9);
  color: #e6f3ff;
  font: inherit;
  font-size: 12px;
}

.filter-search input:focus {
  border-color: rgba(39, 228, 245, 0.72);
  box-shadow: 0 0 0 3px rgba(39, 228, 245, 0.08);
}

.filter-options-scroll {
  display: grid;
  max-height: 250px;
  gap: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.filter-options-scroll button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-options-scroll button small {
  flex: 0 0 auto;
  color: #7f9bb7;
  font-size: 10px;
  font-weight: 760;
}

.filter-empty {
  display: block;
  padding: 10px;
  color: #8faac5;
  font-size: 12px;
}

.date-time-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 680px;
  overflow: hidden;
  border: 1px solid rgba(39, 228, 245, 0.36);
  border-radius: 10px;
  background: rgba(4, 18, 31, 0.98);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.date-time-shortcuts,
.date-time-fields,
.date-time-footer {
  display: flex;
  align-items: center;
}

.date-time-shortcuts {
  gap: 8px;
  padding: 10px 12px 0;
}

.date-time-shortcuts button,
.date-time-fields button,
.calendar-toolbar button,
.calendar-day,
.time-column button,
.date-time-footer button {
  border: 0;
  background: transparent;
  color: #cfe3f7;
  cursor: pointer;
  font: inherit;
}

.date-time-shortcuts button {
  height: 28px;
  padding: 0 12px;
  border-radius: 7px;
  color: #8faac5;
  font-size: 12px;
  font-weight: 720;
}

.date-time-shortcuts button:hover,
.date-time-shortcuts button.is-active {
  background: rgba(39, 228, 245, 0.13);
  color: #f2fbff;
}

.date-time-fields {
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(111, 148, 183, 0.18);
}

.date-time-fields button {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 3px;
  padding: 8px 12px;
  border: 1px solid rgba(64, 148, 197, 0.3);
  border-radius: 8px;
  text-align: left;
}

.date-time-fields button.is-active {
  border-color: rgba(39, 228, 245, 0.76);
  background: rgba(39, 228, 245, 0.1);
}

.date-time-fields span {
  color: #7f9bb7;
  font-size: 11px;
}

.date-time-fields b {
  overflow: hidden;
  color: #eaf6ff;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-time-picker {
  display: grid;
  grid-template-columns: 452px 1fr;
  min-height: 348px;
}

.calendar-pane {
  display: grid;
  grid-template-rows: 42px 1fr;
  border-right: 1px solid rgba(111, 148, 183, 0.2);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 34px 34px 1fr 34px 34px;
  align-items: center;
  border-bottom: 1px solid rgba(111, 148, 183, 0.18);
}

.calendar-toolbar button {
  height: 34px;
  color: #9fb4c9;
  font-size: 24px;
  line-height: 1;
}

.calendar-toolbar button:hover {
  color: #27e4f5;
}

.calendar-toolbar strong {
  color: #eaf6ff;
  font-size: 20px;
  font-weight: 760;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: 40px;
  align-content: start;
  gap: 4px;
  padding: 10px 18px 14px;
}

.calendar-weekday {
  display: grid;
  place-items: center;
  color: #8faac5;
  font-size: 16px;
  font-weight: 720;
}

.calendar-day {
  display: grid;
  width: 36px;
  height: 36px;
  place-self: center;
  place-items: center;
  border-radius: 8px;
  color: #d4e6f4;
  font-size: 18px;
}

.calendar-day:hover {
  background: rgba(39, 228, 245, 0.1);
  color: #f2fbff;
}

.calendar-day.is-muted {
  color: rgba(178, 194, 207, 0.38);
}

.calendar-day.is-between {
  background: rgba(39, 228, 245, 0.07);
}

.calendar-day.is-start,
.calendar-day.is-end {
  background: rgba(39, 228, 245, 0.18);
  color: #ffffff;
  font-weight: 780;
}

.calendar-day.is-active {
  border: 1px solid #2f7cff;
  background: rgba(47, 124, 255, 0.15);
  color: #ffffff;
}

.time-pane {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.time-column {
  display: grid;
  grid-template-rows: 34px 1fr;
  min-height: 0;
  border-right: 1px solid rgba(111, 148, 183, 0.18);
}

.time-column:last-child {
  border-right: 0;
}

.time-column > span {
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(111, 148, 183, 0.18);
  color: #8faac5;
  font-size: 12px;
  font-weight: 720;
}

.time-column > div {
  display: grid;
  max-height: 306px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.time-column button {
  min-height: 34px;
  color: #d4e6f4;
  font-size: 17px;
}

.time-column button:hover,
.time-column button.is-active {
  background: rgba(39, 228, 245, 0.12);
  color: #ffffff;
  font-weight: 760;
}

.date-time-footer {
  justify-content: space-between;
  min-height: 54px;
  padding: 10px 12px;
  border-top: 1px solid rgba(111, 148, 183, 0.18);
}

.date-time-footer span {
  min-width: 0;
  overflow: hidden;
  color: #8faac5;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.date-time-footer button {
  flex: 0 0 auto;
  height: 34px;
  min-width: 66px;
  padding: 0 18px;
  border: 1px solid rgba(39, 228, 245, 0.52);
  border-radius: 8px;
  background: rgba(39, 228, 245, 0.12);
  color: #f2fbff;
  font-size: 13px;
  font-weight: 760;
}

.date-time-footer button:hover {
  border-color: #27e4f5;
  background: rgba(39, 228, 245, 0.18);
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #20e7d6;
  font-size: 13px;
  font-weight: 720;
}

.live-dot::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #20e7d6;
  box-shadow: 0 0 14px rgba(32, 231, 214, 0.72);
  content: "";
}

.live-dot--warn {
  color: #f7a33a;
}

.live-dot--warn::before {
  background: #f7a33a;
  box-shadow: 0 0 14px rgba(247, 163, 58, 0.72);
}

.header-error {
  max-width: 220px;
  overflow: hidden;
  color: #f7a33a;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.metric-grid .metric-card {
  grid-column: span 1;
}

.business-metric-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}

.business-metric-grid .metric-card {
  height: var(--business-metric-row-height);
  grid-column: span 1;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  padding: 10px 14px;
}

.robot-gift-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.robot-gift-metric-grid .metric-card {
  height: var(--robot-gift-metric-row-height);
}

.business-metric-grid .metric-content {
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) max-content;
  grid-template-rows: auto 1fr 18px;
  column-gap: 8px;
  align-items: center;
}

.robot-gift-metric-grid .metric-content {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.business-metric-grid .metric-card.is-loading .metric-content {
  grid-template-columns: minmax(0, 1fr) 96px;
  grid-template-rows: 16px 28px;
}

.business-metric-grid .metric-card.is-loading .skeleton-label {
  grid-column: 1;
  grid-row: 1;
  width: 88px;
}

.business-metric-grid .metric-card.is-loading .skeleton-value {
  grid-column: 1;
  grid-row: 2;
  width: min(160px, 76%);
  height: 24px;
}

.business-metric-grid .metric-card.is-loading .skeleton-caption {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  justify-self: end;
  width: 86px;
}

.business-metric-grid .metric-label-row {
  grid-column: 1;
  grid-row: 1;
  gap: 4px;
  font-size: 11px;
  white-space: nowrap;
}

.business-metric-grid .metric-label-row > span {
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
}

.robot-gift-metric-grid .metric-label-row > span {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.business-metric-grid .metric-content strong {
  grid-column: 1;
  grid-row: 2;
  margin-top: 3px;
  font-size: clamp(17px, 0.92vw, 20px);
  line-height: 1.25;
}

.business-metric-grid .metric-delta {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  gap: 3px;
  align-self: center;
  justify-self: end;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}

.business-metric-grid .metric-delta span {
  color: #7f9bb7;
}

.business-metric-grid .metric-sparkline {
  grid-column: 1 / 3;
  grid-row: 3;
}

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

.databi-grid--top {
  height: var(--analysis-row-height);
  min-height: 0;
}

.databi-grid--top > .databi-panel,
.databi-grid--middle > .databi-panel {
  grid-column: span 4;
}

.databi-grid--top .databi-panel {
  height: var(--analysis-row-height);
  min-height: 0;
}

.databi-grid--middle .databi-panel {
  height: 100%;
  min-height: 0;
}

.databi-screen .databi-grid--top .databi-panel,
.databi-screen .databi-grid--middle .databi-panel {
  display: flex;
  flex-direction: column;
}

.self-game-screen {
  display: grid;
  grid-template-rows: 44px auto repeat(3, minmax(236px, auto));
  gap: 16px;
  min-height: 0;
}

.self-game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.self-game-title {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.self-game-title strong {
  color: #f3f9ff;
  font-size: 20px;
  font-weight: 780;
}

.self-game-title span {
  color: #7f9bb7;
  font-size: 12px;
}

.self-game-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.self-game-kpi-grid .metric-card {
  grid-column: span 1;
  height: 118px;
}

.self-game-kpi-grid .metric-content {
  grid-template-rows: auto minmax(0, 1fr) auto 18px;
}

.self-game-kpi-grid .metric-content strong {
  font-size: clamp(16px, 0.98vw, 21px);
}

.self-game-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 0;
}

.self-game-panel-grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.self-game-panel-grid .databi-panel {
  min-height: 236px;
}

.self-game-panel-grid--single .databi-panel {
  min-height: 190px;
}
