:root {
  --navy:          #0F3B56;
  --navy-light:    #1a5272;
  --green:         #53C22B;
  --green-dark:    #3A9A1E;
  --lime:          #E6F482;

  --bg:            #F9FBF0;
  --card:          #ffffff;
  --text:          #0F3B56;
  --muted:         #5a7a8a;
  --primary:       #53C22B;
  --primary-strong:#3A9A1E;
  --secondary:     #0F3B56;
  --accent:        #ECD768;
  --border:        #DDE8DC;
  --shadow:        0 2px 12px rgba(15, 59, 86, 0.08);

  --topbar-bg:     #0F3B56;
  --topbar-text:   #ffffff;
  --topbar-border: #53C22B;

  --sidebar-w:     220px;
}

body.dark {
  --bg:            #071E2E;
  --card:          #0F3B56;
  --text:          #E8F4EE;
  --muted:         #7AAAB8;
  --primary:       #6CD944;
  --primary-strong:#8AE862;
  --secondary:     #E6F482;
  --accent:        #ECD768;
  --border:        #1a5272;
  --shadow:        0 4px 14px rgba(0, 0, 0, 0.35);

  --topbar-bg:     #071E2E;
  --topbar-text:   #ffffff;
  --topbar-border: #53C22B;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0.3px;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

/* ── Sidebar ─────────────────────────────────────────── */
.topbar {
  position: fixed;
  left: 0; top: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--topbar-bg);
  border-right: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
}

.brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 20px 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-right: 0;
}

.brand img {
  background: #ffffff;
  border-radius: 8px;
  padding: 4px 8px;
  display: block;
  height: 38px;
}

nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 12px 10px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.875em;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.18s ease;
}

nav a::before {
  content: '';
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.72;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Nav icons keyed by href */
nav a[href="/"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5' fill='white'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5' fill='white'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5' fill='white'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5' fill='white'/%3E%3C/svg%3E");
}
nav a[href="/entry"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
}
nav a[href="/entries"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='9' y1='6' x2='20' y2='6'/%3E%3Cline x1='9' y1='12' x2='20' y2='12'/%3E%3Cline x1='9' y1='18' x2='20' y2='18'/%3E%3Ccircle cx='4' cy='6' r='1.5' fill='white'/%3E%3Ccircle cx='4' cy='12' r='1.5' fill='white'/%3E%3Ccircle cx='4' cy='18' r='1.5' fill='white'/%3E%3C/svg%3E");
}
nav a[href="/analytics"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='12' width='4' height='9' rx='1' fill='white'/%3E%3Crect x='10' y='7' width='4' height='14' rx='1' fill='white'/%3E%3Crect x='17' y='3' width='4' height='18' rx='1' fill='white'/%3E%3C/svg%3E");
}
nav a[href="/report"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
}
nav a[href="/layout"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cline x1='3' y1='9' x2='21' y2='9'/%3E%3Cline x1='3' y1='15' x2='21' y2='15'/%3E%3Cline x1='9' y1='9' x2='9' y2='21'/%3E%3C/svg%3E");
}
nav a[href="/import"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
}
nav a[href="/config"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2v3M12 19v3M4.22 4.22l2.12 2.12M17.66 17.66l2.12 2.12M2 12h3M19 12h3M4.22 19.78l2.12-2.12M17.66 6.34l2.12-2.12'/%3E%3C/svg%3E");
}
nav a[href^="/admin"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

nav a.active {
  background: #53C22B;
  color: #ffffff;
}

nav a:hover:not(.active) {
  background: rgba(83, 194, 43, 0.18);
  color: #ffffff;
}

nav a.active::before,
nav a:hover::before {
  opacity: 1;
}

.topbar-right {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

/* User profile block */
.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ECD768;
  color: #0F3B56;
  font-weight: 800;
  font-size: 1.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-profile-info {
  min-width: 0;
}

.sidebar-display-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.88em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-role-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.76em;
  margin-top: 1px;
}

/* My Profile / Sign Out links */
.sidebar-user-nav {
  display: flex;
  flex-direction: column;
  padding: 2px 10px 6px;
  gap: 1px;
}

.sidebar-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.875em;
  font-weight: 500;
  transition: all 0.18s ease;
}

.sidebar-user-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.75;
}

.sidebar-user-link:hover {
  background: rgba(83, 194, 43, 0.15);
  color: #ffffff;
}

.sidebar-user-link:hover svg {
  opacity: 1;
}

.theme-toggle {
  margin: 4px 16px 10px;
  width: calc(100% - 32px);
  background: rgba(236, 215, 104, 0.15);
  color: #ECD768;
  border: 1px solid rgba(236, 215, 104, 0.45);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.85em;
  font-weight: 600;
  transition: all 0.2s;
}

.theme-toggle:hover {
  background: #ECD768;
  color: var(--navy);
}

