body {
  background: #080e16;
  color: #eaf0f5;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[hidden] {
  display: none !important;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  padding: 48px 64px;
  background: #0e1922;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #22313c;
}
.auth-story h1 {
  font-size: clamp(42px, 5.5vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 18px 0 24px;
}
.auth-story p {
  max-width: 340px;
  font-size: 18px;
  color: #a7b5c2;
  line-height: 1.7;
}
.auth-foot {
  color: #96a7b6;
  font-size: 12px;
}
.auth-card {
  width: min(430px, 100%);
  padding: 48px 28px;
  margin: auto;
}
.auth-card h2 {
  font-size: 34px;
  letter-spacing: -0.03em;
  margin: 10px 0;
}
.auth-card > p {
  color: #a7b5c2;
  line-height: 1.6;
}
.auth-card form {
  display: grid;
  gap: 18px;
  margin: 28px 0;
}
.auth-card label {
  gap: 8px;
}
.auth-card input {
  height: 48px;
}
.auth-card .primary {
  height: 48px;
}
.auth-demo {
  display: inline-block;
  margin-top: 16px;
  color: #a1e6bc;
}
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #22313c;
  background: #0c141e;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.sidebar .wordmark {
  font-size: 21px;
  padding: 0 10px;
}
.sidebar .wordmark small {
  font-size: 8px;
}
.channel-switch {
  padding: 0 8px;
}
.channel-switch .eyebrow {
  display: block;
  margin-bottom: 10px;
}
.channel-switch select {
  font-weight: 700;
  width: 100%;
  background: #111e2b;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #a4b4c4;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}
.sidebar nav button span {
  font-size: 10px;
  color: #61758b;
  font-variant-numeric: tabular-nums;
}
.sidebar nav button:hover {
  background: #152333;
  color: #fff;
}
.sidebar nav button[aria-current='page'] {
  background: #172e2a;
  border-color: #31574b;
  color: #b5f0cd;
}
.sidebar nav button[aria-current='page'] span {
  color: #91d6af;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 0 10px;
  display: grid;
  gap: 7px;
}
.sidebar-bottom small {
  color: #9aacbd;
  overflow-wrap: anywhere;
}
.sidebar-bottom button {
  color: #9aacbd;
  background: none;
  border: 0;
  padding: 14px 0;
  text-align: left;
  cursor: pointer;
}
.app-main {
  min-width: 0;
}
.portal-header {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid #1e2c39;
  background: #0b121b;
}
.portal-header > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.portal-header small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #91a6ba;
}
.save-pill {
  border: 1px solid #355342;
  background: #13281e;
  color: #a1e6bc;
  font-size: 11px;
  padding: 8px 11px;
  border-radius: 20px;
}
.app-main main {
  padding: 0 32px 20px;
  max-width: 1600px;
  margin: auto;
}
.view {
  padding-top: 36px;
}
.live-view {
  padding: 0;
  margin: 0 -20px;
}
.live-view iframe {
  border: 0;
  width: 100%;
  height: 1100px;
  display: block;
  background: transparent;
}
.view-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.view-heading h1 {
  font-size: 36px;
  letter-spacing: -0.04em;
  margin: 9px 0;
}
.view-heading p {
  max-width: 760px;
  color: #9cadbd;
  line-height: 1.6;
  margin: 0;
}
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-bar label {
  width: 180px;
}
.filter-bar button {
  height: 42px;
}
.stats-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.stat-card {
  padding: 20px;
  border: 1px solid #263644;
  border-radius: 14px;
  background: #111c29;
}
.stat-card span {
  display: block;
  color: #a5b5c4;
  font-size: 12px;
  margin-bottom: 12px;
}
.stat-card strong {
  font-size: 28px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.stat-card small {
  display: block;
  color: #8da1b4;
  margin-top: 10px;
  font-size: 11px;
}
.context-strip {
  padding: 14px 16px;
  background: #111c29;
  border: 1px solid #273543;
  border-radius: 10px;
  color: #aabaca;
  font-size: 12px;
  line-height: 1.7;
  margin: 14px 0 24px;
}
.context-strip strong {
  color: #eaf0f5;
}
.game-filter {
  width: 240px;
  font-size: 11px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid #263644;
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}
th {
  background: #101b28;
  color: #91a7bc;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 15px;
  text-align: right;
}
td {
  padding: 18px 15px;
  border-top: 1px solid #23323f;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
th:first-child,
td:first-child {
  text-align: left;
}
td:first-child strong {
  display: block;
  font-size: 13px;
}
td small {
  display: block;
  font-size: 10px;
  color: #90a5b8;
  margin-top: 5px;
}
tbody tr:hover {
  background: #111e2b;
}
.positive {
  color: #34d399 !important;
}
.negative {
  color: #fb7185 !important;
}
.history-list {
  display: grid;
  gap: 12px;
}
.history-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: #111c29;
  border: 1px solid #263644;
  border-radius: 12px;
}
.history-row h3 {
  font-size: 15px;
  margin: 0 0 7px;
}
.history-row small {
  color: #9cadbd;
  font-size: 11px;
}
.history-row .amount-label {
  display: block;
  color: #90a5b8;
  font-size: 10px;
  margin-bottom: 8px;
}
.history-row strong {
  font-size: 19px;
  font-variant-numeric: tabular-nums;
}
.tag {
  font-size: 10px;
  border: 1px solid #355342;
  border-radius: 5px;
  padding: 4px 7px;
  color: #a1e6bc;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
  color: #91a7bc;
  font-size: 12px;
}
.setup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.setup-grid .panel {
  padding: 24px;
}
.setup-grid p {
  color: #a5b5c5;
  line-height: 1.7;
  font-size: 13px;
}
.setup-grid h2 {
  margin-top: 0;
}
.setup-grid form {
  display: grid;
  gap: 16px;
}
.profile-form {
  grid-template-columns: 1fr 1fr;
}
.profile-form .check-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-form .check-line input {
  width: 16px;
}
.profile-form button {
  grid-column: 1/-1;
}
.setup-steps {
  padding-left: 20px;
  color: #a5b5c5;
  font-size: 12px;
  line-height: 2;
}
.portal-footer {
  border-top: 1px solid #1e2c39;
  margin-top: 32px;
  padding-top: 18px;
  color: #8196a9;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.portal-footer a {
  color: #a5b5c5;
}
.team-member {
  padding: 16px 0;
  border-bottom: 1px solid #263644;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.team-member strong {
  display: block;
}
.team-member small {
  display: block;
  margin-top: 5px;
  color: #91a7bc;
}
.empty-state {
  padding: 56px 24px;
  background: #101b28;
  border: 1px dashed #324455;
  border-radius: 14px;
  text-align: center;
  color: #9cadbd;
}
.empty-state strong {
  display: block;
  color: #eaf0f5;
  font-size: 19px;
  margin-bottom: 12px;
}
dialog {
  max-width: 850px;
  width: calc(100% - 32px);
}
.detail-entry {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #293845;
}
.detail-entry strong {
  display: block;
}
.detail-entry small {
  display: block;
  color: #94a8bc;
  margin-top: 6px;
}
.detail-entry form {
  display: flex;
  gap: 8px;
  align-items: center;
}
.detail-entry input {
  width: 120px;
}
.detail-entry label {
  font-size: 10px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #a1e6bc;
  outline-offset: 3px;
}
input,
select {
  color-scheme: dark;
}
.error {
  margin: 16px 0;
}
@media (max-width: 1050px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 10px;
  }
  .portal-header {
    padding: 0 20px;
  }
  .app-main main {
    padding: 0 20px 20px;
  }
  .stats-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .history-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  .history-row > div:nth-child(2) {
    display: none;
  }
  .auth-story {
    padding: 36px;
  }
  .detail-entry {
    grid-template-columns: 1fr auto;
  }
  .detail-entry form {
    grid-column: 1/-1;
  }
}
@media (max-width: 700px) {
  .auth-shell {
    display: block;
  }
  .auth-story {
    padding: 26px;
    min-height: 230px;
    gap: 26px;
    border-right: 0;
    border-bottom: 1px solid #22313c;
  }
  .auth-story h1 {
    font-size: 36px;
    margin: 0;
  }
  .auth-story h1 br {
    display: none;
  }
  .auth-story p,
  .auth-foot {
    display: none;
  }
  .auth-card {
    padding: 28px 24px;
  }
  .app-shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #22313c;
    gap: 12px;
  }
  .sidebar > .wordmark {
    display: none;
  }
  .channel-switch {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
  }
  .sidebar nav button {
    padding: 11px 12px;
    white-space: nowrap;
    font-size: 11px;
  }
  .sidebar nav button span {
    display: none;
  }
  .sidebar-bottom {
    display: none;
  }
  .portal-header {
    height: 58px;
    padding: 0 16px;
  }
  .portal-header > div {
    font-size: 12px;
    gap: 8px;
  }
  .save-pill {
    font-size: 9px;
    padding: 6px 8px;
  }
  .app-main main {
    padding: 0 16px 16px;
  }
  .view {
    padding-top: 24px;
  }
  .live-view {
    padding-top: 0;
    margin: 0 -12px;
  }
  .view-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .view-heading h1 {
    font-size: 29px;
  }
  .view-heading p {
    font-size: 12px;
  }
  .filter-bar label {
    width: calc(50% - 6px);
  }
  .filter-bar label:last-of-type {
    flex: 1;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-card strong {
    font-size: 23px;
  }
  .history-row {
    padding: 16px;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
  }
  .history-row > div:first-child {
    grid-column: 1/-1;
  }
  .history-row > button {
    grid-column: 1/-1;
  }
  .profile-form {
    grid-template-columns: 1fr;
  }
  .setup-grid .panel {
    padding: 18px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  .game-filter {
    width: 100%;
  }
  .portal-footer {
    line-height: 1.8;
  }
  .detail-entry {
    grid-template-columns: 1fr;
  }
  .detail-entry form {
    flex-wrap: wrap;
  }
  dialog {
    padding: 18px;
  }
  .context-strip {
    font-size: 11px;
  }
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.mobile-signout {
  display: none;
}
@media (max-width: 700px) {
  .mobile-signout {
    display: block;
    font-size: 10px;
    padding: 7px;
  }
  .channel-switch {
    display: block;
    padding: 0 6px;
  }
  .channel-switch .eyebrow {
    display: none;
  }
  .channel-switch select {
    height: 34px;
    font-size: 12px;
  }
  .sidebar {
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .sidebar nav {
    scrollbar-width: none;
  }
  .sidebar nav::-webkit-scrollbar {
    display: none;
  }
}
