:root {
  --bg: #f4f6f2;
  --surface: #fff;
  --surface-2: #f8faf6;
  --line: #dfe6dc;
  --text: #18231c;
  --muted: #66756b;
  --brand: #198754;
  --brand-2: #0f6b45;
  --sidebar: #122018
}

[v-cloak] {
  display: none !important
}

* {
  letter-spacing: 0
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif
}

.text-muted {
  color: var(--muted) !important
}

.full-loader {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: linear-gradient(135deg, #eef5ec, #f8faf6)
}

.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(24, 35, 28, .09)
}

.logo-circle,
.brand-mark {
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center
}

.logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  margin: auto
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  margin: 0 auto 22px
}

.form-control,
.form-select,
.input-group-text {
  border-color: #d7e1d7;
  border-radius: 8px
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .13)
}

.btn {
  border-radius: 8px
}

.btn-success {
  background: var(--brand);
  border-color: var(--brand);
  font-weight: 700
}

.btn-success:hover {
  background: var(--brand-2);
  border-color: var(--brand-2)
}

.btn-outline-secondary {
  border-color: #cfd9cf;
  color: #34453a;
  background: #fff
}

.btn-outline-secondary:hover {
  background: #eef5ec;
  color: #1d2c23;
  border-color: #b9c9bb
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr)
}

.app-sidebar {
  background: var(--sidebar);
  padding: 22px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 6px
}

.menu-group {
  color: #7f9387;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 800;
  padding: 14px 12px 4px
}

.app-sidebar button {
  border: 0;
  background: transparent;
  color: #b7c8bd;
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  font-weight: 650
}

.app-sidebar button:hover,
.app-sidebar button.active {
  background: #20362a;
  color: #fff
}

.app-main {
  min-width: 0
}

.app-topbar {
  height: 68px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px)
}

.app-content {
  padding: 26px;
  max-width: 1440px;
  margin: 0 auto
}

.bottom-nav {
  display: none
}

.dashboard-hero {
  background: linear-gradient(135deg, #164b32, #198754);
  color: #fff;
  border-radius: 12px;
  padding: 34px;
  min-height: 260px;
  display: flex;
  align-items: end;
  box-shadow: 0 20px 45px rgba(25, 135, 84, .18)
}

.dashboard-hero h1 {
  max-width: 720px;
  font-size: 42px;
  line-height: 1.05;
  margin: 8px 0 12px
}

.dashboard-hero p {
  max-width: 650px;
  color: #e8f5ed
}

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 800;
  color: #d7f7e5
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px
}

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px
}

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

.metric strong {
  font-size: 32px
}

.page-head {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px
}

.page-head h1 {
  font-size: 28px;
  margin: 0
}

.page-head p {
  margin: 4px 0 0;
  color: var(--muted)
}

.filters {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 160px auto;
  gap: 8px;
  min-width: 520px
}

.filters--simple {
  grid-template-columns: minmax(230px, 1fr) auto auto
}

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

.route-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 18px 18px;
  box-shadow: 0 8px 24px rgba(24, 35, 28, .05);
  overflow: hidden
}

.route-card h3 {
  font-size: 19px;
  margin: 8px 0
}

.route-card__map {
  height: 136px;
  margin: 0 -18px 14px;
  background: #dfe9df center/cover no-repeat
}

.route-card__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.route-card__meta span {
  font-size: 12px;
  background: #eef5ec;
  color: #24543a;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px
}

.panel h1,
.panel h2 {
  font-size: 22px;
  margin-bottom: 14px
}

.two-col {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(0, 1.15fr);
  gap: 18px
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 0
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px
}

.detail-side {
  position: sticky;
  top: 88px;
  align-self: start
}

.route-map {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 10px;
  display: block;
  background: #e8eee7
}

.chat-box {
  height: 320px;
  overflow: auto;
  background: #f7faf6;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px
}

.chat-msg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px
}

.route-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start
}

.builder-main,
.builder-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(24, 35, 28, .06)
}

.builder-main {
  position: sticky;
  top: 88px;
  overflow: hidden
}

.builder-map {
  height: calc(100vh - 156px);
  min-height: 540px
}

.builder-side {
  padding: 22px
}

.builder-side h1 {
  font-size: 25px;
  margin-bottom: 18px
}

.builder-mapbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 500;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 30px rgba(24, 35, 28, .12)
}

.planner-hint {
  background: #f7faf6;
  border: 1px dashed #c8d6c7;
  border-radius: 8px;
  color: var(--muted);
  padding: 12px
}

