:root {
  --bg: #f3ecde;
  --bg-accent: #d8c7aa;
  --ink: #1f2b20;
  --muted: #5f6c60;
  --panel: rgba(254, 250, 242, 0.88);
  --panel-strong: #fffaf2;
  --line: rgba(37, 49, 38, 0.12);
  --accent: #4f6d43;
  --accent-strong: #31462a;
  --accent-warm: #bf7a32;
  --danger: #9e3d31;
  --shadow: 0 28px 60px rgba(36, 31, 22, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --mono: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
  --sans: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  --serif: "Palatino Linotype", "Book Antiqua", serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(191, 122, 50, 0.16), transparent 30%),
    radial-gradient(circle at right center, rgba(79, 109, 67, 0.18), transparent 28%),
    linear-gradient(180deg, #f7f1e5 0%, #efe6d4 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
}

button,
input,
select {
  font: inherit;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
  pointer-events: none;
}

.app-shell {
  position: relative;
  max-width: 1520px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.topbar h1,
.section-head h2,
.subsection__head h3 {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.01em;
}

.topbar h1 {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1;
}

.subtle {
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.session-card {
  min-width: 280px;
  padding: 18px 20px;
  border: 1px solid rgba(79, 109, 67, 0.2);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 243, 0.76);
  box-shadow: 0 12px 24px rgba(48, 43, 31, 0.08);
}

.session-card__label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.topbar__meta {
  display: grid;
  gap: 14px;
}

.topbar__actions,
.section-actions,
.pager,
.workspace-nav,
.search-bar,
.upload-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.upload-bar {
  flex-wrap: wrap;
}

.layout,
.workspace,
.players-view-stack,
.content-column,
.players-layout,
.admin-grid,
.xlsx-layout,
.publish-result,
.churn-dashboard,
.churn-grid {
  display: grid;
  gap: 20px;
}

.players-layout {
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
}

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

.admin-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 22px;
}

.panel--login {
  max-width: 520px;
}

.section-head,
.subsection__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-head {
  margin-bottom: 18px;
}

.subsection__head {
  margin-bottom: 12px;
}

.tab-chip,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
}

.tag {
  background: rgba(79, 109, 67, 0.12);
  color: var(--accent-strong);
  font-size: 0.84rem;
}

.tab-chip {
  border: 1px solid rgba(79, 109, 67, 0.14);
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  cursor: pointer;
}

.tab-chip.is-active {
  border-color: rgba(79, 109, 67, 0.28);
  background: rgba(79, 109, 67, 0.12);
  color: var(--accent-strong);
}

.workspace-nav {
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.form-grid,
.field,
.detail-card {
  display: grid;
  gap: 14px;
}

.field {
  gap: 8px;
}

.field span {
  font-size: 0.92rem;
  color: var(--muted);
}

.field input,
.field select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(49, 70, 42, 0.16);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  color: var(--ink);
}

.field-textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px 14px;
  border: 1px solid rgba(49, 70, 42, 0.16);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field-textarea:focus {
  outline: 2px solid rgba(79, 109, 67, 0.22);
  outline-offset: 1px;
}

.field--compact {
  min-width: 92px;
}

.section-actions--form {
  align-self: end;
  justify-content: flex-end;
}

.upload-field {
  min-width: 0;
  flex: 1;
}

.target-dir-field {
  min-width: 220px;
  flex: 0 1 280px;
}

.search-field {
  min-width: 0;
  flex: 1;
}

.button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: default;
  opacity: 0.55;
}

.button--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #f8f5ee;
  box-shadow: 0 12px 24px rgba(49, 70, 42, 0.22);
}

.button--ghost {
  background: rgba(79, 109, 67, 0.1);
  color: var(--accent-strong);
}

.button--danger {
  background: rgba(158, 61, 49, 0.12);
  color: var(--danger);
}

