﻿/* в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ
   design-system.css  вЂ”  v2  (clean, no !important)
   Override layer. Loads AFTER styles.css.
   в•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђв•ђ */

/* в”Ђв”Ђ Smooth everything! в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html {
  scroll-behavior: smooth;
}

body {
  background: #eef2f7;
  transition: background 0.3s, color 0.3s;
}

/* в”Ђв”Ђ Subtle background animation в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse at 15% 0%,   rgba(16,185,129,0.055) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(59,130,246,0.04)  0%, transparent 55%);
  animation: bgShift 30s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0%   { background-position: 0% 0%, 100% 100%; }
  50%  { background-position: 30% 10%, 70% 90%; }
  100% { background-position: 10% 30%, 90% 70%; }
}

/* в”Ђв”Ђ Page transitions в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
#app > * {
  animation: fadeIn 0.25s ease-out both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* в”Ђв”Ђ Better focus ring (accessibility) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
:focus-visible {
  outline: 2px solid var(--c-primary, #10b981);
  outline-offset: 2px;
  border-radius: 4px;
}

/* в”Ђв”Ђ Theme toggle button в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.theme-toggle {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #dde6f0;
  width: 34px;
  height: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s, transform 0.2s;
}

.theme-toggle:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
  transform: rotate(15deg);
}

/* в”Ђв”Ђ 1. APP SHELL в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
body {
  padding: 0;
}

html body .map-obj-header,
html body .map-filter-bar,
html body .object-map,
html body .map-footer,
html body .add-point-map,
html body .add-point-map-controls,
html body .view-pane--gallery {
  margin-left: 0;
  margin-right: 0;
}

/* в”Ђв”Ђ 2. TOP BAR вЂ” dark premium SaaS header в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .top-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 1.5rem;
  background: linear-gradient(135deg, #0c1929 0%, #0f2342 60%, #122d4a 100%);
  border-bottom: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 1px 0 rgba(16, 185, 129, 0.15), 0 4px 28px rgba(0, 0, 0, 0.32);
}

/* Emerald accent stripe */
html body .top-bar::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, #10b981 18%, #34d399 50%, #10b981 82%, transparent 100%);
  opacity: 0.55;
  pointer-events: none;
}