.route-points {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden
}

.route-point-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-top: 1px solid var(--line)
}

.route-point-row:first-child {
  border-top: 0
}

.marker-remove {
  border: 0;
  border-radius: 6px;
  background: #dc3545;
  color: #fff;
  padding: 6px 10px
}

.modal-shell {
  position: fixed;
  inset: 0;
  background: rgba(16, 28, 20, .38);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px
}

.modal-card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(24, 35, 28, .24)
}

.avatar {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  overflow: hidden
}

.avatar-lg {
  width: 74px;
  height: 74px
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.drop-zone {
  display: block;
  border: 1px dashed #b9cabb;
  border-radius: 10px;
  background: #f7faf6;
  padding: 15px;
  text-align: center;
  color: var(--muted);
  cursor: pointer
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(340px, .9fr) minmax(0, 1.1fr);
  gap: 18px
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden
}

.profile-cover {
  height: 160px;
  background: linear-gradient(135deg, #1b6c48, #d8ebe0)
}

.profile-head {
  display: flex;
  gap: 16px;
  align-items: end;
  padding: 0 20px 18px;
  margin-top: -40px
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border: 4px solid #fff;
  border-radius: 18px
}

.profile-head h1 {
  font-size: 28px;
  margin: 0
}

.profile-body {
  padding: 0 20px 20px
}

.suggest-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff
}

.suggest-row {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 11px 12px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px
}

.suggest-row:first-child {
  border-top: 0
}

.suggest-row:hover {
  background: #f6faf6
}

.suggest-row span {
  color: var(--muted);
  font-size: 13px
}

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

.community-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  box-shadow: 0 8px 24px rgba(24, 35, 28, .05)
}

.community-card h3 {
  font-size: 18px;
  margin: 0
}

.community-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0
}

.community-card small,
.community-card span {
  color: var(--muted)
}

.community-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 8px
}

.community-actions .btn {
  flex: 1
}

.empty-state {
  background: #fff;
  border: 1px dashed #cbd8ca;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  color: var(--muted)
}

.toast-wrap {
  position: fixed;
  right: 16px;
  top: 82px;
  z-index: 9999;
  max-width: 340px
}

.notification-popover {
  position: absolute;
  right: 92px;
  top: 40px;
  width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 18px 55px rgba(24, 35, 28, .18);
  z-index: 50
}

.notification-item {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fff;
  text-align: left;
  padding: 10px
}

.notification-item:first-of-type {
  border-top: 0
}

.notification-item span,
.notification-item small {
  display: block;
  color: var(--muted)
}

.notification-item.unread strong:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  margin-right: 6px
}

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

.plugin-tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #f9fbf8
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: start
}

.admin-tabs {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  position: sticky;
  top: 88px
}

.admin-tabs button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: 8px;
  padding: 11px 12px;
  font-weight: 700;
  color: var(--muted)
}

.admin-tabs button.active,
.admin-tabs button:hover {
  background: #eef5ec;
  color: var(--brand-2)
}

.admin-content {
  min-width: 0
}

@media (max-width:1100px) {

  .route-grid,
  .metrics-grid,
  .plugin-grid,
  .community-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .detail-layout,
  .route-builder,
  .two-col,
  .profile-layout,
  .admin-layout {
    grid-template-columns: 1fr
  }

  .builder-main,
  .detail-side,
  .admin-tabs {
    position: relative;
    top: 0
  }

  .builder-map {
    height: 460px
  }

  .admin-tabs {
    display: flex;
    overflow: auto
  }

  .admin-tabs button {
    white-space: nowrap
  }
}

@media (max-width:760px) {
  body {
    padding-bottom: 68px
  }

  .app-shell {
    display: block
  }

  .app-sidebar {
    display: none
  }

  .app-topbar {
    height: 60px;
    padding: 0 16px
  }

  .app-content {
    padding: 16px
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #fff;
    border-top: 1px solid var(--line);
    display: flex;
    z-index: 30
  }

  .bottom-nav button {
    flex: 1;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px
  }

  .bottom-nav button.active {
    color: var(--brand);
    font-weight: 800
  }

  .dashboard-hero {
    padding: 24px;
    min-height: 230px
  }

  .dashboard-hero h1 {
    font-size: 32px
  }

  .page-head {
    display: block
  }

  .filters {
    grid-template-columns: 1fr;
    min-width: 0;
    margin-top: 14px
  }

  .route-grid,
  .metrics-grid,
  .plugin-grid,
  .community-grid {
    grid-template-columns: 1fr
  }

  .builder-map {
    height: 380px
  }

  .profile-cover {
    height: 120px
  }

  .notification-btn {
    display: none
  }

  .notification-popover {
    right: 8px;
    top: 54px;
    width: calc(100vw - 32px)
  }
}