.banner {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.banner--info {
  background: rgba(79, 109, 67, 0.12);
  border-color: rgba(79, 109, 67, 0.18);
}

.banner--success {
  background: rgba(79, 109, 67, 0.14);
  border-color: rgba(79, 109, 67, 0.22);
}

.banner--error {
  background: rgba(158, 61, 49, 0.12);
  border-color: rgba(158, 61, 49, 0.22);
  color: var(--danger);
}

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

.stats-grid--publish {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid--analytics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0;
}

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.46);
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  font-family: var(--serif);
}

#mapUploadFileName,
#mapUploadFileSize,
#mapUploadUploadedAt {
  word-break: break-word;
}

.metric__sub {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.churn-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bucket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.bucket-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
}

.bucket-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 1.05rem;
}

.bucket-card__count {
  display: block;
  margin: 6px 0;
  font-size: 1.4rem;
  font-family: var(--serif);
}

.bucket-card__meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.users-list,
.data-list {
  display: grid;
  gap: 10px;
}

.user-row,
.data-row {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.54);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.user-row:hover,
.data-row:hover {
  border-color: rgba(79, 109, 67, 0.28);
}

.user-row.is-selected,
.data-row.is-selected {
  background: rgba(79, 109, 67, 0.14);
  border-color: rgba(79, 109, 67, 0.38);
}

.user-row__title,
.data-row__title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 6px;
}

.user-row__uid,
.data-row__meta,
.data-row__preview,
.mono {
  font-family: var(--mono);
}

.user-row__uid,
.data-row__meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.user-row__meta,
.data-row__preview {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.detail-card__hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.detail-card__name {
  display: block;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-family: var(--serif);
}

.detail-card__uid {
  margin: 8px 0 0;
  color: var(--muted);
  font-family: var(--mono);
}

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

.detail-grid div,
.meta-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--line);
}

.detail-grid dt {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-grid dd {
  margin: 0;
  word-break: break-word;
}

.data-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.85fr);
  gap: 18px;
}

.preview-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: calc(var(--radius-lg) - 8px);
  border: 1px solid var(--line);
  background: rgba(30, 41, 29, 0.94);
  color: #edf0e7;
}

.preview-panel .eyebrow,
.preview-panel .subtle {
  color: rgba(237, 240, 231, 0.72);
}

.preview-panel__meta strong {
  display: block;
  margin: 6px 0;
  word-break: break-word;
}