/* в”Ђв”Ђ 3. BRAND в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .app-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f1f5f9;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

html body .app-title::before {
  content: '';
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5), 0 0 0 2px rgba(16, 185, 129, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

html body .app-title:hover {
  opacity: 0.82;
}

/* в”Ђв”Ђ 4. TOP-BAR ACTIONS в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .top-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

html body .top-bar-pill-btn {
  min-height: 34px;
  padding: 0.28rem 0.82rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.09);
  color: #dde6f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

html body .top-bar-pill-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  text-decoration: none;
}

/* в”Ђв”Ђ 5. PAGE в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .page {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* в”Ђв”Ђ 6. PAGE HEADER в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #dde3ed;
}

html body .page-header h2 {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #0d1a2e;
  line-height: 1.1;
}

/* в”Ђв”Ђ 7. OBJECT CARDS в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .object-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f2;
  padding: 1.3rem 1.5rem 1.3rem 1.85rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 18px rgba(15, 23, 42, 0.055);
  transition: border-color 0.2s, box-shadow 0.22s, transform 0.2s;
}

html body .object-card-link:hover .object-card {
  border-color: #adb8ca;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.13), 0 1px 4px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}

html body .object-card-link:active .object-card {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html body .object-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0d1a2e;
  letter-spacing: -0.02em;
}

/* в”Ђв”Ђ 8. ADD-OBJECT BUTTON в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .add-object-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  min-height: 50px;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3), 0 6px 20px rgba(5, 150, 105, 0.18);
  margin-bottom: 1.25rem;
  transition: transform 0.15s, box-shadow 0.15s;
}

html body .add-object-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.38), 0 12px 28px rgba(5, 150, 105, 0.2);
}

html body .add-object-btn:active {
  transform: translateY(0);
}

/* в”Ђв”Ђ 9. GENERAL BUTTONS в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .btn {
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.22), 0 3px 10px rgba(5, 150, 105, 0.14);
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}

html body .btn:hover:not(:disabled):not([disabled]) {
  opacity: 0.93;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.3), 0 6px 18px rgba(5, 150, 105, 0.18);
}

/* в”Ђв”Ђ 10. SEARCH INPUT в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .search-input {
  background: #ffffff;
  border: 1.5px solid #dde3ed;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

html body .search-input:focus {
  background: #fff;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12), 0 1px 3px rgba(15, 23, 42, 0.04);
}

/* в”Ђв”Ђ 11. FORMS в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .form-section {
  background: #ffffff;
  border: 1px solid #e2e8f2;
  border-radius: 14px;
  padding: 1.5rem 1.5rem 0.5rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.04);
  margin-bottom: 1.25rem;
}

html body .form-group input,
html body .form-group select,
html body .form-group textarea {
  background: #f8fafb;
  border: 1.5px solid #dde3ed;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

html body .form-group input:focus,
html body .form-group select:focus,
html body .form-group textarea:focus {
  background: #ffffff;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  outline: none;
}

/* в”Ђв”Ђ 11b. LOGIN SCREEN вЂ” modern card в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 0;
}

html body .screen-brand {
  text-align: center;
  margin-bottom: 0;
  padding: 2rem 2rem 0.5rem;
  max-width: 420px;
  width: 100%;
}

html body .screen-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 0.75rem;
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #059669;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: transform 0.2s;
}

html body .screen-logo:hover {
  transform: scale(1.05);
}

html body .screen-logo svg {
  width: 32px;
  height: 32px;
}

html body .screen-brand h1 {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #0f172a;
}

html body .screen-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin-top: 0.2rem;
}

html body #login-form {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
}

html body #login-form .form-group {
  margin-bottom: 1.25rem;
}

html body #login-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.35rem;
}

html body #login-form input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 0.92rem;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

html body #login-form input:focus {
  background: #fff;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
  outline: none;
}

html body #login-form .btn {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.8rem;
  font-size: 0.95rem;
}

html body .screen-links {
  text-align: center;
  margin-top: 1.25rem;
  max-width: 420px;
  width: 100%;
  font-size: 0.85rem;
}

html body .screen-links a {
  color: #059669;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}

html body .screen-links a:hover {
  color: #047857;
  text-decoration: underline;
}

html body .screen-links-sep {
  color: #cbd5e1;
  margin: 0 0.5rem;
}

/* в”Ђв”Ђ 12. TEAM MEMBER CARDS в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .team-member-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f2;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.04);
  margin-bottom: 0.75rem;
  transition: border-color 0.18s, box-shadow 0.2s, transform 0.18s;
}

html body .team-member-card:hover {
  border-color: #adb8ca;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

html body .team-member-card--inactive {
  background: #f7f9fb;
  opacity: 0.72;
}

html body .team-member-card--pending {
  border-left: 3px solid #f59e0b;
  background: #fffdf4;
}

/* в”Ђв”Ђ 13. ADMIN CARDS в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .admin-baul-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid #e2e8f2;
  padding: 1.1rem 1.4rem 1.1rem 1.6rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.04);
  margin-bottom: 0.8rem;
  transition: border-color 0.18s, box-shadow 0.2s, transform 0.18s;
}

html body .admin-baul-card:hover {
  border-color: #adb8ca;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

/* в”Ђв”Ђ 14. BACK LINK в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .back-link {
  background: #ffffff;
  border: 1px solid #e2e8f2;
  border-radius: 8px;
  color: #475569;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: background 0.15s, box-shadow 0.15s, color 0.15s;
}

html body .back-link:hover {
  background: #f8fafc;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  color: #0f172a;
  text-decoration: none;
}

/* в”Ђв”Ђ 15. PHOTO PICKER в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .photo-preview-area {
  background: linear-gradient(135deg, #f4f7fa 0%, #edf1f6 100%);
  border: 2px dashed #c5d0df;
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s;
}

html body .photo-preview-area:hover {
  border-color: #10b981;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

html body .photo-pick-btn-large {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 4px rgba(5, 150, 105, 0.3), 0 6px 18px rgba(5, 150, 105, 0.16);
}

/* в”Ђв”Ђ 15b. PHOTO GRID в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

html body .photo-thumb {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
}

html body .photo-thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* в”Ђв”Ђ 15c. LOADING SKELETON в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

html body .skeleton-card {
  height: 120px;
  margin-bottom: 0.75rem;
}

html body .skeleton-text {
  height: 14px;
  width: 60%;
  margin-bottom: 0.5rem;
}

html body .skeleton-text--short {
  width: 40%;
}

html body .skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* в”Ђв”Ђ 15d. TOAST / NOTIFICATION в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  z-index: 9999;
  animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 2.5s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes toastOut {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

/* в”Ђв”Ђ 16. CREDENTIALS PANEL в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .credentials-panel {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf8 100%);
  border: 1px solid #a7f3d0;
  border-left: 4px solid #10b981;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}

/* в”Ђв”Ђ 17. EMPTY STATE в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .empty-state {
  background: #ffffff;
  border: 2px dashed #d5dce8;
  border-radius: 16px;
}

/* в”Ђв”Ђ 18. MAP HEADER в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .map-obj-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f2;
}

/* в”Ђв”Ђ 19. MAP CONTROLS в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
html body .add-point-map-controls {
  background: #ffffff;
  border-top: 1px solid #e2e8f2;
  border-bottom: 1px solid #e2e8f2;
}

/* в”Ђв”Ђ 20. MICRO-ANIMATIONS (life!) в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */

/* Card entry animation */
.object-card-link {
  animation: cardIn 0.35s ease-out both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Slow pulse on the logo icon */
html body .app-title::before {
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 2px 8px rgba(16,185,129,0.5), 0 0 0 2px rgba(16,185,129,0.18); }
  50%      { box-shadow: 0 2px 12px rgba(16,185,129,0.65), 0 0 0 3px rgba(16,185,129,0.15); }
}

/* в”Ђв”Ђ 21. MOBILE в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
@media (max-width: 640px) {
  html body .top-bar {
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: calc(0.6rem + env(safe-area-inset-top, 0));
    padding-bottom: 0.5rem;
    min-height: 52px;
  }

  html body .page {
    padding: 1.25rem 1rem 3rem;
  }
}

/* в”Ђв”Ђ 22. MARKER PREVIEW в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.marker-preview-wrapper,
.marker-preview-wrapper .leaflet-div-icon,
.marker-preview-wrapper > div {
  background: none;
  border: none;
}

.marker-preview {
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.marker-preview:hover {
  transform: scale(1.15);
  z-index: 1000;
}

/* Floating lock button for object map */
/* NOTE: the button IS the Leaflet control element (Leaflet adds the
   'leaflet-control' class to it), so the selector must be
   '.leaflet-control.map-lock-btn' (no space) to match. */
.leaflet-control.map-lock-btn {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  /* Comfortable touch target */
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  line-height: 1;
  margin: 10px 10px 0 0;
  transition: background 0.15s;
}

.leaflet-control.map-lock-btn:hover {
  background: #f0f0f0;
}

/* Lock state: white = locked, green = unlocked (clear visual state) */
.leaflet-control.map-lock-btn--locked {
  background: #fff;
  border-color: #ccc;
}
.leaflet-control.map-lock-btn--unlocked {
  background: #d1fae5;
  border-color: #2a6b2a;
}
.leaflet-control.map-lock-btn--unlocked:hover {
  background: #bbf7d0;
}