/* TrailMate dashboard */
body {
  background: #f8faf8;
  color: #0f1724;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif
}

.app-shell {
  grid-template-columns: 280px minmax(0, 1fr)
}

.app-sidebar {
  background: #fff;
  border-right: 1px solid #e7ece7;
  padding: 30px 24px;
  color: #0f1724
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 28px
}

.brand-logo span {
  width: 38px;
  height: 28px;
  display: block;
  background: linear-gradient(135deg, #48b56a 0 45%, transparent 45%), linear-gradient(135deg, transparent 24%, #236b3c 24% 62%, transparent 62%), linear-gradient(135deg, transparent 42%, #64c27c 42%);
  clip-path: polygon(0 100%, 28% 20%, 43% 58%, 58% 0, 100% 100%)
}

.brand-logo strong {
  font-size: 28px
}

.brand-logo strong::first-letter {
  color: #17863b
}

.app-sidebar .brand-mark {
  display: none
}

.menu-group {
  display: none
}

.app-sidebar button {
  color: #1d2939;
  background: transparent;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px
}

.app-sidebar button.active,
.app-sidebar button:hover {
  background: #eef7ed;
  color: #145c2b
}

.app-main {
  background: #fafbfa
}

.app-topbar {
  height: 92px;
  border-bottom: 0;
  background: #fafbfa;
  padding: 0 36px
}

.app-topbar strong {
  font-size: 21px
}

.app-content {
  padding: 0 36px 24px;
  max-width: 1540px
}

.bottom-nav {
  box-shadow: 0 -12px 30px rgba(15, 23, 42, .08)
}

.trail-dashboard {
  width: 100%
}

.desktop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px
}

.desktop-main {
  min-width: 0
}

.desktop-side {
  display: flex;
  flex-direction: column;
  gap: 20px
}

.mobile-home {
  display: none
}

.map-panel {
  height: 455px;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: #eaf2df;
  box-shadow: 0 18px 42px rgba(37, 52, 43, .08)
}

.map-panel::after {
  display: none
}

.dashboard-map {
  position: absolute;
  inset: 0;
  z-index: 1
}

.dashboard-map .leaflet-container,
.map-panel .leaflet-container {
  width: 100%;
  height: 100%
}

.dashboard-map .leaflet-control-zoom {
  border: 0;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12)
}

.dashboard-map .leaflet-control-zoom a {
  border: 0;
  color: #101828
}

.map-toolbar {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 999;
  width: 238px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 13px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .12)
}

.map-toolbar strong {
  font-size: 12px;
  color: #667085
}

.map-toolbar div {
  display: flex;
  justify-content: space-between;
  margin-top: 12px
}

.map-toolbar span {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center
}

.map-toolbar span:first-child {
  background: #e6f6e8;
  color: #14843b
}

.map-toolbar small {
  display: block;
  color: #b42318;
  font-weight: 700;
  margin-top: 10px
}

.map-tools {
  width: 300px
}

.map-tools label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #344054
}

.map-tools input[type=checkbox] {
  accent-color: #17863b
}

.map-search {
  display: grid !important;
  grid-template-columns: 1fr 38px;
  gap: 6px;
  margin-top: 10px
}

.map-search input {
  min-width: 0;
  border: 1px solid #d7e1d7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px
}

.map-search button {
  border: 0;
  border-radius: 8px;
  background: #17863b;
  color: #fff;
  font-weight: 900
}

.map-results {
  display: grid !important;
  gap: 4px;
  margin-top: 8px;
  max-height: 160px;
  overflow: auto
}

.map-results button {
  border: 0;
  border-radius: 7px;
  background: #f2f6f2;
  text-align: left;
  padding: 7px 8px;
  font-size: 12px;
  color: #1d2939
}

.map-toolbar--planner {
  left: 14px;
  top: 14px
}

.map-route {
  position: absolute;
  left: 168px;
  top: 212px;
  width: 560px;
  height: 130px;
  border-top: 6px solid #e92835;
  border-right: 6px solid #e92835;
  border-radius: 60% 35% 45% 20%;
  transform: rotate(-11deg);
  z-index: 2
}

.map-route::before {
  content: "";
  position: absolute;
  left: -68px;
  top: -12px;
  width: 210px;
  border-top: 6px solid #248bd6;
  transform: rotate(15deg)
}

