/* LibQuest v31 — brighter, modern brand palette */
:root{
  --brand-lime:#72c936;
  --brand-lime-hover:#63b82c;
  --brand-ink:#153c2e;
  --ink:#17211c;
  --muted:#66716b;
  --green:var(--brand-lime);
  --green-dark:var(--brand-ink);
  --green-soft:#edf8e7;
  --cream:#f6f8f7;
  --paper:#fff;
  --line:#e0e6e2;
  --peach:#f3f6f4;
  --app-green:var(--brand-lime);
  --app-green-dark:var(--brand-ink);
  --app-ink:var(--ink);
  --app-muted:var(--muted);
  --app-canvas:#f6f8f7;
  --app-line:var(--line);
}

html,body,.app-main,.app-view{background:#f6f8f7!important}
.auth-screen:not([hidden]){background:#f3f6f4ed!important}
.desktop-sidebar,.mobile-topbar,.mobile-tabbar,.explore-panel{background:#fff!important}
.library-detail-pane{background:#f8faf9!important}
.profile-card,.settings-card,.social-profile-card,.leaderboard-card,.visits-section,.level-card,.quest-card,.passport-section,.guest-passport,.event-dialog,.attendance-dialog-card,.admin-card,.visit-form{background:#fff!important;border-color:var(--line)!important}
.event-filter-shell{background:#f6f8f7ed!important}
.event-view-tabs,.leaderboard-tabs{background:#edf1ee!important;border-color:var(--line)!important}
.event-view-tabs button.is-active,.leaderboard-tabs button.is-active{background:#fff!important;color:var(--brand-ink)!important}
.event-library-chips button,.event-filters input,.event-filters select,input,select,textarea{background:#fff!important;border-color:#d8e0db!important}

.primary-action,.save-button,.review-form>button,.profile-auth-button,.social-form-actions button[type=submit],.current-event-card button,.auth-form button,.import-events-button,.guest-gate button,.near-events-controls button.is-active,.event-card-actions .event-save,.library-directions{
  border-color:var(--brand-lime)!important;
  background:var(--brand-lime)!important;
  color:var(--brand-ink)!important;
}
.primary-action:hover,.save-button:hover,.review-form>button:hover,.event-card-actions .event-save:hover,.library-directions:hover{background:var(--brand-lime-hover)!important}
.event-card-actions .event-save[aria-pressed="true"]{border-color:#b9dda4!important;background:#edf8e7!important;color:var(--brand-ink)!important}
.secondary-action,.nearby-button,.toggle-event-filters,.load-more-events,.library-events-more{border-color:#cfdad3!important;background:#fff!important;color:var(--brand-ink)!important}

.side-nav button.is-active,.mobile-tabbar button.is-active{background:#e7f5df!important;color:var(--brand-ink)!important}
.side-nav button:hover,.settings-link:hover,.settings-link:focus-visible{background:#f0f7ec!important;color:var(--brand-ink)!important}
.account-dot,.ticker-pulse{background:var(--brand-lime)!important}
.xp-track{background:#e5ebe7!important}.xp-track div{background:linear-gradient(90deg,var(--brand-lime),#92dc55)!important}
.event-date-tile,.event-distance,.attended-event-mark,.attendance-celebration,.leader-avatar{background:#edf8e7!important;color:var(--brand-ink)!important}
.event-date-tabs button.is-active,.event-library-chips button.is-active{border-color:var(--brand-lime)!important;background:#edf8e7!important;color:var(--brand-ink)!important}
.community-ticker{border-color:#d8e5dc!important;background:#f4faf1!important;color:var(--brand-ink)!important}
.guest-gate{border-color:#dbe5de!important;background:#f3f8f4!important}
.map-placeholder{background:radial-gradient(circle at 70% 20%,#f7fbf5 0,transparent 38%),linear-gradient(145deg,#e9f1ec,#f4f7f5)!important}
.map-placeholder .placeholder-mark{background:var(--brand-lime)!important;color:var(--brand-ink)!important}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:var(--brand-lime)!important}
.quest-actions{display:grid;grid-template-columns:1fr;gap:8px}.quest-actions button{margin:0!important}.quest-see-map{border:1px solid #cfdad3!important;background:#fff!important;color:var(--brand-ink)!important}.quest-see-map:hover{background:#f0f7ec!important}

@media(max-width:760px){.mobile-topbar,.mobile-tabbar{background:#fffffff2!important}.library-detail-pane{background:#f8faf9!important}}