/* в”Ђв”Ђ 23. DESKTOP в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
@media (min-width: 860px) {
  html body .top-bar {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  html body .page {
    padding: 2.25rem 2rem 4.5rem;
  }
}

/* в”Ђв”Ђ 23b. MOBILE COLLAPSIBLE FILTER BAR в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
.filter-bar-toggle {
  display: none;
}

@media (max-width: 640px) {
  .filter-bar-toggle {
    display: block;
    width: 100%;
    padding: 0.4rem 0.5rem;
    background: var(--c-surface, #fff);
    border: none;
    border-bottom: 1px solid var(--c-border, #e5e7eb);
    text-align: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--c-text-secondary, #6b7280);
  }

  .filter-bar-content--collapsed {
    display: none;
  }
}

/* в”Ђв”Ђ 24. DARK MODE в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */
@media (prefers-color-scheme: dark) {
  :root {
    --c-bg:            #0f1419;
    --c-surface:       #151c25;
    --c-surface-alt:   #1b2430;
    --c-surface-2:     #0f1419;
    --c-text:          #f1f5f9;
    --c-text-secondary: #e2e8f0;
    --c-text-muted:    #a7b4c3;
    --c-border:        #2a3542;
    --c-border-strong: #3a4755;
    --c-border-focus:  #34d399;
    --c-primary:       #34d399;
    --c-primary-dark:  #22c55e;
    --c-primary-deeper: #16a34a;
    --c-primary-light: rgba(52,211,153,0.15);
    --c-primary-soft:  rgba(52,211,153,0.08);
    --c-primary-ring:  #6ee7b7;
    --c-accent:        #34d399;
    --c-accent-soft:   rgba(52, 211, 153, 0.12);
    --c-danger:        #f87171;
    --c-danger-bg:     rgba(248,113,113,0.1);
    --c-danger-border: rgba(248,113,113,0.3);
    --c-warning:       #fbbf24;
    --c-warning-bg:    rgba(251,191,36,0.1);
    --c-success:       #34d399;

    /* Stage colors adjusted for dark */
    --c-before-bg:    rgba(59,130,246,0.15);
    --c-before-text:  #93c5fd;
    --c-during-bg:    rgba(249,115,22,0.15);
    --c-during-text:  #fb923c;
    --c-after-bg:     rgba(16,185,129,0.15);
    --c-after-text:  #34d399;

    /* Status colors adjusted for dark */
    --c-active-bg:    rgba(52,211,153,0.18);
    --c-active-text:   #34d399;
    --c-paused-bg:    rgba(251,191,36,0.18);
    --c-paused-text:   #fbbf24;
    --c-completed-bg: rgba(96,165,250,0.18);
    --c-completed-text: #60a5fa;
  }

  body {
    background: var(--c-bg);
    color: var(--c-text);
  }

  body::before {
    background:
      radial-gradient(ellipse at 15% 0%,   rgba(52,211,153,0.06) 0%, transparent 55%),
      radial-gradient(ellipse at 85% 100%, rgba(59,130,246,0.04)  0%, transparent 55%);
  }

  .top-bar,
  .object-card,
  .admin-baul-card,
  .page,
  .map-obj-header,
  .map-filter-bar,
  .form-group input,
  .form-group select,
  .form-group textarea,
  .filter-search-input,
  .filter-date-input,
  .filter-sort-select {
    background: var(--c-surface);
    color: var(--c-text);
  }

  .object-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  }

  .status-badge.status-active {
    background: rgba(52,211,153,0.18);
    color: #34d399;
  }
  .status-badge.status-paused {
    background: rgba(251,191,36,0.18);
    color: #fbbf24;
  }
  .status-badge.status-completed {
    background: rgba(96,165,250,0.18);
    color: #60a5fa;
  }

  html body .form-group input,
  html body .form-group select,
  html body .form-group textarea {
    background: var(--c-surface-alt);
    color: var(--c-text);
    border-color: var(--c-border-strong);
  }

  html body .form-group input:hover,
  html body .form-group select:hover,
  html body .form-group textarea:hover { border-color: #4a5a6a; }
  html body .form-group input:focus,
  html body .form-group select:focus,
  html body .form-group textarea:focus {
    background: var(--c-surface-alt);
    color: var(--c-text);
    border-color: var(--c-border-focus);
    box-shadow: 0 0 0 3px rgba(52,211,153,0.25);
  }

  .form-group input::placeholder,
  .form-group textarea::placeholder { color: #6b7c8a; opacity: 1; font-weight: 400; }

  input, select, textarea {
    background-color: var(--c-surface-alt);
    color: var(--c-text);
    border-color: var(--c-border-strong);
  }

  input::placeholder, textarea::placeholder {
    color: #6b7c8a;
  }

  /* Floating lock button вЂ” much better visibility */
  .leaflet-control.map-lock-btn {
    background: var(--c-surface-alt);
    color: var(--c-text);
    border-color: var(--c-border-strong);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }
  .leaflet-control.map-lock-btn:hover {
    background: var(--c-surface-2);
  }
  .leaflet-control.map-lock-btn--locked {
    background: var(--c-surface-alt);
    border-color: var(--c-border-strong);
  }
  .leaflet-control.map-lock-btn--unlocked {
    background: #064e3b;
    border-color: #34d399;
  }
  .leaflet-control.map-lock-btn--unlocked:hover {
    background: #065f46;
  }

  .leaflet-popup-content-wrapper {
    background: var(--c-surface);
    color: var(--c-text);
  }

  .leaflet-popup-tip {
    background: var(--c-surface);
  }

  .pwa-banner {
    background: var(--c-surface);
    color: var(--c-text);
  }

  /* в”Ђв”Ђ Additional dark mode component styles в”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђв”Ђ */

  .screen {
    background: var(--c-surface);
    border-color: var(--c-border);
  }

  .screen-brand {
    background: linear-gradient(160deg, rgba(52,211,153,0.08) 0%, var(--c-surface) 60%, var(--c-bg) 100%);
    border-bottom-color: rgba(52,211,153,0.15);
  }

  .screen-logo {
    background: linear-gradient(135deg, rgba(52,211,153,0.15) 0%, rgba(52,211,153,0.08) 100%);
    border-color: rgba(52,211,153,0.25);
    color: #34d399;
    box-shadow: 0 4px 12px rgba(52,211,153,0.15);
  }

  .screen h1, .screen h2, .screen-heading,
  .screen-brand h1 {
    color: var(--c-text);
  }

  .screen-subtitle, .screen-form-title, .screen-desc {
    color: var(--c-text-secondary);
  }

  .screen-links a { color: #34d399; }

  #login-form {
    background: var(--c-surface);
    border-color: var(--c-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15), 0 8px 32px rgba(0,0,0,0.25);
  }

  #login-form label {
    color: var(--c-text-secondary);
  }

  html body #login-form input,
  html body #register-form input {
    background: var(--c-surface-alt);
    border-color: var(--c-border-strong);
    color: var(--c-text);
  }

  html body #login-form input:focus,
  html body #register-form input:focus {
    background: var(--c-surface-alt);
    border-color: var(--c-border-focus);
    color: var(--c-text);
    box-shadow: 0 0 0 3px rgba(52,211,153,0.18);
  }

  .form-section {
    background: var(--c-surface);
    border-color: var(--c-border);
  }

  .form-section-label {
    color: var(--c-text-muted);
  }

  .empty-state-msg { color: var(--c-text-secondary); }
  .page-header h2 { color: var(--c-text); }
  .object-name { color: var(--c-text); }
  .object-name { color: var(--c-text) !important; }
  .object-card-body p:first-child { color: var(--c-text); }
  .object-card-body p { color: var(--c-text-secondary); font-weight: 500; }
  .shared-badge { background: rgba(59,130,246,0.2); color: #93c5fd; }
  .filter-bar-toggle { background: var(--c-surface); border-color: var(--c-border); color: var(--c-text-secondary); }
  .filter-bar-toggle:hover { border-color: var(--c-border-focus); color: var(--c-text); }
  .map-filter-bar { background: var(--c-surface); border-bottom: 1px solid var(--c-border); }
  .member-row { background: var(--c-surface); border-color: var(--c-border); }
  .member-name { color: var(--c-text); }
  .checkbox-label input[type="checkbox"] { accent-color: #34d399; }
  .lang-menu {
    background: var(--c-surface);
    border-color: var(--c-border);
  }
  .lang-menu-item { color: var(--c-text); }
  .lang-menu-item:hover { background: var(--c-surface-alt); }
  .lang-menu-item--active { color: #34d399; background: rgba(52,211,153,0.15); }
}
.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 10px;
  border: 1px solid var(--c-border, #e5e7eb);
  border-radius: 8px;
  background: var(--c-surface, #fff);
}

.member-name {
  font-size: 0.9em;
  color: var(--c-text, #111);
}

.member-remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1em;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.member-remove-btn:hover {
  background: rgba(239, 68, 68, 0.12);
}

/* Dark mode: password-toggle */
@media (prefers-color-scheme: dark) {
  .password-toggle {
    color: #94a3b8;
  }
  .password-toggle:hover {
    color: #f1f5f9;
  }
  .password-toggle::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  }
  .password-toggle.show::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19m-6.72-1.07a3 3 0 1 1-4.24-4.24'/%3E%3Cline x1='1' y1='1' x2='23' y2='23'/%3E%3C/svg%3E");
  }
  .password-wrap .form-group input,
  .password-wrap .form-group textarea {
    padding-right: 3rem;
  }
}