.pin {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .18)
}

.pin::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #fff
}

.pin-a {
  left: 150px;
  top: 230px;
  background: #2e9d55
}

.pin-b {
  right: 250px;
  top: 92px;
  background: #e92835
}

.map-controls {
  position: absolute;
  right: 16px;
  top: 18px;
  z-index: 3;
  display: grid;
  gap: 10px
}

.map-controls button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
  font-weight: 800
}

.route-planner {
  position: absolute;
  z-index: 3;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, .96);
  border-radius: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .12);
  overflow: hidden
}

.route-planner div {
  padding: 18px 24px;
  border-right: 1px solid #edf0ed
}

.route-planner small {
  display: block;
  color: #8a94a3;
  font-size: 12px
}

.route-planner strong {
  font-size: 15px
}

.route-planner button {
  margin: 12px 16px;
  border: 0;
  border-radius: 10px;
  background: #19753b;
  color: #fff;
  font-weight: 800;
  padding: 15px 22px
}

.route-planner button:disabled {
  background: #9aa6a0;
  cursor: not-allowed
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 14px
}

.section-row h2,
.section-row h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 900
}

.section-row a {
  color: #0d7f35;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer
}

.featured-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px
}

.trail-card {
  border: 1px solid #e6ebe6;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
  cursor: pointer
}

.trail-card .route-card__map {
  height: 120px;
  margin: 0;
  position: relative;
  background-size: cover;
  background-position: center
}

.route-card__body {
  padding: 16px
}

.trail-card h3 {
  font-size: 18px;
  line-height: 1.15;
  margin: 0 0 12px
}

.trail-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: #445062;
  font-size: 13px
}

.route-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  color: #475467;
  font-size: 13px
}

.difficulty-pill {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  padding: 4px 9px
}

.difficulty-pill--easy {
  background: #298b49
}

.difficulty-pill--medium {
  background: #ef7d19
}

.difficulty-pill--hard {
  background: #d92d20
}

.heart-btn {
  position: absolute;
  right: 12px;
  top: 10px;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, .45);
  color: #fff;
  font-size: 20px
}

.avatar-stack i,
.side-panel i,
.mobile-icons i {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: url(https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=80&q=80) center/cover;
  border: 2px solid #fff;
  margin-right: -8px
}

.stats-panel,
.side-panel {
  background: #fff;
  border: 1px solid #e6ebe6;
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .05)
}

.stats-panel {
  padding: 18px;
  margin-top: 24px
}

.stats-panel .section-row {
  margin: 0 0 14px
}

.stats-panel button {
  border: 1px solid #e4e7ec;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid #edf0ed;
  padding-top: 16px
}

.stats-strip div {
  border-right: 1px solid #edf0ed
}

.stats-strip span,
.stats-strip small {
  display: block;
  color: #667085
}

.stats-strip strong {
  font-size: 22px
}

.stats-strip small {
  color: #14843b;
  font-weight: 700
}

.chart-line {
  height: 130px;
  margin-top: 10px;
  background: linear-gradient(180deg, rgba(31, 139, 68, .08), transparent), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='130' viewBox='0 0 900 130'%3E%3Cpath d='M0 100 C80 80 90 50 160 68 S260 78 320 50 420 36 470 70 570 52 610 66 690 12 740 36 800 8 900 44' fill='none' stroke='%232e9d55' stroke-width='3'/%3E%3Cg fill='white' stroke='%232e9d55' stroke-width='3'%3E%3Ccircle cx='0' cy='100' r='4'/%3E%3Ccircle cx='160' cy='68' r='4'/%3E%3Ccircle cx='320' cy='50' r='4'/%3E%3Ccircle cx='470' cy='70' r='4'/%3E%3Ccircle cx='610' cy='66' r='4'/%3E%3Ccircle cx='740' cy='36' r='4'/%3E%3Ccircle cx='900' cy='44' r='4'/%3E%3C/g%3E%3C/svg%3E") center/100% 100% no-repeat
}

.side-panel {
  padding: 22px
}

.side-panel h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 18px
}

.side-panel p {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid #edf0ed
}

.side-panel p:last-child {
  border-bottom: 0
}

.side-panel span {
  display: block;
  font-size: 14px
}

.side-panel small {
  display: block;
  color: #98a2b3;
  margin-top: 3px
}

.side-panel button {
  width: 100%;
  border: 1px solid #e4e7ec;
  border-radius: 9px;
  background: #fff;
  padding: 12px;
  margin-top: 12px;
  font-weight: 700
}

