/* LOBBY_TASKS_ADMIN_CONTRAST_V6_START
   Final light-theme normalization. Loaded AFTER lobby-orange-ui.css. */

/* ---------- Owner admin: layout + readable sidebar ---------- */
body.lobby-theme .admin-shell.admin-fast{
  width:min(1580px,calc(100% - 28px))!important;
  grid-template-columns:300px minmax(0,1fr)!important;
  gap:18px!important;
  align-items:start!important;
}
body.lobby-theme .admin-shell.admin-fast .admin-content{min-width:0!important;width:100%!important}
body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass{
  position:sticky!important;
  top:92px!important;
  max-height:calc(100vh - 110px)!important;
  overflow:auto!important;
  padding:22px 16px!important;
  color:#f8f2ec!important;
  background:linear-gradient(165deg,#171411 0%,#211b17 58%,#100e0c 100%)!important;
  border:1px solid rgba(255,101,0,.38)!important;
  box-shadow:0 24px 64px rgba(38,22,10,.22),inset 0 1px 0 rgba(255,255,255,.04)!important;
}
body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass .admin-brand h2{color:#fff!important}
body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass .admin-brand small{color:#bfb4ab!important;line-height:1.5!important}
body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass .eyebrow{color:#ff7a18!important}
body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass nav{display:grid!important;gap:5px!important;margin-top:16px!important}
body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass nav a{
  display:block!important;
  min-height:0!important;
  padding:11px 13px!important;
  border:1px solid transparent!important;
  border-radius:10px!important;
  color:#ddd4cb!important;
  background:transparent!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.25!important;
  white-space:normal!important;
  opacity:1!important;
}
body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass nav a:hover{
  color:#fff!important;background:rgba(255,101,0,.18)!important;border-color:rgba(255,126,38,.25)!important
}
body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass nav a.active,
body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass nav a.admin-perf-nav-active,
body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass nav a[aria-current="page"]{
  color:#fff!important;
  background:linear-gradient(90deg,#ff6a00,#e94b00)!important;
  border-color:#ff7a18!important;
  box-shadow:0 10px 25px rgba(255,93,0,.22)!important;
}

/* ---------- Owner admin: all editing surfaces are light and readable ---------- */
body.lobby-theme .admin-shell.admin-fast .admin-content .glass,
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-card,
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-form,
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-row,
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-note,
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-table-wrap,
body.lobby-theme .admin-shell.admin-fast .admin-content .user-admin-card,
body.lobby-theme .admin-shell.admin-fast .admin-content .pass-admin-row,
body.lobby-theme .admin-shell.admin-fast .admin-content .level-admin-details,
body.lobby-theme .admin-shell.admin-fast .admin-content .notification-template{
  color:#211c18!important;
  background:linear-gradient(155deg,#fff 0%,#fff9f3 100%)!important;
  border-color:rgba(55,38,25,.12)!important;
  box-shadow:0 12px 34px rgba(72,41,18,.07)!important;
}
body.lobby-theme .admin-shell.admin-fast .admin-content h1,
body.lobby-theme .admin-shell.admin-fast .admin-content h2,
body.lobby-theme .admin-shell.admin-fast .admin-content h3,
body.lobby-theme .admin-shell.admin-fast .admin-content h4,
body.lobby-theme .admin-shell.admin-fast .admin-content b,
body.lobby-theme .admin-shell.admin-fast .admin-content strong,
body.lobby-theme .admin-shell.admin-fast .admin-content summary{color:#211c18!important}
body.lobby-theme .admin-shell.admin-fast .admin-content p,
body.lobby-theme .admin-shell.admin-fast .admin-content small,
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-help,
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-row summary span,
body.lobby-theme .admin-shell.admin-fast .admin-content .user-admin-head span{color:#786f67!important}
body.lobby-theme .admin-shell.admin-fast .admin-content label{color:#5f574f!important}
body.lobby-theme .admin-shell.admin-fast .admin-content input,
body.lobby-theme .admin-shell.admin-fast .admin-content textarea,
body.lobby-theme .admin-shell.admin-fast .admin-content select{
  color:#211c18!important;background:#fff!important;border-color:rgba(56,39,27,.16)!important
}
body.lobby-theme .admin-shell.admin-fast .admin-content input::placeholder,
body.lobby-theme .admin-shell.admin-fast .admin-content textarea::placeholder{color:#aaa198!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-stat span{color:#766d65!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-stat strong,
body.lobby-theme .admin-shell.admin-fast .admin-content .user-admin-metrics strong{color:#e95400!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .user-admin-metrics span{color:#746b63!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .user-admin-card details,
body.lobby-theme .admin-shell.admin-fast .admin-content .user-admin-card summary{color:#2b2520!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-table,
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-table td{color:#2a2521!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .admin-table th{color:#9a410e!important;background:#fff2e6!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .btn.primary{color:#fff!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .btn.ghost{color:#2b2621!important;background:#fff!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .btn.danger{color:#fff!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .check{color:#5f574f!important}
body.lobby-theme .admin-shell.admin-fast .admin-content .empty-state{color:#81776f!important;background:#fffaf6!important}

/* Keep intentionally dark image/preview zones readable. */
body.lobby-theme .admin-shell.admin-fast .lobby-banner-editor__preview,
body.lobby-theme .admin-shell.admin-fast .case-style-preview,
body.lobby-theme .admin-shell.admin-fast .media-file{color:#fff!important}
body.lobby-theme .admin-shell.admin-fast .lobby-banner-editor__preview b,
body.lobby-theme .admin-shell.admin-fast .lobby-banner-editor__preview small{color:#fff!important}

/* ---------- Growth / user statistics / progress ---------- */
body.lobby-theme .growth-page .glass,
body.lobby-theme .growth-page .growth-hero,
body.lobby-theme .growth-page .growth-panel,
body.lobby-theme .growth-page .growth-metric,
body.lobby-theme .growth-page .analytic-card,
body.lobby-theme .growth-page .offer-card,
body.lobby-theme .growth-page .achievement-card,
body.lobby-theme .growth-page .event-card,
body.lobby-theme .growth-page .leaderboard,
body.lobby-theme .growth-page .leader-filter-shell,
body.lobby-theme .growth-page .level-progress,
body.lobby-theme .growth-page .operations-summary,
body.lobby-theme .growth-page .growth-admin-nav,
body.lobby-theme .growth-page .growth-admin-form,
body.lobby-theme .growth-page .compact-editor,
body.lobby-theme .growth-page .offer-admin-card,
body.lobby-theme .growth-page .event-admin-card,
body.lobby-theme .growth-page .notification-template{
  color:#211c18!important;
  background:linear-gradient(155deg,#fff,#fff8f1)!important;
  border-color:rgba(255,101,0,.16)!important;
  box-shadow:0 14px 40px rgba(72,41,18,.07)!important;
}
body.lobby-theme .growth-page h1,
body.lobby-theme .growth-page h2,
body.lobby-theme .growth-page h3,
body.lobby-theme .growth-page b,
body.lobby-theme .growth-page strong{color:#201b17!important}
body.lobby-theme .growth-page p,
body.lobby-theme .growth-page small,
body.lobby-theme .growth-page .leader-filter-label,
body.lobby-theme .growth-page .leaderboard-note{color:#786f67!important}
body.lobby-theme .growth-page label{color:#5f574f!important}
body.lobby-theme .growth-page input,
body.lobby-theme .growth-page textarea,
body.lobby-theme .growth-page select{color:#211c18!important;background:#fff!important;border-color:rgba(55,38,25,.16)!important}
body.lobby-theme .growth-page .growth-metric strong,
body.lobby-theme .growth-page .analytic-card strong{color:#e95400!important}
body.lobby-theme .growth-page .level-orb{
  color:#fff!important;background:radial-gradient(circle at 32% 28%,#ff9b56,#ff6a00 58%,#d94900)!important;border-color:rgba(255,101,0,.28)!important;box-shadow:0 16px 38px rgba(255,101,0,.22)!important
}
body.lobby-theme .growth-page .level-orb span,
body.lobby-theme .growth-page .level-orb strong,
body.lobby-theme .growth-page .level-orb small{color:#fff!important}
body.lobby-theme .growth-page .level-track,
body.lobby-theme .growth-page .event-quest-progress,
body.lobby-theme .growth-page .quest-v2-progress{background:#eee6df!important}
body.lobby-theme .growth-page .level-track span,
body.lobby-theme .growth-page .event-quest-progress span,
body.lobby-theme .growth-page .quest-v2-progress i,
body.lobby-theme .growth-page .activity-day i{background:linear-gradient(90deg,#ff5a00,#ff9a52)!important;box-shadow:none!important}
body.lobby-theme .growth-page .leader-tabs a{color:#665e57!important;background:#fff!important;border-color:rgba(55,38,25,.13)!important}
body.lobby-theme .growth-page .leader-tabs a:hover{color:#d94e00!important;border-color:rgba(255,101,0,.3)!important;background:#fff6ed!important}
body.lobby-theme .growth-page .leader-tabs a.active{
  color:#fff!important;background:linear-gradient(135deg,#ff7414,#e94b00)!important;border-color:#ff6500!important;box-shadow:0 8px 22px rgba(255,101,0,.18)!important
}
body.lobby-theme .growth-page .leader-row{color:#2b2520!important;border-color:#eee3da!important}
body.lobby-theme .growth-page .leader-row span,
body.lobby-theme .growth-page .leader-row small{color:#766d65!important}
body.lobby-theme .growth-page .leader-row.self{color:#211c18!important;background:#fff0e3!important;border-color:rgba(255,101,0,.24)!important}
body.lobby-theme .growth-page .rank-avatar{color:#fff!important;background:linear-gradient(135deg,#ff7a18,#df4d00)!important}
body.lobby-theme .growth-page .streak-milestone-list>div{background:#fff!important;border-color:#eee2d8!important}
body.lobby-theme .growth-page .streak-milestone-list b{color:#211c18!important}
body.lobby-theme .growth-page .streak-milestone-list span,
body.lobby-theme .growth-page .streak-milestone-list small{color:#756c64!important}
body.lobby-theme .growth-page .streak-milestone-list>div.reached{background:#fff0e5!important;border-color:rgba(255,101,0,.25)!important}
body.lobby-theme .growth-page .operations-summary>div{background:#fff!important;border-color:#eee2d8!important}
body.lobby-theme .growth-page .operations-summary span{color:#766d65!important}
body.lobby-theme .growth-page .operations-summary b{color:#e95400!important}
body.lobby-theme .growth-page .growth-admin-nav a{color:#5d554e!important}
body.lobby-theme .growth-page .growth-admin-nav a:hover,
body.lobby-theme .growth-page .growth-admin-nav a.active{color:#fff!important;background:#ff6500!important}
body.lobby-theme .growth-page .channel-status b.ready{color:#16865b!important}
body.lobby-theme .growth-page .channel-status b.off{color:#b44b3d!important}
body.lobby-theme .growth-page .btn.primary{color:#fff!important}
body.lobby-theme .growth-page .btn.ghost{color:#2b2621!important;background:#fff!important}
body.lobby-theme .growth-page .btn.danger{color:#fff!important}

/* ---------- Separate Tasks page ---------- */
body.lobby-theme .tasks-page{padding-bottom:58px}
body.lobby-theme .tasks-page .tasks-hero{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:end;padding:34px;border-radius:25px;
  color:#211c18!important;background:linear-gradient(135deg,#fff 0 72%,#fff0e4 72% 100%)!important;border-color:rgba(255,101,0,.2)!important
}
body.lobby-theme .tasks-page .tasks-hero h1{margin:7px 0 10px;color:#171512!important;font-size:clamp(48px,6vw,82px);line-height:.92;letter-spacing:-.055em}
body.lobby-theme .tasks-page .tasks-hero p{max-width:760px;margin:0;color:#756c64!important;line-height:1.6}
body.lobby-theme .tasks-page .tasks-hero-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
body.lobby-theme .tasks-page .tasks-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}
body.lobby-theme .tasks-page .tasks-summary-card{padding:18px;border-radius:16px;color:#211c18!important;background:#fff!important;border-color:rgba(55,38,25,.1)!important}
body.lobby-theme .tasks-page .tasks-summary-card span,
body.lobby-theme .tasks-page .tasks-summary-card small{display:block;color:#7a7068!important}
body.lobby-theme .tasks-page .tasks-summary-card span{font-size:10px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
body.lobby-theme .tasks-page .tasks-summary-card strong{display:block;margin:8px 0 4px;color:#e95400!important;font-size:27px}
body.lobby-theme .tasks-page .tasks-info{display:grid;grid-template-columns:minmax(240px,.8fr) 1.4fr;gap:22px;align-items:center;padding:18px 20px;border-radius:16px;color:#211c18!important;background:#fff7ef!important;border-color:rgba(255,101,0,.16)!important}
body.lobby-theme .tasks-page .tasks-info b{display:block;margin-top:4px;color:#211c18!important}
body.lobby-theme .tasks-page .tasks-info p{margin:0;color:#756c64!important;line-height:1.55}
body.lobby-theme .tasks-page .tasks-group{margin-top:34px;scroll-margin-top:105px}
body.lobby-theme .tasks-page .tasks-group-head{align-items:end}
body.lobby-theme .tasks-page .tasks-group-head small{color:#8a7f76!important}
body.lobby-theme .tasks-page .tasks-quest-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.lobby-theme .tasks-page .task-card{
  min-height:260px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:22px;border-radius:18px;
  color:#211c18!important;background:linear-gradient(155deg,#fff,#fff9f4)!important;border-color:rgba(55,38,25,.11)!important;box-shadow:0 13px 34px rgba(72,41,18,.07)!important
}
body.lobby-theme .tasks-page .task-card.done{border-color:rgba(28,151,102,.28)!important;background:linear-gradient(155deg,#fff,#f2fff8)!important}
body.lobby-theme .tasks-page .task-card h3{margin:16px 0 8px;color:#211c18!important;font-size:20px}
body.lobby-theme .tasks-page .task-card p{margin:0 0 12px;color:#756c64!important;line-height:1.5}
body.lobby-theme .tasks-page .quest-condition,
body.lobby-theme .tasks-page .quest-progress-text{display:block;margin-top:6px;color:#81776e!important}
body.lobby-theme .tasks-page .quest-auto-badge{color:#d84f00!important;background:#fff0e4!important;border-color:rgba(255,101,0,.2)!important}
body.lobby-theme .tasks-page .quest-v2-progress{height:8px;margin-top:14px;background:#eee5dd!important;border-radius:999px;overflow:hidden}
body.lobby-theme .tasks-page .quest-v2-progress i{display:block;height:100%;background:linear-gradient(90deg,#ff5a00,#ff9b54)!important;box-shadow:none!important}
body.lobby-theme .tasks-page .task-card-reward{min-width:112px;align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;text-align:right}
body.lobby-theme .tasks-page .task-card-reward>span{color:#8c8178!important;font-size:9px;font-weight:900;letter-spacing:.14em}
body.lobby-theme .tasks-page .task-card-reward>b{margin:5px 0 10px;color:#e95400!important;font-size:20px}
body.lobby-theme .tasks-page .task-state{font-style:normal;color:#7c726a!important;font-size:11px;font-weight:800}
body.lobby-theme .tasks-page .task-state--done{color:#16865b!important}
body.lobby-theme .tasks-page .btn.primary{color:#fff!important}
body.lobby-theme .tasks-page .btn.ghost{color:#2b2621!important;background:#fff!important}

/* PASS no longer owns the task list. */
body.lobby-theme .pass-tasks-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:26px;padding:20px 22px;border-radius:17px;background:#fff5eb!important;border:1px solid rgba(255,101,0,.18)!important;color:#211c18!important}
body.lobby-theme .pass-tasks-cta h3{margin:4px 0;color:#211c18!important}
body.lobby-theme .pass-tasks-cta p{margin:0;color:#786e65!important}
body.lobby-theme .pass-tasks-cta .btn{flex:0 0 auto;color:#fff!important}

@media(max-width:1150px){
  body.lobby-theme .admin-shell.admin-fast{grid-template-columns:250px minmax(0,1fr)!important}
  body.lobby-theme .tasks-page .tasks-quest-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:860px){
  body.lobby-theme .admin-shell.admin-fast{grid-template-columns:1fr!important}
  body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass{position:static!important;max-height:none!important}
  body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass nav{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  body.lobby-theme .tasks-page .tasks-hero{grid-template-columns:1fr;align-items:start}
  body.lobby-theme .tasks-page .tasks-hero-actions{justify-content:flex-start}
  body.lobby-theme .tasks-page .tasks-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  body.lobby-theme .tasks-page .tasks-info{grid-template-columns:1fr}
}
@media(max-width:620px){
  body.lobby-theme .admin-shell.admin-fast .admin-sidebar.glass nav{grid-template-columns:1fr!important}
  body.lobby-theme .tasks-page .tasks-summary,
  body.lobby-theme .tasks-page .tasks-quest-grid{grid-template-columns:1fr}
  body.lobby-theme .tasks-page .task-card{grid-template-columns:1fr;min-height:0}
  body.lobby-theme .tasks-page .task-card-reward{align-items:flex-start;text-align:left}
  body.lobby-theme .pass-tasks-cta{align-items:flex-start;flex-direction:column}
}
/* LOBBY_TASKS_ADMIN_CONTRAST_V6_END */