/* Push page content right of sidebar */
body.app-body {
  padding-left: var(--sidebar-w);
  min-height: 100vh;
}

/* Backdrop for mobile sidebar */
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99;
}
.sidebar-backdrop.visible { display: block; }

/* ── Buttons ─────────────────────────────────────────── */
.button {
  border: none;
  background: var(--navy);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.92em;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.button:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.button.logout {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 14px;
  font-size: 0.85em;
}

.button.logout:hover {
  background: #c0392b;
  color: #fff;
  border-color: #c0392b;
  transform: none;
}

button.primary {
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

button.primary:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
}

button.secondary {
  background: #e5e7eb;
  color: var(--navy);
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
}


/* ── Layout ──────────────────────────────────────────── */
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
}

/* ── Cards ───────────────────────────────────────────── */
.hero-card,
.form-card,
.plant-card,
.report-card,
.filter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}

.hero-card {
  border-top: 4px solid var(--primary);
}

/* ── Stats ───────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stat-card {
  padding: 18px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
}

.stat-card.clickable {
  cursor: pointer;
  transition: all 0.25s ease;
}

.stat-card.clickable:hover {
  background: var(--card);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(83, 194, 43, 0.15);
}

.stat-value {
  margin-top: 10px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-strong);
}

body.dark .stat-value {
  color: var(--primary);
}

/* ── Modal ───────────────────────────────────────────── */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 30, 53, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--card);
  border-radius: 14px;
  padding: 28px;
  max-width: 900px;
  width: 92%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(13, 30, 53, 0.3);
  border-top: 4px solid var(--primary);
}

/* ── Plant Cards ─────────────────────────────────────── */
.cards-row {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.plant-card {
  min-height: 240px;
  border-left: 4px solid var(--primary);
}

.plant-card h2 {
  margin-top: 0;
  color: var(--navy);
  font-size: 1.1em;
}

body.dark .plant-card h2 {
  color: var(--primary);
}

.plant-stats,
.plant-summary,
.live-panel {
  display: grid;
  gap: 10px;
}

.plant-summary div,
.live-panel div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.plant-summary div {
  color: var(--muted);
  font-size: 0.94em;
}

.live-panel div {
  color: var(--text);
  font-weight: 500;
}

.live-panel div span {
  font-weight: 700;
  color: var(--primary);
}

/* ── Entries side-by-side row ────────────────────────── */
.entries-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.entries-panel {
  margin-bottom: 0 !important;
}

/* ── Recent Entries ──────────────────────────────────── */
.recent-section .recent-item,
.entry-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-top: 12px;
  background: var(--bg);
  transition: border-color 0.2s;
}

.recent-section .recent-item:hover,
.entry-item:hover {
  border-color: var(--primary);
}

.recent-item div,
.entry-item div {
  margin: 4px 0;
}

/* ── Forms ───────────────────────────────────────────── */
.filter-form,
.config-form,
.import-form,
.inline-form {
  display: grid;
  gap: 16px;
}

.filter-form label,
.config-form label,
.import-form label,
.form-grid label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--primary-strong);
  font-size: 0.95em;
}

body.dark .filter-form label,
body.dark .config-form label,
body.dark .import-form label,
body.dark .form-grid label {
  color: var(--primary);
}

.form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.form-grid label:nth-child(3) {
  grid-column: 1 / -1;
}

.form-grid p {
  grid-column: 1 / -1;
  margin: -8px 0 0 0;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="month"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s;
  box-sizing: border-box;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(83, 194, 43, 0.18);
}

textarea {
  resize: vertical;
}

/* ── Login ───────────────────────────────────────────── */
.login-body {
  background: var(--navy);
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.login-card {
  width: min(420px, calc(100% - 32px));
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-top: 4px solid var(--primary);
}

.login-card h1 {
  margin-top: 0;
  color: var(--navy);
  text-align: center;
}

.login-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 600;
  color: var(--primary-strong);
}

.error-message,
.message {
  margin-top: 18px;
  color: #c0392b;
  font-weight: 500;
}

/* ── Section headers ─────────────────────────────────── */
.section-header,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

/* ── Report ──────────────────────────────────────────── */
.report-body {
  background: var(--bg);
}

.report-output pre {
  white-space: pre-wrap;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0;
  font-size: 0.93em;
  line-height: 1.7;
}

/* ── Admin / Table ───────────────────────────────────── */
.validate-result {
  margin-top: 16px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.95em;
}

.data-table thead tr {
  background: var(--navy);
  color: #ffffff;
}