.events b,
.event-card b {
  width: 48px;
  height: 58px;
  border-radius: 10px;
  background: #edf8ec;
  display: grid;
  place-items: center;
  color: #101828;
  font-size: 24px
}

.events b span,
.event-card b span {
  font-size: 12px;
  color: #258043
}

.online i {
  position: relative
}

.online i::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  background: #39b66a;
  border: 2px solid #fff;
  border-radius: 50%
}

.event-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #edf0ed
}

.event-form button {
  margin: 0
}

@media (max-width:900px) {
  body {
    background: #050505;
    padding-bottom: 88px
  }

  .app-sidebar,
  .app-topbar {
    display: none
  }

  .app-shell {
    display: block;
    background: #050505
  }

  .app-content {
    padding: 14px 16px 88px;
    max-width: 430px
  }

  .desktop-grid {
    display: none
  }

  .mobile-home {
    display: block;
    background: #fff;
    min-height: calc(100vh - 28px);
    border-radius: 24px;
    padding: 20px 16px 86px;
    overflow: hidden
  }

  .brand-logo {
    margin: 0;
    font-size: 24px
  }

  .brand-logo strong {
    font-size: 24px
  }

  .mobile-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px
  }

  .mobile-icons {
    display: flex;
    gap: 14px;
    align-items: center
  }

  .mobile-icons span {
    position: relative;
    font-size: 25px
  }

  .mobile-icons b {
    position: absolute;
    right: -7px;
    top: -7px;
    background: #ff4050;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center
  }

  .mobile-icons i {
    width: 38px;
    height: 38px;
    margin: 0
  }

  .mobile-home h1 {
    font-size: 30px;
    line-height: 1;
    margin: 0 0 6px
  }

  .mobile-home p {
    color: #667085;
    margin-bottom: 22px
  }

  .mobile-hero {
    height: 266px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(0, 0, 0, .18)), url(https://images.unsplash.com/photo-1501555088652-021faa106b9b?auto=format&fit=crop&w=900&q=80) center/cover;
    position: relative;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start
  }

  .weather-chip {
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 12px
  }

  .weather-chip strong,
  .weather-chip small {
    display: block
  }

  .weather-chip small {
    color: #667085
  }

  .mobile-hero button {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border: 0;
    border-radius: 10px;
    background: #18923e;
    color: #fff;
    font-size: 19px;
    font-weight: 900;
    padding: 17px
  }

  .quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 18px 0 28px
  }

  .quick-grid button {
    height: 78px;
    border: 0;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .09);
    font-size: 26px
  }

  .quick-grid span {
    display: block;
    font-size: 13px;
    color: #101828;
    margin-top: 7px
  }

  .mobile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
  }

  .mobile-stats div {
    border-radius: 14px;
    padding: 18px 14px;
    min-height: 100px
  }

  .mobile-stats div:nth-child(1) {
    background: #e9f8ec;
    color: #16863a
  }

  .mobile-stats div:nth-child(2) {
    background: #eaf2ff;
    color: #2c62d6
  }

  .mobile-stats div:nth-child(3) {
    background: #f4eafe;
    color: #7543d8
  }

  .mobile-stats div:nth-child(4) {
    background: #fff3dc;
    color: #f59a00
  }

  .mobile-stats strong {
    display: block;
    font-size: 22px
  }

  .mobile-stats span {
    display: block;
    color: #475467;
    margin-top: 8px
  }

  .mobile-list article {
    display: grid;
    grid-template-columns: 102px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf0ed
  }

  .mobile-list article>div {
    height: 76px;
    border-radius: 12px;
    background-size: cover;
    background-position: center
  }

  .mobile-list strong,
  .mobile-list span,
  .mobile-list small {
    display: block
  }

  .mobile-list span {
    color: #475467;
    font-size: 13px
  }

  .mobile-list small {
    color: #14843b;
    margin-top: 6px
  }

  .mobile-list em {
    font-style: normal;
    font-size: 26px;
    color: #344054
  }

  .event-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .07);
    padding: 14px
  }

  .event-card section strong,
  .event-card section span,
  .event-card section small {
    display: block
  }

  .event-card section span,
  .event-card section small {
    color: #667085
  }

  .bottom-nav {
    height: 76px;
    left: 16px;
    right: 16px;
    bottom: 14px;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .2)
  }

  .bottom-nav button {
    font-size: 12px
  }

  .bottom-nav button.active {
    color: #14843b
  }

  .section-row h2 {
    font-size: 21px
  }

  .section-row {
    margin-top: 28px
  }
}