.value-preview,
.log-output {
  margin: 0;
  overflow: auto;
  padding: 18px;
  border-radius: var(--radius-md);
  font-family: var(--mono);
  font-size: 0.92rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.value-preview {
  background: rgba(255, 255, 255, 0.08);
  color: #f6f7f3;
}

.log-output {
  min-height: 220px;
  background: rgba(30, 41, 29, 0.94);
  color: #edf0e7;
}

.empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed rgba(79, 109, 67, 0.28);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.table-shell {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.feedback-content {
  min-width: 360px;
  max-width: 720px;
  white-space: pre-wrap;
  word-break: break-word;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions .button {
  min-height: 34px;
  padding: 0 14px;
}

.meta-card {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.meta-card div {
  display: grid;
  gap: 6px;
}

.meta-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.meta-card strong {
  font-family: var(--mono);
  word-break: break-word;
}

.search-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.search-bar .search-field {
  grid-column: 1 / -1;
}

.search-bar .button {
  width: 100%;
}

.pager {
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.subsection {
  display: grid;
  gap: 12px;
}

#userDetailCard + .subsection {
  margin-top: 18px;
}

.subsection + .subsection {
  margin-top: 12px;
}

#newDataEditorBtn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.12);
  color: #edf0e7;
}

#newDataEditorBtn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.18);
}

.workspace-view.hidden,
.hidden {
  display: none !important;
}

@media (max-width: 1200px) {
  .players-layout,
  .admin-grid,
  .xlsx-layout,
  .data-layout,
  .churn-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid--publish,
  .stats-grid--analytics,
  .churn-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 20px 14px 28px;
  }

  .topbar,
  .section-head,
  .subsection__head,
  .topbar__actions,
  .section-actions,
  .workspace-nav,
  .upload-bar,
  .row-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pager {
    justify-content: space-between;
    align-items: center;
  }

  .stats-grid,
  .stats-grid--publish,
  .stats-grid--analytics,
  .detail-grid,
  .churn-filters {
    grid-template-columns: 1fr;
  }

  .session-card {
    min-width: 0;
  }
}

.analytics-details:not([hidden]) {
  display: grid;
  gap: 22px;
  margin: 24px 0;
}

.analytics-details h3 {
  margin: 0 0 6px;
}

.analytics-pages {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Game analytics dashboard */
.ga-shell{display:flex;background:#f5f7fb;border:1px solid #e8edf5;border-radius:12px;overflow:hidden;margin:22px 0;color:#172337}.ga-shell [hidden]{display:none!important}.ga-nav{width:190px;flex-shrink:0;background:#182238;padding:22px 13px;color:#a9b4c8;display:flex;flex-direction:column;gap:5px}.ga-brand{font-weight:700;font-size:16px;color:#fff;margin:0 8px 30px}.ga-nav>span{font-size:11px;color:#7f8ca3;margin:0 9px 8px}.ga-nav button{border:0;text-align:left;background:transparent;color:#a9b4c8;padding:12px;border-radius:7px;cursor:pointer}.ga-nav button.ga-nav-active{background:#304567;color:white;font-weight:700}.ga-content{padding:27px;min-width:0;flex:1}.ga-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.ga-heading small{color:#9ba7b6}.ga-heading h2{margin:8px 0;font-size:22px}.ga-heading p,.ga-card p{font-size:12px;color:#8794a7;margin:8px 0 14px}.ga-heading>span{font-size:11px;color:#8190a4}.ga-status{padding:11px 13px;background:#eef4ff;color:#6880a5;border-radius:6px;font-size:12px}.ga-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.ga-metric,.ga-card{background:#fff;border:1px solid #e8edf4;border-radius:9px}.ga-metric{padding:17px;min-height:99px}.ga-metric span{display:block;color:#8592a4;font-size:12px}.ga-metric strong{display:block;font-size:25px;margin-top:12px;color:#1b2940}.ga-card{padding:19px;margin-bottom:14px;overflow:hidden}.ga-card h3{font-size:15px;margin:0}.ga-card-head{display:flex;justify-content:space-between;align-items:center}.ga-card-head span{font-size:11px;color:#98a4b3}.ga-bars{min-height:155px;display:flex;align-items:flex-end;gap:10px;padding:10px 8px 26px;border-bottom:1px solid #edf0f5;overflow-x:auto}.ga-bar{min-width:48px;flex:1;text-align:center;position:relative}.ga-bar i{display:block;width:55%;max-width:44px;margin:auto;background:#6384f4;border-radius:5px 5px 0 0;min-height:2px}.ga-bar small{position:absolute;top:100%;left:0;right:0;color:#98a4b3;font-size:10px;padding-top:6px}.ga-bar b{font-size:10px;color:#65778d}.ga-empty{color:#9ba8b8;font-size:12px;padding:22px 0}.ga-funnel{display:flex;gap:8px;align-items:flex-end;margin:18px 0;overflow:auto}.ga-funnel .ga-step{min-width:100px;flex:1;text-align:center;font-size:11px;color:#718197}.ga-funnel .ga-step i{display:block;background:#6b8bf5;margin:8px auto;height:75px;width:75%;border-radius:6px}.ga-levels{margin:15px 0;display:grid;gap:8px}.ga-level{display:grid;grid-template-columns:60px 1fr 55px;gap:12px;align-items:center;color:#65758a;font-size:12px}.ga-level i{height:7px;background:#eef1f7;border-radius:5px;overflow:hidden}.ga-level b{display:block;height:100%;background:#6988f4}.ga-content .table-shell{margin-top:14px}.ga-content .data-table th{background:#f8f9fc}.ga-content .data-table td,.ga-content .data-table th{font-size:12px}.ga-content .analytics-pages{margin-top:15px}@media(max-width:900px){.ga-shell{display:block}.ga-nav{width:auto;display:flex;flex-direction:row;overflow:auto}.ga-brand,.ga-nav>span{display:none}.ga-nav button{white-space:nowrap}.ga-content{padding:16px}.ga-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
body:has(#analyticsView:not(.hidden)) .topbar{padding-bottom:8px;margin-bottom:12px}body:has(#analyticsView:not(.hidden)) .topbar h1{font-size:22px;margin:3px 0}body:has(#analyticsView:not(.hidden)) .topbar .eyebrow,body:has(#analyticsView:not(.hidden)) .topbar>div:first-child>.subtle{display:none}body:has(#analyticsView:not(.hidden)) #analyticsView>section.panel{padding:0;background:transparent;border:0;box-shadow:none}body:has(#analyticsView:not(.hidden)) #analyticsView>section.panel>.section-head{display:none}.ga-content .churn-filters{margin-bottom:16px}.ga-content .field span{font-size:11px}.ga-content .churn-filters input,.ga-content .churn-filters select{background:white}

/* Login and analytics workspace, aligned with the approved design. */
html:has(#loginPanel:not(.hidden)),html:has(#analyticsView:not(.hidden)){background:#f5f7fb}
body:has(#loginPanel:not(.hidden)),body:has(#analyticsView:not(.hidden)){font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#172337;background:#f5f7fb}
body:has(#loginPanel:not(.hidden)) .backdrop,body:has(#analyticsView:not(.hidden)) .backdrop{display:none}
body:has(#loginPanel:not(.hidden)) .app-shell{max-width:none;padding:0}
body:has(#loginPanel:not(.hidden)) .topbar{display:none}
body:has(#loginPanel:not(.hidden)) .layout{display:block}
body:has(#loginPanel:not(.hidden)) #messageBanner:not(.hidden){position:fixed;z-index:50;top:18px;right:20px;max-width:430px}
.login-screen{display:flex;min-height:100vh}.login-side{width:42%;min-height:100vh;background:#182238;color:white;padding:42px 54px;display:flex;flex-direction:column}.login-brand,.login-main-brand{font-size:16px;font-weight:750;display:flex;gap:11px;align-items:center}.login-brand span,.login-main-brand span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#557bf5;color:white;font-size:18px}.login-side-copy{margin:auto 0;max-width:440px}.login-kicker,.login-overline{letter-spacing:2px;font-size:11px;font-weight:700;color:#8da9fb}.login-side-copy h1{font-size:34px;line-height:1.5;letter-spacing:1px;margin:22px 0 12px}.login-side-copy p{color:#a5b3c9;font-size:14px}.login-side-rule{width:38px;height:3px;background:#6689fa;margin:38px 0}.login-side-items{display:grid;gap:19px;color:#c5d0e1;font-size:13px}.login-side-items b{color:#809efb;margin-right:16px;font-size:11px}.login-side-foot{font-size:11px;color:#7b8ba4}.login-main{flex:1;background:#f5f7fb;display:flex;align-items:center;justify-content:center;position:relative;padding:70px 24px}.login-main-brand{display:none}.login-box{width:min(420px,100%);background:#fff;border:1px solid #eaf0f6;box-shadow:0 14px 55px rgba(32,52,90,.055);padding:44px;border-radius:14px}.login-overline{color:#758fdc}.login-box h2{font-size:25px;margin:13px 0 10px;color:#1b2940;font-family:inherit}.login-box>p{font-size:13px;color:#8a96a8;margin:0 0 34px}.login-form{display:grid;gap:22px}.login-form .field{display:grid;gap:9px}.login-form .field span{font-size:12px;color:#59677a}.login-form input{height:47px;border:1px solid #e1e7f0;border-radius:7px;padding:0 13px;background:white;color:#172337}.login-form input:focus{outline:2px solid #cbd9ff;border-color:#6485f4}.login-form .button--primary{height:48px;border:0;border-radius:7px;background:#4e76f5;color:white;box-shadow:none;margin-top:5px;font-weight:700;text-align:center;position:relative}.login-form .button--primary span{position:absolute;right:17px}.login-hint{border-top:1px solid #eff2f7;margin-top:30px;padding-top:19px;color:#a4afbd;font-size:11px;text-align:center}.login-foot{position:absolute;bottom:30px;color:#a9b4c1;font-size:11px}
body:has(#analyticsView:not(.hidden)) .app-shell{max-width:none;padding:0}body:has(#analyticsView:not(.hidden)) .topbar{display:none}body:has(#analyticsView:not(.hidden)) .layout,body:has(#analyticsView:not(.hidden)) .workspace{display:block}body:has(#analyticsView:not(.hidden)) #messageBanner:not(.hidden){position:fixed;right:22px;top:72px;z-index:50;max-width:420px;box-shadow:0 6px 18px #2132531c}body:has(#analyticsView:not(.hidden)) .workspace-nav{display:none;position:fixed;z-index:55;top:61px;right:90px;width:155px;padding:8px;background:#fff;border:1px solid #e6ebf2;border-radius:9px;box-shadow:0 10px 35px #1a2d4930}body:has(#analyticsView:not(.hidden)) .workspace-nav.ga-nav-open{display:grid;gap:3px}body:has(#analyticsView:not(.hidden)) .workspace-nav .tab-chip{width:100%;text-align:left;border:0;border-radius:6px;background:white;padding:9px;color:#536176;font-size:12px}body:has(#analyticsView:not(.hidden)) .workspace-nav .tab-chip:hover{background:#f2f5fb}body:has(#analyticsView:not(.hidden)) #analyticsView>section.panel{padding:0;background:transparent;border:0;box-shadow:none}.ga-shell{border:0;border-radius:0;margin:0;min-height:100vh;overflow:visible}.ga-nav{width:222px;padding:24px 15px;position:fixed;top:0;bottom:0;left:0;z-index:5}.ga-brand{font-size:17px;margin:7px 8px 48px}.ga-content{margin-left:222px;padding:96px 36px 48px;min-width:0}.ga-topbar{height:66px;position:fixed;top:0;left:222px;right:0;z-index:4;padding:0 36px;background:#fff;border-bottom:1px solid #ecf0f5;display:flex;justify-content:space-between;align-items:center;color:#a1acba;font-size:12px}.ga-topbar strong{color:#465367}.ga-top-actions{display:flex;align-items:center;gap:16px;color:#7d899b}.ga-top-actions button{border:0;background:transparent;color:#67788c;font-size:12px;padding:8px;cursor:pointer}.ga-avatar{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e3eafd;color:#6078c9;font-weight:700}.ga-heading h2{font-family:inherit;font-size:24px;margin:0 0 8px}.ga-heading small{display:none}.ga-heading p{margin:0}.ga-heading{margin-bottom:22px}.ga-content .churn-filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 14px}.ga-content .churn-filters .field{display:grid;gap:4px}.ga-content .churn-filters input,.ga-content .churn-filters select{height:36px;width:auto;min-width:130px;border:1px solid #e4e9f1;border-radius:7px;padding:7px 9px;font-size:12px;color:#526176}.ga-content .churn-filters .button{height:36px;padding:0 15px;align-self:end;border-radius:7px;background:#4e76f5;box-shadow:none;border:0;font-size:12px}.ga-status{margin:0 0 16px}.ga-metrics{gap:15px;margin-bottom:16px}.ga-metric{min-height:120px;padding:20px}.ga-card{padding:20px 21px}.ga-card h3{font-size:14px}.ga-page .data-table th{background:#f8f9fc}.ga-page .data-table td,.ga-page .data-table th{border-color:#f0f2f6}.ga-content #analyticsDetails{margin:0}body:has(#analyticsView:not(.hidden)) #gameDataDetails{margin:0 36px 40px 258px;color:#6d7d90;font-size:12px}
@media(max-width:900px){.login-side{width:37%;padding:32px}.login-side-copy h1{font-size:26px}.ga-nav{width:190px}.ga-content{margin-left:190px;padding:94px 24px 35px}.ga-topbar{left:190px;padding:0 24px}body:has(#analyticsView:not(.hidden)) #gameDataDetails{margin-left:214px}}
@media(max-width:650px){.login-side{display:none}.login-main{min-height:100vh;padding:90px 18px 70px}.login-main-brand{display:flex;position:absolute;top:26px;left:24px;color:#26364d}.login-box{padding:32px 25px}.ga-shell{display:block}.ga-nav{position:relative;top:auto;left:auto;width:100%;height:auto;padding:10px;display:flex;flex-direction:row;overflow-x:auto}.ga-brand,.ga-nav>span{display:none}.ga-nav button{white-space:nowrap;padding:10px}.ga-topbar{position:relative;left:auto;right:auto;top:auto;height:50px;padding:0 14px;margin:-16px -14px 20px}.ga-top-actions{gap:5px}.ga-top-actions>span:not(.ga-avatar){display:none}.ga-content{margin:0;padding:16px 14px 30px}.ga-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.ga-metric{padding:14px;min-height:90px}.ga-metric strong{font-size:20px}body:has(#analyticsView:not(.hidden)) .workspace-nav{top:112px;right:16px}body:has(#analyticsView:not(.hidden)) #gameDataDetails{margin:0 14px 25px}}
.ga-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:16px}.ga-grid-equal{grid-template-columns:1fr 1fr}.ga-small-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:20px}.ga-small-stat{border:1px solid #edf1f7;border-radius:7px;padding:14px}.ga-small-stat span{display:block;color:#929eaf;font-size:11px;margin-bottom:9px}.ga-small-stat b{font-size:18px;color:#26374f}.ga-ranking{display:grid;grid-template-columns:28px 1fr auto;gap:12px;align-items:center;border-bottom:1px solid #f1f3f6;padding:13px 0;color:#65758a;font-size:12px}.ga-ranking:last-child{border:0}.ga-ranking .rank-index{display:grid;place-items:center;width:26px;height:26px;border-radius:6px;background:#f0f3fe;color:#6d87e6;font-weight:700}.ga-ranking strong{color:#33425b}.ga-bars svg{width:100%;height:165px;overflow:visible}.ga-bars{align-items:center;padding:12px 3px 15px}.ga-funnel .ga-step i{max-width:115px}.ga-funnel .ga-step:nth-child(2) i{opacity:.87}.ga-funnel .ga-step:nth-child(3) i{opacity:.75}.ga-funnel .ga-step:nth-child(4) i{opacity:.62}.ga-funnel .ga-step:nth-child(n+5) i{opacity:.5}@media(max-width:1000px){.ga-grid,.ga-grid-equal{grid-template-columns:1fr}}
.ga-brand{display:flex;gap:11px;align-items:center;margin:0 8px 30px}.ga-logo{display:grid;place-items:center;width:34px;height:34px;background:#4e76fa;border-radius:10px;color:#fff;font-size:18px}
.ga-game-field{position:relative;min-width:165px}.ga-game-menu>summary{height:36px;min-width:165px;max-width:250px;display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;background:#fff;border:1px solid #e4e9f1;border-radius:7px;padding:7px 10px;color:#526176;font-size:12px}.ga-game-menu>summary::-webkit-details-marker{display:none}.ga-game-menu>summary::after{content:'⌄';color:#8290a3}.ga-game-options{position:absolute;top:100%;left:0;z-index:20;background:white;border:1px solid #e4e9f1;border-radius:8px;box-shadow:0 10px 28px #1a2d4926;min-width:230px;max-height:310px;overflow:auto;padding:7px}.ga-game-option{display:flex;align-items:center;gap:8px;padding:8px;color:#44536a;font-size:12px;cursor:pointer}.ga-game-option:hover{background:#f4f7ff}.ga-game-option input{width:15px!important;height:15px!important;min-width:15px!important;accent-color:#4e76f5}.ga-game-all{border-bottom:1px solid #edf0f5;font-weight:700}.ga-game-options #gaGameHint{color:#99a5b4;font-size:11px;padding:7px}.ga-multi-title{display:flex;justify-content:space-between;align-items:center;gap:10px}.ga-multi-title span{color:#91a0b1;font-size:11px}.ga-multi-metrics{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.ga-multi-value{background:#f6f8fc;border-radius:7px;padding:10px 13px;min-width:120px}.ga-multi-value span{display:block;color:#8997a8;font-size:11px}.ga-multi-value strong{display:block;font-size:16px;margin-top:6px;color:#26374f}.ga-multi-empty{font-size:12px;color:#95a2b3;padding:8px 0}.ga-multi-note{color:#8493a7;font-size:12px;line-height:1.6}

/* Compact game picker: app artwork, name, and selection state. */
.ga-game-options{padding:5px;max-height:min(360px,60vh);min-width:230px}.ga-game-option{height:36px;min-height:36px;gap:9px;padding:4px 8px;margin:0;border-radius:5px;line-height:1.2}.ga-content .ga-game-option input[type=checkbox]{flex:0 0 15px;width:15px!important;height:15px!important;min-width:15px!important;min-height:0!important;padding:0!important;margin:0 0 0 auto!important;accent-color:#4e76f5}.ga-game-icon{display:block;flex:0 0 26px;width:26px;height:26px;object-fit:cover;border-radius:5px;background:#eef2fa}.ga-game-icon-fallback{display:grid;place-items:center;color:#7183a1!important;font-size:12px!important;font-weight:700}.ga-game-option .ga-game-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#44536a;font-size:12px}.ga-game-menu>summary{justify-content:flex-start}.ga-game-menu>summary::after{margin-left:auto}.ga-game-menu>summary .ga-game-icon{width:22px;height:22px;flex-basis:22px;border-radius:4px}.ga-game-summary-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#526176!important;font-size:12px!important}.ga-game-all{height:34px;min-height:34px;margin-bottom:3px;border-radius:5px 5px 0 0}.ga-game-all input[type=checkbox]{margin-left:0!important;margin-right:0!important}.ga-game-options #gaGameHint{padding:5px 8px;font-size:10px}
.ga-content .ga-game-all input[type=checkbox]{margin-left:0!important;margin-right:0!important}
.ga-day-table .ga-daily-table th,.ga-day-table .ga-daily-table td{white-space:nowrap;vertical-align:middle}.ga-daily-game{display:flex;align-items:center;gap:8px;min-width:180px}.ga-daily-game .ga-game-icon{width:24px;height:24px;flex-basis:24px}.ga-daily-table tr.ga-day-total td{background:#f4f7fd;color:#475d80;font-weight:700;border-bottom:2px solid #e0e8f4}.ga-daily-table tr.ga-day-total td:nth-child(2){min-width:180px}
/* One active game in the sidebar; project overview covers all games. */
.ga-switcher{position:relative;margin:0 2px 25px}.ga-switcher-label{color:#8190a8;font-size:11px;margin:0 9px 8px}.ga-switcher .ga-game-menu{position:relative}.ga-switcher .ga-game-menu>summary{width:100%;min-width:0;max-width:none;height:44px;color:#edf3ff;background:#222e46;border:1px solid #35445f;border-radius:8px;padding:8px 10px}.ga-switcher .ga-game-summary-text{color:#edf3ff!important;font-size:12px!important}.ga-switcher .ga-game-menu>summary::after{color:#a9b4c8}.ga-switcher .ga-game-options{left:0;top:calc(100% + 5px);min-width:240px;z-index:30}.ga-switcher .ga-game-option{width:100%;text-align:left;border:0;background:transparent;cursor:pointer}.ga-switcher .ga-game-option:hover,.ga-switcher .ga-game-option:focus-visible{background:#f3f6ff;outline:none}.ga-switcher .ga-game-option.selected{background:#eef3ff}.ga-switcher .ga-game-name{flex:1}.ga-switcher .ga-game-selected{font-size:14px;color:#5579ea;margin-left:auto}.ga-switcher .ga-game-options #gaGameHint{border-top:1px solid #edf0f5}.ga-nav{overflow:visible}.ga-content .churn-filters{align-items:end}
@media(max-width:650px){.ga-nav{display:flex;flex-wrap:wrap;overflow:visible}.ga-switcher{flex:0 0 100%;margin:0 3px 7px}.ga-switcher-label{display:none}.ga-switcher .ga-game-menu>summary{width:210px;height:36px}.ga-switcher .ga-game-options{max-width:calc(100vw - 28px)}.ga-nav>button{flex:0 0 auto}.ga-topbar{margin-top:-16px}}