.data-table th {
  padding: 12px 18px;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.data-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table tbody tr:hover {
  background: rgba(83, 194, 43, 0.07);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ── Mobile top bar (hidden on desktop) ─────────────────── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--topbar-bg);
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  z-index: 202;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-brand img {
  width: 36px;
  height: 36px;
  background: #53C22B;
  border-radius: 8px;
  padding: 5px;
  object-fit: contain;
  display: block;
}

.mobile-brand span {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1em;
  letter-spacing: 0.3px;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}

.nav-toggle:hover {
  background: rgba(83, 194, 43, 0.22);
  border-color: var(--green);
}

/* ── Mobile breakpoint ──────────────────────────────────── */
@media (max-width: 768px) {
  body.app-body {
    padding-left: 0;
    padding-top: 56px;
  }

  /* Show mobile header */
  .mobile-header {
    display: flex;
  }

  /* Hamburger sits inside mobile-header — no longer floating */
  .nav-toggle {
    display: flex;
    position: static;
    background: transparent;
    border: none;
    font-size: 24px;
    width: 40px;
    height: 40px;
  }

  /* Hide duplicate brand logo inside sidebar on mobile */
  .topbar .brand {
    display: none;
  }

  /* Sidebar slides in below mobile header */
  .topbar {
    top: 56px;
    height: calc(100vh - 56px);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 200;
    border-right: 2px solid rgba(0, 0, 0, 0.18);
  }

  .topbar.sidebar-open {
    transform: translateX(0);
  }

  .topbar-right {
    padding-bottom: 12px;
  }

  /* Container */
  .container {
    width: calc(100% - 20px);
    margin: 12px auto;
  }

  /* Cards */
  .hero-card,
  .form-card,
  .plant-card,
  .report-card,
  .filter-card {
    padding: 18px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
  }

  /* Plant cards: single column */
  .cards-row {
    grid-template-columns: 1fr;
  }

  /* Stats: 2 columns on mobile */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-value {
    font-size: 1.35rem;
  }

  /* Entries: stack vertically */
  .entries-row {
    grid-template-columns: 1fr;
  }

  /* Form grids: single column */
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-grid label:nth-child(3),
  .form-grid p {
    grid-column: 1;
  }

  /* Tables: horizontal scroll */
  .data-table,
  .report-card table,
  .form-card table,
  .hero-card table,
  .modal-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Modal */
  .modal-content {
    padding: 18px 14px;
    width: 96%;
    max-height: 88vh;
  }

  /* Section headers */
  .section-header,
  .report-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Report filter: stack labels */
  #reportForm > div:first-child {
    flex-direction: column;
    align-items: stretch !important;
  }

  /* Report action buttons: full width on mobile */
  .report-actions button,
  .report-actions a.button {
    flex: 1 1 100%;
    text-align: center;
    box-sizing: border-box;
  }

  /* Capacity summary grid in entry form */
  #entryForm > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr 1fr !important;
  }

  h1 { font-size: 1.5em; }
  h2 { font-size: 1.2em; }
}

/* Very small screens */
@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .brand img {
    height: 34px;
  }
}

/* ── Print ───────────────────────────────────────────── */
@media print {
  .topbar, .button, .theme-toggle, .delete-form { display: none !important; }
  body { background: white; color: black; }
  .container { margin: 0; width: auto; }
  .report-card { border: none; box-shadow: none; }
}

/* ── Shared loader animation classes (used by low-network overlay) ── */
.ls-ring {
  position: absolute; top: 50%; left: 50%;
  width: 110px; height: 110px; border-radius: 50%;
  border: 2px solid #53C22B;
  transform: translate(-50%,-50%) scale(0); opacity: 0;
  animation: ls-ring 2s ease-out infinite;
}
.ls-ring:nth-child(2) { animation-delay: .6s; }
.ls-ring:nth-child(3) { animation-delay: 1.2s; }
@keyframes ls-ring {
  0%   { transform: translate(-50%,-50%) scale(0.5); opacity: 0.7; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}
@keyframes ls-pulse {
  0%,100% { transform: scale(1);    filter: drop-shadow(0 0 0px #53C22B); }
  50%      { transform: scale(1.08); filter: drop-shadow(0 0 14px #53C22B); }
}
@keyframes ls-bolt { 0%,100%{opacity:1} 40%{opacity:0.15} 60%{opacity:1} }
.ls-bar-fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #3A9A1E, #53C22B, #C8DC37);
  animation: ls-charge 2s ease-in-out infinite;
}
@keyframes ls-charge { 0%{width:0%} 60%{width:100%} 80%{width:100%} 100%{width:0%} }
.ls-dots { display: flex; gap: 7px; }
.ls-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #53C22B; opacity: .3;
  animation: ls-dot 1.4s ease-in-out infinite;
}
.ls-dot:nth-child(1){animation-delay:0s}
.ls-dot:nth-child(2){animation-delay:.2s}
.ls-dot:nth-child(3){animation-delay:.4s}
@keyframes ls-dot { 0%,100%{opacity:.3;transform:scale(1)} 50%{opacity:1;transform:scale(1.5)} }
