/* Safe Home Agency-ს ბრენდის ფერები (ლოგოდან): ღრმა ნავი + ოქრო.
   შეგნებულად არ ვეყრდნობით tg-theme-*-ს — რომ Mini App ყოველთვის
   კომპანიის ბრენდში გამოიყურებოდეს, მომხმარებლის ტელეგრამის თემისგან
   დამოუკიდებლად.

   ეს ვერსია ვიზუალურად უფრო "პრემიუმ" შეგრძნებას სძენს იმავე კომპონენტებს:
   ღრმა გრადიენტული ფონი, ნაზი ჩრდილები/ღუმფები (glow), აქცენტური
   ტიპოგრაფია (Cormorant Garamond ბრენდისთვის + Manrope ინტერფეისისთვის),
   რბილი გამოჩენის ანიმაციები და გაწონასწორებული კომპონენტების დეტალები.
   არცერთი id/class, რომელსაც app.js ეყრდნობა, არ შეცვლილა. */

:root {
  --navy: #0a1420;
  --navy-2: #10263c;
  --navy-3: #17324c;
  --navy-4: #0e1e30;
  --gold: #c9a227;
  --gold-light: #e9c46a;
  --gold-soft: #f2d78b;

  --bg: var(--navy);
  --secondary-bg: var(--navy-2);
  --text: #f3efe4;
  --hint: #93a6bc;
  --link: var(--gold-light);
  --btn: var(--gold);
  --btn-text: #16202c;

  --accent: var(--gold);
  --accent-2: var(--gold-light);
  --green: #34d399;
  --amber: #f5b942;
  --red: #f26d6d;
  --radius: 20px;
  --radius-sm: 13px;
  --border: rgba(201, 162, 39, .16);
  --hairline: rgba(147, 166, 188, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .22), 0 10px 28px rgba(0, 0, 0, .32);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, .22);
  --glow-gold: 0 6px 20px rgba(201, 162, 39, .28);

  --font-ui: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --font-brand: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  padding-bottom: 92px;
  min-height: 100vh;
  position: relative;
  /* ღრმა, ფენოვანი ფონი: ცენტრში ნაზი ოქროსფერი ნათება + ვერტიკალური
     გრადიენტი სიღრმისთვის. ფონი ფიქსირდება, რომ სქროლისას "სუნთქავდეს". */
  background:
    radial-gradient(900px 480px at 18% -8%, rgba(201, 162, 39, .10), transparent 60%),
    radial-gradient(700px 420px at 100% 10%, rgba(233, 196, 106, .06), transparent 55%),
    linear-gradient(180deg, var(--navy) 0%, #0b1a29 45%, var(--navy) 100%);
  background-attachment: fixed, fixed, fixed;
}

.container { padding: 12px 14px 4px; max-width: 560px; margin: 0 auto; }

/* ---------- App bar ---------- */
.appbar {
  padding: 20px 16px 14px;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.appbar::after {
  /* ნაზი ოქროსფერი ხაზი appbar-ის ქვემოთ, თემისთვის ცხადი ვიზუალური
     "სასაზღვრო" ხაზი — ცვლის ადრინდელ ვიზუალურ ცარიელობას. */
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.appbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand-mark {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .5px;
  color: var(--navy);
  background: linear-gradient(150deg, var(--gold-soft), var(--gold) 60%, #a9821c);
  box-shadow: var(--glow-gold);
  margin-right: 2px;
}
.appbar .titlewrap { min-width: 0; flex: 1; display: flex; align-items: center; gap: 10px; }
.appbar .titletext { min-width: 0; }
.appbar h1 {
  font-family: var(--font-brand);
  font-size: 22px; margin: 0; font-weight: 700; letter-spacing: .3px;
  color: var(--gold-light);
  line-height: 1.15;
}
.appbar .sub { color: var(--hint); font-size: 12.5px; margin-top: 2px; }
.appbar .sitelink {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  padding: 8px 12px;
  border-radius: 999px;
  border: none;
  white-space: nowrap;
  box-shadow: var(--glow-gold);
  transition: transform .12s ease, opacity .15s ease;
}
.appbar .sitelink:active { transform: scale(.95); opacity: .9; }

/* ---------- Role switch ---------- */
.roleswitch {
  display: none;
  background: var(--secondary-bg);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 4px;
  margin: 12px 0 2px;
  box-shadow: var(--shadow-soft);
}
.roleswitch:not([hidden]) { display: flex; }
.roleswitch button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--hint);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 0;
  border-radius: 999px;
  transition: all .18s ease;
}
.roleswitch button.active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--btn-text);
  box-shadow: var(--glow-gold);
}

/* ---------- Cards ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.card {
  background: linear-gradient(180deg, var(--navy-3) 0%, var(--secondary-bg) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 17px 16px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  animation: fadeInUp .32s cubic-bezier(.2, .7, .3, 1) both;
}
.card::before {
  /* ზედა თხელი ოქროსფერი აქცენტ-ხაზი — ბარათებს "დიზაინერულ" შეხებას
     სძენს ერთგვაროვნების დარღვევის გარეშე. */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold-light) 50%, var(--gold) 70%, transparent);
  opacity: .55;
}
.card h2 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  letter-spacing: .1px;
}
.card h2 .cnt {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-light);
  background: rgba(201, 162, 39, .14);
  border: 1px solid var(--border);
  padding: 2px 9px;
  border-radius: 999px;
}

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.stat {
  background: rgba(10, 20, 32, .55);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 13px 10px;
  text-align: center;
  transition: border-color .15s ease;
}
.stat .num {
  font-size: 23px; font-weight: 800; letter-spacing: -.5px;
  background: linear-gradient(135deg, var(--text), var(--gold-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .lbl { font-size: 11px; color: var(--hint); margin-top: 3px; font-weight: 500; }

/* ---------- Today card ---------- */
.today-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ring {
  position: relative;
  width: 74px;
  height: 74px;
  flex: none;
  filter: drop-shadow(0 3px 10px rgba(201, 162, 39, .25));
}
.ring svg { transform: rotate(-90deg); }
.ring circle { transition: stroke-dashoffset .7s cubic-bezier(.2, .7, .3, 1); }
.ring .pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}
.today-info { flex: 1; min-width: 0; }
.today-info .mode {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text);
}
.today-info .meta { font-size: 12.5px; color: var(--hint); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: .1px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.green { background: rgba(52, 211, 153, .14); color: var(--green); }
.badge.amber { background: rgba(245, 185, 66, .15); color: var(--amber); }
.badge.red { background: rgba(242, 109, 109, .14); color: var(--red); }
.badge.gray { background: rgba(147, 166, 188, .14); color: var(--hint); }

.actions { display: flex; gap: 10px; margin-top: 16px; }
.btn {
  flex: 1;
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 65%, #b8901f);
  color: var(--btn-text);
  box-shadow: var(--glow-gold);
  transition: transform .12s ease, opacity .15s ease, box-shadow .15s ease;
  letter-spacing: .1px;
}
.btn:active { transform: scale(.97); box-shadow: 0 3px 10px rgba(201, 162, 39, .25); }
.btn.secondary {
  background: rgba(147, 166, 188, .1);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--hairline);
}
.btn.danger { background: rgba(239, 68, 68, .13); color: var(--red); box-shadow: none; border: 1px solid rgba(242, 109, 109, .22); }
.btn[disabled] { opacity: .4; box-shadow: none; }

/* ---------- Lists ---------- */
.list-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--hairline);
  border-radius: 10px;
  transition: background .15s ease;
}
.list-row:last-child { border-bottom: none; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #16202c; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex: none;
  box-shadow: 0 3px 8px rgba(201, 162, 39, .3);
  border: 2px solid rgba(255, 255, 255, .06);
}
.list-row .main { flex: 1; min-width: 0; }
.list-row .title { font-size: 14px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .sub { font-size: 12px; color: var(--hint); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .side { text-align: right; flex: none; }

/* ---------- დაკლიკებადი სტრიქონები (მეტი დეტალისთვის) ---------- */
.list-row.clickable { cursor: pointer; }
.list-row.clickable:active { background: rgba(201, 162, 39, .07); opacity: .85; }

.week-strip { display: flex; gap: 6px; margin-top: 6px; }
.week-strip .day {
  flex: 1;
  text-align: center;
  padding: 9px 2px;
  border-radius: 12px;
  background: rgba(10, 20, 32, .5);
  border: 1px solid var(--hairline);
  transition: transform .15s ease;
}
.week-strip .day .d { font-size: 10px; color: var(--hint); font-weight: 700; letter-spacing: .3px; }
.week-strip .day .m { font-size: 14px; margin-top: 4px; white-space: nowrap; }
.week-strip .day .msub { font-size: 8px; color: var(--hint); margin-top: 2px; letter-spacing: .2px; }
.week-strip .day.today {
  background: rgba(201, 162, 39, .12);
  border: 1px solid var(--gold);
  box-shadow: var(--glow-gold);
  transform: translateY(-2px);
}

.bar-row { margin-bottom: 12px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 6px; font-weight: 600; }
.bar-row .track { height: 9px; border-radius: 99px; background: rgba(10, 20, 32, .55); overflow: hidden; border: 1px solid var(--hairline); }
.bar-row .fill {
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 8px rgba(201, 162, 39, .45);
  transition: width .7s cubic-bezier(.2, .7, .3, 1);
}

.empty {
  color: var(--hint);
  font-size: 13.5px;
  text-align: center;
  padding: 22px 10px;
  line-height: 1.5;
}

/* ---------- Bottom tabs ---------- */
.tabbar {
  position: fixed;
  left: 10px; right: 10px; bottom: 10px;
  background: rgba(16, 38, 60, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  display: none;
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  max-width: 560px;
  margin: 0 auto;
  /* მთავარი ფიქსი ვიწრო ეკრანებზე (ტელეფონი "პორტრეტში"): თაბები აღარ
     იჭიმებიან/იჭრებიან, არამედ ჰორიზონტალურად სქროლავს — ყველა ტაბი
     ხელმისაწვდომია გვერდის მობრუნების გარეშეც. */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tabbar:not([hidden]) { display: flex; }
.tabbar button {
  flex: 0 0 auto;
  min-width: 62px;
  scroll-snap-align: start;
  border: none;
  background: transparent;
  color: var(--hint);
  font-size: 10.5px;
  font-weight: 650;
  padding: 7px 8px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border-radius: 13px;
  white-space: nowrap;
  transition: color .15s ease, background .15s ease;
}
.tabbar button .ic { font-size: 19px; line-height: 1; transition: transform .15s ease; }
.tabbar button.active {
  color: var(--gold-light);
  background: rgba(201, 162, 39, .12);
}
.tabbar button.active .ic { transform: translateY(-1px) scale(1.08); }

.section { display: none; }
.section.active { display: block; }

.toast {
  position: fixed;
  left: 50%; bottom: 104px;
  transform: translateX(-50%) translateY(6px);
  background: rgba(243, 239, 228, .97);
  color: var(--navy);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 90;            /* მოდალზე (50) და ქვედა პანელზე (60) მაღლა — ადრე შეტყობინება მოდალის უკან იმალებოდა */
  max-width: 90%;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.skeleton {
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(147,166,188,.08) 25%, rgba(201,162,39,.16) 37%, rgba(147,166,188,.08) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.loading-wrap { padding: 48px 0; text-align: center; color: var(--hint); font-size: 13px; }

/* ---------- დეტალის მოდალი ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 14, .6);
  backdrop-filter: blur(2px);
  display: none;
  align-items: flex-end;
  z-index: 50;
}
/* მნიშვნელოვანი: `[hidden]`-ის ნაგულისხმევ დამალვას თანაბარი
   სპეციფიკურობის კლასის წესი გადააწერდა („author > user-agent"
   კასკადის წესით) — ამიტომ `display` აქ საერთოდ არ ეხება
   `[hidden]`-ს, არამედ ცალკე ირთვება ამ კლასით, როცა `hidden`
   მოხსნილია. */
.modal-backdrop:not([hidden]) {
  display: flex;
}
.modal {
  background: linear-gradient(180deg, var(--navy-3), var(--secondary-bg));
  width: 100%;
  max-height: 84vh;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  border-top: 1px solid var(--border);
  padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 34px rgba(0, 0, 0, .4);
  position: relative;
  animation: slideUp .28s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal::before {
  content: "";
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 38px; height: 4px;
  border-radius: 99px;
  background: var(--hairline);
}
.modal h3 {
  margin: 6px 0 14px;
  font-family: var(--font-brand);
  font-size: 19px;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.modal .close {
  border: none;
  background: rgba(10, 20, 32, .6);
  color: var(--hint);
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 14px;
  flex: none;
  font-family: var(--font-ui);
}
.modal .field { padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.modal .field:last-child { border-bottom: none; }
.modal .field .k { color: var(--hint); font-size: 11.5px; margin-bottom: 3px; font-weight: 600; letter-spacing: .1px; }
.modal .field .v { word-break: break-word; }

/* ---------- კითხვა მენეჯერს ---------- */
.qa-compose { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.qa-compose textarea {
  resize: vertical;
  min-height: 68px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-3);
  background: rgba(10, 20, 32, .5);
  color: var(--text);
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
}
.qa-compose textarea:focus, .qa-compose select:focus { outline: 1px solid var(--gold); }
.qa-thread { margin-top: 8px; }
.qa-item { padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.qa-item:last-child { border-bottom: none; }
.qa-item .qa-q { font-size: 13.5px; line-height: 1.4; }
.qa-item .qa-meta { font-size: 11px; color: var(--hint); margin-top: 3px; }
.qa-item .qa-a {
  margin-top: 9px;
  background: rgba(10, 20, 32, .55);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}
.qa-item .qa-a .who { color: var(--gold-light); font-weight: 700; font-size: 11.5px; margin-bottom: 4px; }
.qa-item textarea { width: 100%; margin-top: 8px; }
.qa-item .btn { margin-top: 8px; padding: 10px 12px; font-size: 13px; }

.qa-compose select, .qa-compose input {
  resize: vertical;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-3);
  background: rgba(10, 20, 32, .5);
  color: var(--text);
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
}
/* checkbox/radio ფორმაში არ უნდა გაიწელოს (width:100% ზემოთ ტექსტურ ველებზეა გათვლილი) */
.qa-compose input[type=checkbox], .qa-compose input[type=radio] {
  width: 22px; height: 22px; min-height: 0; padding: 0; flex: none; accent-color: var(--gold);
}
.qa-compose label.chip { cursor: pointer; }
.qa-compose input:focus { outline: 1px solid var(--gold); }
.qa-compose input::placeholder { color: var(--hint); }

/* ---------- ექსკლუზივის გაზიარება კოლეგასთან (თანამშრომლობა) ---------- */
.modal .share-box { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.modal .share-box .lbl { font-weight: 700; margin-bottom: 9px; font-size: 13.5px; color: var(--gold-light); }

/* ---------- პერიოდის ფილტრი (დღე / კვირა / თვე) ---------- */
.period-switch {
  display: flex;
  gap: 4px;
  background: rgba(10, 20, 32, .55);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 13px;
}
.period-switch button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--hint);
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 0;
  border-radius: 999px;
  transition: all .15s ease;
}
.period-switch button.active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: var(--btn-text);
  box-shadow: var(--glow-gold);
}

/* ---------- გუნდის ჯგუფები (მენეჯერი/თიმის მიხედვით) ---------- */
.team-group { margin-bottom: 14px; }
.team-group:last-child { margin-bottom: 0; }
.team-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 2px;
  background: rgba(201, 162, 39, .08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.team-group-head .tg-name { font-size: 13px; font-weight: 750; color: var(--gold-light); }
.team-group-head .tg-meta { font-size: 11px; color: var(--hint); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- მარტივი SVG დიაგრამები (barChart) ---------- */
.chart-wrap { margin: 4px 0 12px; }
.chart-wrap svg { display: block; overflow: visible; }
.chart-lbl { font-size: 8.5px; fill: var(--hint); font-family: var(--font-ui); font-weight: 600; }
.chart-val { font-size: 9.5px; fill: var(--text); font-family: var(--font-ui); font-weight: 800; }

/* ===== v4.0: [hidden] fix + Attendance / Districts / multi-select ===== */
/* .qa-compose{display:flex} გადაფარავდა [hidden]-ს და დამალული ველები
   (მაგ. "კონკრეტული ბინის" ფორმაში ორი ტელეფონი) მაინც ჩანდა. */
[hidden] { display: none !important; }

.chk-row { display: flex; align-items: center; gap: 10px; }
.chk-row > input[type=checkbox], .chk-pick { width: 20px; height: 20px; flex: none; accent-color: var(--gold); }
/* #warnBulk — ბარის კონტეინერი: sticky უნდა იყოს ის (არა თვითონ ბარი), რადგან ბარის მშობელი მხოლოდ მისი სიმაღლისაა და
   sticky მასში არ მუშაობს — გრძელ სიაში მონიშვნისას პანელი ეკრანიდან გადიოდა და "არ ჩანდა" */
#warnBulk:empty { display: none; }
/* მონიშვნისას პანელი ეკრანის ქვედა ნაწილზე მიმაგრდება (ქვედა მენიუს ზემოთ) — სიის რომელ ადგილასაც არ უნდა იყოს მომხმარებელი,
   ყოველთვის ჩანს და სქროლი არ სჭირდება */
#warnBulk:not(:empty) {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 60;
  width: min(560px, calc(100% - 24px)); background: var(--bg); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45);
}
#warnBulk .bulk-bar { margin-bottom: 0; }
.bulk-bar {
  position: relative; z-index: 5; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 9px 10px; margin-bottom: 10px; border-radius: 12px;
  background: rgba(201, 162, 39, .12); border: 1px solid rgba(201, 162, 39, .3); font-size: 12.5px;
}
.bulk-bar .btn { padding: 8px 12px; font-size: 12.5px; margin: 0; flex: none; }
.bulk-bar .grow { flex: 1; min-width: 80px; font-weight: 650; }

.att-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.att-grid .stat .num { font-size: 18px; }
.att-note { font-size: 12px; color: var(--hint); margin-top: 8px; line-height: 1.45; }
.att-err {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.45;
  background: rgba(242, 109, 109, .12); border: 1px solid rgba(242, 109, 109, .3); color: var(--red);
}
.att-err .btn { margin-top: 8px; padding: 8px 12px; font-size: 12.5px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 600; background: rgba(147, 166, 188, .14); color: var(--text);
  border: 1px solid var(--hairline);
}
.chip.sel { background: rgba(201, 162, 39, .2); border-color: rgba(201, 162, 39, .55); color: var(--gold-light); }
button.chip { cursor: pointer; font-family: inherit; }
.dist-group { margin-top: 12px; }
.dist-group .gname { font-size: 12px; font-weight: 750; color: var(--gold-light); margin-bottom: 2px; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.filter-row select, .filter-row input {
  flex: 1; min-width: 110px; padding: 9px 10px; border-radius: 10px; font-size: 13px; font-family: inherit;
  background: rgba(10, 20, 32, .55); color: var(--text); border: 1px solid var(--hairline);
}
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.att-table { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 520px; }
.att-table th { text-align: left; color: var(--hint); font-weight: 650; padding: 6px 6px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.att-table td { padding: 8px 6px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.att-table tr.clickable { cursor: pointer; }
.qa-compose input[type=date], .qa-compose input[type=month] { min-height: 40px; }

/* ---------- ფინანსური ტრეკერი (დირექტორის ტაბი) ---------- */
.fin-sec { flex-wrap: wrap; }
.fin-range { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.fin-range input { flex: 1; min-width: 0; min-height: 40px; border-radius: var(--radius-sm); border: 1px solid var(--navy-3); background: rgba(10, 20, 32, .5); color: var(--text); padding: 0 10px; font-family: inherit; }
.fin-num { font-size: 16px !important; }
.stat .num.pos { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--green); }
.stat .num.neg { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--red); }
.stat .num.gold { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--gold-light); }
.fin-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fin-donut { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fin-legend { font-size: 12.5px; flex: 1; min-width: 150px; }
.fin-legend > div { display: flex; align-items: center; gap: 7px; padding: 4px 0; }
.fin-legend b { margin-left: auto; }
.fin-legend .pc { color: var(--hint); width: 34px; text-align: right; }
.fin-legend.inline { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; flex: none; }
.fin-legend .dot, .fin-legend i.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.fin-alert { cursor: pointer; border-color: rgba(245, 185, 66, .5); font-size: 13.5px; }
.fin-form .fin-l { font-size: 11.5px; color: var(--hint); margin: 4px 0 -2px; font-weight: 600; }
.fin-form .fin-h { font-weight: 800; color: var(--gold-light); margin-top: 10px; font-size: 13px; border-top: 1px solid var(--border); padding-top: 10px; }
.fin-form .fin-h:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.fin-calc { background: rgba(10, 20, 32, .55); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 12.5px; line-height: 1.6; }

/* ================= Safe Home Property Hub (განცხადებების კატალოგი) ================= */
.hub-head { padding: 14px; }
.hub-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hub-title h2 { margin: 0; font-size: 17px; }
.hub-search { display: flex; gap: 8px; margin-bottom: 10px; }
.hub-search input { flex: 1; min-width: 0; padding: 11px 13px; border-radius: var(--radius-sm); border: 1px solid var(--hairline); background: rgba(147,166,188,.08); color: var(--text); font-size: 14px; }
.hub-search .btn { flex: 0 0 auto; padding: 11px 12px; font-size: 13px; }
.hub-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hub-chip { border: 1px solid var(--hairline); background: rgba(147,166,188,.08); color: var(--text); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.hub-chip.on { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--btn-text); border-color: transparent; }
.hub-chip b { font-weight: 800; opacity: .85; }
.hub-chip i, .hub-fr i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: currentColor; }
.fr-green { color: #34d399; } .fr-orange { color: #f59e42; } .fr-red { color: #f26d6d; } .fr-grey { color: #8c9bb0; }
.hub-chip.fr-green.on, .hub-chip.fr-orange.on, .hub-chip.fr-red.on, .hub-chip.fr-grey.on { background: rgba(255,255,255,.12); border-color: currentColor; color: inherit; }
.hub-panel { border-top: 1px solid var(--hairline); margin-top: 6px; padding-top: 10px; }
.hub-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.hub-grid2 label { font-size: 11.5px; color: var(--hint); display: flex; flex-direction: column; gap: 4px; }
.hub-grid2 select, .hub-grid2 input { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--hairline); background: rgba(147,166,188,.08); color: var(--text); font-size: 13.5px; }
.hub-k { font-size: 11.5px; color: var(--hint); margin: 6px 0 4px; }
.hub-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .hub-grid { grid-template-columns: 1fr 1fr; } }
.hub-card { background: linear-gradient(180deg, var(--navy-3), var(--navy-4)); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); cursor: pointer; }
.hub-card:active { transform: scale(.992); }
.hub-ph { position: relative; aspect-ratio: 4 / 3; background: #0b1a2a; }
.hub-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-noph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 42px; background: linear-gradient(135deg, #12304b, #0b1a2a); color: var(--hint); border-radius: 12px; }
.hub-fr { position: absolute; left: 8px; top: 8px; background: rgba(8,16,26,.82); backdrop-filter: blur(4px); border-radius: 99px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.hub-detail-fr .hub-fr { position: static; margin-right: 8px; }
.hub-cnt { position: absolute; right: 8px; bottom: 8px; background: rgba(8,16,26,.82); border-radius: 99px; padding: 3px 9px; font-size: 11.5px; color: var(--text); }
.hub-body { padding: 12px 14px 14px; }
.hub-price { font-size: 22px; font-weight: 800; color: var(--gold-light); letter-spacing: .2px; }
.hub-price small { font-size: 12.5px; font-weight: 600; color: var(--hint); margin-left: 8px; }
.hub-facts { display: flex; gap: 16px; margin: 8px 0 6px; }
.hub-facts div { font-size: 11.5px; color: var(--hint); display: flex; flex-direction: column; }
.hub-facts b { font-size: 15px; color: var(--text); font-weight: 700; }
.hub-facts.big { gap: 22px; margin: 10px 0 8px; }
.hub-facts .muted, .muted { color: var(--hint); font-size: 12px; }
.hub-loc { font-size: 13px; color: var(--text); opacity: .92; margin: 4px 0 8px; }
.hub-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--hint); border-top: 1px solid var(--hairline); padding-top: 8px; }
.hub-deal { background: rgba(201,162,39,.14); color: var(--gold-light); border-radius: 99px; padding: 2px 9px; font-weight: 700; }
.hub-more { text-align: center; margin: 14px 0 6px; }
.hub-gal { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -4px 12px; padding: 0 4px; }
.hub-gal img { flex: 0 0 88%; height: 210px; object-fit: cover; border-radius: 14px; scroll-snap-align: center; background: #0b1a2a; }
.hub-detail-fr { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; }
.hub-kvs { border-top: 1px solid var(--hairline); margin-top: 6px; }
.hub-kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.hub-kv span { color: var(--hint); } .hub-kv b { text-align: right; font-weight: 600; }
.hub-priv { margin-top: 12px; padding: 10px 12px; border-radius: 14px; border: 1px dashed rgba(201,162,39,.4); background: rgba(201,162,39,.06); }
.hub-priv .k { font-size: 11.5px; color: var(--gold-light); margin-bottom: 4px; }

/* ---- Property Hub: v2 (რუკა, ჭკვიანი ძიება, მიმოხილვა, ფავორიტები, ანიმაციები) ---- */
.hub-seg { display: flex; gap: 4px; padding: 4px; background: rgba(147,166,188,.1); border-radius: 14px; margin-bottom: 10px; }
.hub-seg button { flex: 1; border: none; background: transparent; color: var(--hint); font-weight: 700; font-size: 13.5px; padding: 9px; border-radius: 11px; transition: all .18s ease; }
.hub-seg button.on { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--btn-text); box-shadow: var(--glow-gold); }
.hub-smart { align-items: center; }
.hub-card { animation: hubIn .38s cubic-bezier(.2,.7,.3,1) both; transition: transform .15s ease, box-shadow .15s ease; }
@keyframes hubIn { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
.hub-card:hover { box-shadow: var(--shadow); }
.hub-fav { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: none; background: rgba(8,16,26,.78); backdrop-filter: blur(4px); color: #fff; font-size: 18px; line-height: 1; transition: transform .15s ease; }
.hub-fav.on { color: #ff5c7a; transform: scale(1.08); }
.hub-fav.big { position: static; width: 40px; height: 40px; background: rgba(147,166,188,.14); font-size: 21px; }
.hub-pricerow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hub-skel .hub-ph { background: linear-gradient(100deg, #0e2236 30%, #17324c 50%, #0e2236 70%); background-size: 200% 100%; animation: hubShim 1.2s linear infinite; }
.sk { height: 14px; border-radius: 8px; margin: 10px 0; background: linear-gradient(100deg, #0e2236 30%, #17324c 50%, #0e2236 70%); background-size: 200% 100%; animation: hubShim 1.2s linear infinite; }
.sk.w60 { width: 60%; } .sk.w90 { width: 90%; } .sk.w40 { width: 40%; }
@keyframes hubShim { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.hub-ins { padding: 12px 14px; }
.hub-ins:empty { display: none; }
.hub-ins-top { display: flex; gap: 8px; margin-bottom: 8px; cursor: pointer; }
.hub-stat { flex: 1; background: rgba(147,166,188,.08); border-radius: 14px; padding: 8px 6px; text-align: center; }
.hub-stat b { display: block; font-size: 20px; color: var(--gold-light); font-weight: 800; }
.hub-stat span { font-size: 10.5px; color: var(--hint); }
.hub-stat.warn b { color: #f59e42; }
.hub-stack { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: rgba(147,166,188,.12); }
.hub-stack span { display: block; height: 100%; }
.fr-bg-green { background: #34d399; } .fr-bg-orange { background: #f59e42; } .fr-bg-red { background: #f26d6d; } .fr-bg-grey { background: #8c9bb0; }
.hub-lead { margin-top: 10px; max-height: 280px; overflow-y: auto; }
.hub-lead-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 8px 2px; border-bottom: 1px solid var(--hairline); cursor: pointer; }
.hub-lead-row .n { font-size: 13px; font-weight: 600; } .hub-lead-row .n small { color: var(--hint); font-weight: 500; margin-left: 6px; }
.hub-lead-row .v { text-align: right; font-size: 12px; color: var(--hint); } .hub-lead-row .v b { color: var(--text); font-size: 15px; margin-right: 6px; }
.hub-lead-row .hub-stack { grid-column: 1 / -1; height: 5px; }
.hub-link { background: none; border: none; color: var(--gold-light); font-size: 12px; font-weight: 600; }
.hub-mapbox { position: relative; height: calc(100vh - 330px); min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 8px; background: #0b1a2a; }
.hub-mapbox[hidden] { display: none; }
/* Leaflet-ის შრეები (z-index 400–1000) რუკის შიგნით რჩება — ადრე განცხადების მოდალს (50) ზემოდან ეფარებოდა */
.hub-mapbox { isolation: isolate; z-index: 0; }
.hub-map-top .hub-chip b { margin-left: 4px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: 11px; }
.hub-mprev { position: absolute; left: 10px; right: 10px; bottom: 44px; z-index: 600; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; background: rgba(8,16,26,.94); border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0,0,0,.5); }
.hub-mprev[hidden] { display: none; }
.hub-mprev img, .hub-mprev-noph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; display: flex; align-items: center; justify-content: center; background: #13263a; font-size: 24px; }
.hub-mprev-body { flex: 1; min-width: 0; }
.hub-mprev-body b { font-size: 16px; } .hub-mprev-body small { font-size: 11px; opacity: .7; margin-left: 2px; }
.hub-mprev-body .muted { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hub-mprev .btn { flex: none; padding: 8px 12px; }
.hub-mprev-x { flex: none; width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(255,255,255,.12); color: inherit; }
.hub-mlist { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; }
.hub-mlist-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 1px solid var(--border); background: transparent; color: inherit; text-align: left; }
.hub-mlist-row img, .hub-mlist-row .hub-mprev-noph { width: 56px; height: 56px; }
.hub-mlist-row img { border-radius: 10px; object-fit: cover; flex: none; }
.hub-mlist-row > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.hub-mlist-row small { font-size: 12px; }
#hubMapCanvas { position: absolute; inset: 0; }
.hub-map-top { position: absolute; left: 10px; top: 10px; z-index: 500; }
.hub-map-top .hub-chip { background: rgba(8,16,26,.86); backdrop-filter: blur(4px); }
.hub-map-legend { position: absolute; left: 10px; bottom: 10px; z-index: 500; display: flex; gap: 10px; font-size: 11px; font-weight: 700; background: rgba(8,16,26,.82); padding: 5px 10px; border-radius: 99px; }
.hub-map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.hub-map-legend i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.hub-mapinfo { font-size: 12px; color: var(--hint); text-align: center; margin: 2px 0 10px; }
.hub-mapinfo:empty { display: none; }
.hub-pin { background: none; border: none; }
.hub-pill { transform: translate(-50%, -50%); white-space: nowrap; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 99px; background: #c9304a; color: #fff; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.45); display: inline-flex; gap: 6px; align-items: center; }
.hub-pill b { background: rgba(255,255,255,.28); border-radius: 99px; padding: 0 6px; }
.hub-pill.fr-b-green { background: #12805a; } .hub-pill.fr-b-orange { background: #c06a12; } .hub-pill.fr-b-red { background: #b3303d; } .hub-pill.fr-b-grey { background: #5b6b80; }
.hub-pill.mine { border-color: var(--gold-light); box-shadow: 0 0 0 2px rgba(233,196,106,.45), 0 3px 10px rgba(0,0,0,.45); }
.hub-galwrap { position: relative; }
.hub-gal-c { position: absolute; right: 12px; bottom: 22px; background: rgba(8,16,26,.82); border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.hub-gal img { cursor: zoom-in; }
.hub-lb { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.hub-lb-img { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hub-lb img { max-width: 100%; max-height: 92vh; object-fit: contain; }
.hub-lb-x { position: absolute; right: 14px; top: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255,255,255,.16); color: #fff; font-size: 18px; }
.hub-lb-n { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 56px; border: none; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; border-radius: 12px; }
.hub-lb-n.l { left: 8px; } .hub-lb-n.r { right: 8px; }
.hub-lb-c { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; }
.hub-pill.fr-b-green, .leaflet-container { font-family: var(--font-ui); }
.leaflet-container { background: #0b1a2a; }

/* Hub v2.1: კომპაქტური ჩიპები (ჰორიზონტალური სქროლი), უფრო დაბალი ფოტო */
.hub-title h2 { font-size: 18px; white-space: nowrap; }
.hub-title .sub { font-size: 12px; text-align: right; }
#hubChips .hub-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -2px; padding: 2px; }
#hubChips .hub-row::-webkit-scrollbar { display: none; }
.hub-chip { white-space: nowrap; flex: 0 0 auto; }
.hub-ph { aspect-ratio: 16 / 11; }
.hub-mapbox .leaflet-container { background: #e8e4dc; }
.hub-map-top { left: auto; right: 10px; }
.hub-map-top .hub-row { flex-wrap: nowrap; }
/* რუკის ფილებზე CSS filter აღარ არის (ტელეფონზე რუკას აჭედებდა); ფილები — OpenStreetMap */
.modal .hub-row .btn, .hub-priv .hub-row .btn { flex: 1 1 30%; white-space: nowrap; padding: 11px 8px; font-size: 13px; }

/* ---- Property Hub: შეხვედრები (ბინიდან დაგეგმვა, სია, ტოპები) ---- */
.hub-seg button { position: relative; white-space: nowrap; font-size: 13px; padding: 9px 4px; }
.hub-badge { display: inline-block; min-width: 18px; margin-left: 5px; padding: 0 5px; border-radius: 99px; background: #f26d6d; color: #fff; font-size: 11px; line-height: 18px; }
.hub-badge[hidden] { display: none; }
.hub-hot { position: absolute; left: 8px; bottom: 8px; background: linear-gradient(135deg, #ff8a3d, #f2542d); color: #fff; border-radius: 99px; padding: 3px 9px; font-size: 12px; font-weight: 800; box-shadow: 0 3px 10px rgba(242,84,45,.4); }
.hub-form { display: flex; flex-direction: column; gap: 8px; }
.hub-form input, .hub-form textarea, .hub-form select { width: 100%; padding: 10px 11px; border-radius: 10px; border: 1px solid var(--hairline); background: rgba(147,166,188,.08); color: var(--text); font-size: 14px; box-sizing: border-box; }
.hub-lbl { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--hint); }
.hub-mini { display: flex; gap: 10px; align-items: center; background: rgba(147,166,188,.08); border-radius: 14px; padding: 8px; }
.hub-mini img, .hub-mini .hub-noph { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: 0 0 64px; font-size: 24px; }
.hub-mini b { color: var(--gold-light); font-size: 17px; }
.hub-note { font-size: 12.5px; background: rgba(201,162,39,.1); border: 1px dashed rgba(201,162,39,.4); border-radius: 12px; padding: 8px 10px; color: var(--gold-soft); }
.hub-err { margin-top: 8px; color: var(--red); font-size: 13px; }
.hub-meetbox { margin-top: 2px; }
.hub-day { margin: 14px 2px 6px; font-size: 12.5px; font-weight: 800; color: var(--gold-light); letter-spacing: .3px; text-transform: uppercase; }
.hub-mt { background: linear-gradient(180deg, var(--navy-3), var(--navy-4)); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-soft); animation: hubIn .35s ease both; }
.hub-mt.st-pending { border-left-color: #f59e42; } .hub-mt.st-done { border-left-color: #34d399; } .hub-mt.st-cancelled, .hub-mt.st-rejected { border-left-color: #6b7a90; opacity: .78; } .hub-mt.st-no_show { border-left-color: #f26d6d; }
.hub-mt-top { display: flex; gap: 10px; }
.hub-mt-th { flex: 0 0 62px; } .hub-mt-th img, .hub-mt-th .hub-noph { width: 62px; height: 62px; border-radius: 12px; object-fit: cover; font-size: 22px; }
.hub-mt-main { min-width: 0; flex: 1; }
.hub-mt-when { font-size: 14px; } .hub-mt-when b { color: var(--gold-light); }
.hub-mt-addr { font-size: 13px; margin: 2px 0; }
.hub-pillst { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; background: rgba(147,166,188,.18); }
.hub-pillst.st-pending { background: rgba(245,158,66,.2); color: #f59e42; } .hub-pillst.st-planned { background: rgba(74,168,216,.2); color: #7cc4ea; } .hub-pillst.st-done { background: rgba(52,211,153,.2); color: #34d399; }
.hub-pillst.st-no_show { background: rgba(242,109,109,.2); color: #f26d6d; }
.hub-mt-people { margin: 9px 0 4px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.hub-mt-people a { color: var(--gold-light); font-weight: 700; text-decoration: none; }
.hub-mt-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.hub-tag { background: rgba(147,166,188,.12); border-radius: 99px; padding: 3px 9px; font-size: 11.5px; }
.hub-tag.gold { background: rgba(201,162,39,.18); color: var(--gold-light); font-weight: 700; } .hub-tag.ok { background: rgba(52,211,153,.18); color: #34d399; font-weight: 700; }
.hub-mt-notes { font-size: 12px; color: var(--hint); background: rgba(147,166,188,.06); border-radius: 10px; padding: 7px 9px; margin: 6px 0; line-height: 1.5; }
.hub-mt-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hub-mt-acts .btn { flex: 1 1 auto; padding: 9px 10px; font-size: 12.5px; white-space: nowrap; }
.hub-toprow { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.hub-toprow::-webkit-scrollbar { display: none; }
.hub-topcard { flex: 0 0 132px; background: linear-gradient(180deg, var(--navy-3), var(--navy-4)); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.hub-topcard img, .hub-topcard .hub-noph { width: 100%; height: 80px; object-fit: cover; font-size: 26px; border-radius: 0; }
.hub-topcard b { padding: 6px 9px 0; color: #ff8a3d; font-size: 14px; } .hub-topcard span { padding: 0 9px; font-size: 11.5px; line-height: 1.3; } .hub-topcard small { padding: 2px 9px 8px; color: var(--gold-light); font-weight: 700; }
.hub-rank { display: flex; align-items: center; gap: 9px; padding: 7px 2px; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.hub-rank .n { width: 22px; height: 22px; border-radius: 50%; background: rgba(201,162,39,.18); color: var(--gold-light); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.hub-rank:nth-child(2) .n { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--btn-text); }
.hub-rank .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hub-rank .nm small { color: var(--hint); margin-left: 6px; }
.hub-rank .v b { color: var(--gold-light); font-size: 15px; } .hub-rank .v small { color: var(--hint); }
.hub-meetbox .hub-ins-top { overflow-x: auto; scrollbar-width: none; }
.hub-meetbox .hub-ins-top::-webkit-scrollbar { display: none; }
.hub-meetbox .hub-stat { flex: 1 0 auto; min-width: 62px; }
#hubFilterBtn.hub-on { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: var(--btn-text); }

/* ---- Property Hub: კლიენტები (დავალებები) ბინებთან ერთად ---- */
.hub-leadbar { margin: 0 0 10px; padding: 9px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(201,162,39,.22), rgba(201,162,39,.08)); border: 1px solid rgba(201,162,39,.4); font-size: 13px; font-weight: 700; color: var(--gold-soft); }
.hub-leadbar[hidden] { display: none; }
.hub-leadbar .hub-link { float: right; }
.hub-ld { background: linear-gradient(180deg, var(--navy-3), var(--navy-4)); border: 1px solid var(--border); border-left: 4px solid #f59e42; border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-soft); animation: hubIn .35s ease both; }
.hub-ld.pr-hi { border-left-color: #f26d6d; } .hub-ld.pr-mid { border-left-color: #f59e42; } .hub-ld.pr-lo { border-left-color: #6b7a90; }
.hub-ld-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.hub-ld-top a { color: var(--gold-light); text-decoration: none; font-size: 15px; }
.hub-new { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: #f26d6d; color: #fff; font-size: 11px; font-weight: 800; }
.hub-ld-ls { display: flex; gap: 10px; align-items: center; background: rgba(147,166,188,.08); border-radius: 14px; padding: 8px; margin: 8px 0; cursor: pointer; }
.hub-ld-ls img, .hub-ld-ls .hub-noph { width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; object-fit: cover; font-size: 24px; }
.hub-ld-ls b { color: var(--gold-light); font-size: 16px; }
/* ===== ეტაპი 2-6: ტაბების დაჯგუფება („სხვა“), სისტემის ჯანმრთელობა, ყურადღება, კრიტერიუმები, ორეულები ===== */
.more-sheet { position: fixed; inset: 0; z-index: 60; background: rgba(5, 10, 18, .6); display: flex; align-items: flex-end; justify-content: center; }
.more-sheet[hidden] { display: none; }
.more-box { width: 100%; max-width: 560px; background: var(--navy-3, #10263c); border: 1px solid var(--hairline); border-radius: 22px 22px 0 0; padding: 14px 12px calc(16px + env(safe-area-inset-bottom)); max-height: 78vh; overflow: auto; animation: hubIn .25s ease both; }
.more-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; color: var(--text); }
.more-h .close { background: transparent; border: none; color: var(--hint); font-size: 18px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more-grid button { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1px solid var(--hairline); background: rgba(147, 166, 188, .07); color: var(--text); border-radius: 14px; padding: 10px 4px; font-size: 11.5px; font-weight: 650; }
.more-grid button .ic { font-size: 22px; line-height: 1; }
.more-grid button.active { color: var(--gold-light); background: rgba(201, 162, 39, .14); border-color: rgba(201, 162, 39, .45); }

.sys-banner { display: flex; gap: 10px; align-items: center; padding: 12px; margin-bottom: 10px; border-radius: 16px; border: 1px solid var(--hairline); background: rgba(147, 166, 188, .08); }
.sys-banner > div { flex: 1; } .sys-banner .btn { padding: 6px 10px; }
.sys-banner.lv-ok { border-color: rgba(52, 211, 153, .5); } .sys-banner.lv-warn { border-color: rgba(245, 158, 66, .6); } .sys-banner.lv-bad { border-color: rgba(242, 109, 109, .7); }
.sys-card { background: linear-gradient(180deg, var(--navy-3, #10263c), var(--navy-4, #0d1f31)); border: 1px solid var(--hairline); border-left: 4px solid var(--hint); border-radius: 14px; padding: 11px 12px; margin-bottom: 9px; }
.sys-card.lv-ok { border-left-color: #34d399; } .sys-card.lv-warn { border-left-color: #f59e42; } .sys-card.lv-bad { border-left-color: #f26d6d; } .sys-card.lv-unknown { border-left-color: #93a6bc; }
.sys-h { display: flex; align-items: center; gap: 8px; } .sys-d { font-size: 12.5px; color: var(--hint); margin: 4px 0 2px; }
.sys-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 4px 0; border-top: 1px dashed var(--hairline); color: var(--text); }
.sys-row span:last-child, .sys-row b { text-align: right; } .sys-row b.warn { color: #f59e42; }

.hub-att { display: flex; gap: 10px; justify-content: space-between; align-items: center; background: linear-gradient(180deg, var(--navy-3, #10263c), var(--navy-4, #0d1f31)); border: 1px solid var(--hairline); border-left: 4px solid #f59e42; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; }
.hub-att.k-outcome_missing { border-left-color: #f26d6d; } .hub-att .btn { white-space: nowrap; padding: 6px 12px; }
.hub-crit { background: linear-gradient(180deg, var(--navy-3, #10263c), var(--navy-4, #0d1f31)); border: 1px solid var(--hairline); border-left: 4px solid var(--gold); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.hub-crit.off { opacity: .6; border-left-color: var(--hint); }
.hub-match { border: 1px solid var(--hairline); border-radius: 14px; padding: 10px; margin-bottom: 10px; background: rgba(147, 166, 188, .05); }
.hub-why { font-size: 12px; margin: 6px 0; line-height: 1.5; color: var(--text); }
.hub-dup { background: rgba(245, 158, 66, .18); color: #f59e42; border-radius: 99px; padding: 1px 7px; font-size: 11px; font-weight: 700; }
.hub-q { text-align: center; margin-top: 6px; color: #f59e42; }
.hub-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }

/* ================================================ Safe Home AI (ახალი; არსებულ სტილებს არ ცვლის) ================================================ */
.ai-subs { margin: 0 0 10px; }
.ai-chat .ai-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ai-chat .ai-top .muted { margin-left: auto; font-size: 12px; }
.ai-msgs { max-height: 52vh; min-height: 140px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; padding: 4px 2px 8px; }
.ai-hello { color: var(--hint); font-size: 13.5px; line-height: 1.5; padding: 6px 2px; }
.ai-msg { max-width: 94%; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; }
.ai-msg.user { align-self: flex-end; background: rgba(201, 162, 39, .16); border: 1px solid rgba(201, 162, 39, .32); }
.ai-msg.bot { align-self: flex-start; background: rgba(147, 166, 188, .09); border: 1px solid var(--hairline); }
.ai-msg.err { border-color: rgba(242, 109, 109, .4); }
.ai-label { margin-bottom: 6px; font-size: 11.5px; }
.ai-srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-src { font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: rgba(52, 211, 153, .1); color: var(--green); border: 1px solid rgba(52, 211, 153, .25); }
.ai-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.ai-act { background: transparent; border: 1px solid var(--hairline); color: var(--text); border-radius: 999px; padding: 5px 10px; font-size: 12.5px; cursor: pointer; }
.ai-act.strong { border-color: rgba(201, 162, 39, .5); color: var(--gold-light); }
.ai-input { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.ai-input textarea, .ai-form input, .ai-form select, .ai-form textarea {
  width: 100%; background: rgba(10, 20, 32, .6); color: var(--text); border: 1px solid var(--hairline); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px;
}
.ai-input textarea { resize: none; flex: 1; }
.ai-input .btn { flex: none; width: 52px; padding: 12px 0; margin: 0; }
.ai-note { margin-top: 8px; font-size: 11.5px; }
.ai-hist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.ai-hist-i { text-align: left; background: rgba(147, 166, 188, .08); border: 1px solid var(--hairline); border-radius: 10px; color: var(--text); padding: 8px 10px; font-size: 13px; cursor: pointer; }
.ai-kb .ai-kb-h { font-size: 15px; margin-bottom: 6px; }
.ai-kb-b { margin: 8px 0 4px; font-size: 13px; }
.ai-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ai-btns .btn { padding: 9px 12px; font-size: 13px; margin: 0; flex: 1 1 auto; }
.ai-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.ai-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--hint); font-weight: 600; }
.ai-form-row { display: flex; gap: 8px; }
.ai-form-row label { flex: 1; }
.ai-rv-q { margin: 8px 0 4px; font-size: 14px; }
.ai-rv-a { font-size: 12.5px; margin: 4px 0; }
.ai-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 8px 0; text-align: center; }
.ai-kpis b { display: block; font-size: 20px; color: var(--gold-light); }
.ai-kpis span { font-size: 10.5px; color: var(--hint); }
.ai-li { display: flex; align-items: center; gap: 8px; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; }
.ai-li:last-child { border-bottom: none; }
.ai-li.col { flex-direction: column; align-items: flex-start; gap: 2px; }
.ai-warn { margin-top: 8px; padding: 9px 11px; border-radius: 12px; background: rgba(245, 185, 66, .1); border: 1px solid rgba(245, 185, 66, .3); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 380px) { .ai-kpis { grid-template-columns: repeat(3, 1fr); } .ai-msg { max-width: 100%; } }

/* ================================================ SAIRO: მოქმედების ბარათები + კლიენტების დაცვა (ახალი; არსებულს არ ცვლის) ================================================ */
.ai-act-card { margin-top: 10px; padding: 11px 12px; border-radius: 14px; background: rgba(201, 162, 39, .08); border: 1px solid rgba(201, 162, 39, .4); font-size: 13.5px; line-height: 1.5; }
.ai-act-card.done { background: rgba(147, 166, 188, .08); border-color: var(--hairline); }
.ai-act-card.err { border-color: rgba(242, 109, 109, .45); }
.ai-act-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.ai-act-r { margin: 5px 0; word-break: break-word; }
.ai-act-edit { margin: 8px 0; }
.ai-act-edit summary { cursor: pointer; color: var(--gold-light); font-size: 12.5px; }
.ai-lg { border-left: 3px solid var(--hairline); }
.ai-lg.lv-high { border-left-color: var(--red); }
.ai-lg.lv-medium { border-left-color: var(--amber); }
.ai-lg-t { margin: 8px 0 2px; font-size: 14.5px; }
.ai-lg-f { margin: 6px 0; padding-left: 18px; color: var(--hint); font-size: 12.5px; }
.ai-lg-n { margin-top: 6px; color: var(--gold-light); font-size: 13px; }
.ai-kpis3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- კადრები (Recruitment) ---------- */
.rc-card { cursor: pointer; padding: 13px 14px; }
.rc-top { font-size: 15px; } .rc-top small { color: var(--hint); font-weight: 600; }
.rc-line { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.rc-tel { color: var(--gold-light); font-weight: 700; text-decoration: none; }
.rc-st { padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; background: rgba(147,166,188,.18); }
.rc-st.blue { background: rgba(74,168,216,.2); color: #7cc4ea; } .rc-st.green { background: rgba(52,211,153,.2); color: #34d399; } .rc-st.amber { background: rgba(245,185,66,.2); color: #f5b942; }
.rc-st.red { background: rgba(242,109,109,.2); color: #f26d6d; } .rc-st.gold { background: rgba(201,162,39,.25); color: var(--gold-soft); }
.rc-iv { font-size: 12px; font-weight: 700; color: var(--text); } .rc-call { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(147,166,188,.14); }
.rc-call.c-confirmed { color: #34d399; } .rc-call.c-declined { color: #f26d6d; } .rc-call.c-todo { color: #f5b942; } .rc-call.c-no_contact, .rc-call.c-repeat { color: #f5b942; }
.rc-note { margin-top: 6px; font-size: 12px; color: var(--hint); }
.rc-quick { display: flex; gap: 6px; margin-top: 9px; }
.rc-q { flex: 1; border: 1px solid var(--hairline); background: rgba(10,20,32,.5); color: var(--text); border-radius: 11px; padding: 8px 4px; font-size: 12px; font-weight: 700; font-family: inherit; }
.rc-q.ok { border-color: rgba(52,211,153,.5); color: #34d399; } .rc-q.no { border-color: rgba(242,109,109,.4); color: #f26d6d; } .rc-q:active { transform: scale(.94); }
.rc-warn { background: rgba(245,185,66,.14); border: 1px solid rgba(245,185,66,.4); color: #f5b942; border-radius: 12px; padding: 8px 10px; font-size: 12.5px; margin-top: 6px; }
.rc-bar { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12.5px; } .rc-bar span { width: 138px; flex: none; color: var(--hint); }
.rc-bar i { flex: 1; height: 10px; border-radius: 99px; background: rgba(147,166,188,.14); overflow: hidden; } .rc-bar u { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width .6s cubic-bezier(.2,.7,.3,1); }
.rc-bar b { width: 28px; text-align: right; }
.rc-slot { padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; } .rc-slot b { color: var(--gold-light); } .rc-slot small { width: 100%; }
.rc-agents { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; font-size: 13.5px; }
.rc-form { margin-top: 8px; } .rc-f { display: flex; flex-direction: column; gap: 3px; margin: 8px 0; font-size: 12px; color: var(--hint); font-weight: 600; } .rc-f select, .rc-f input, .rc-f textarea { font-size: 14px; }
.rc-sec { margin: 16px 0 6px; font-weight: 800; font-size: 13.5px; color: var(--gold-light); }
.rc-msg { border: 1px solid var(--hairline); border-radius: 13px; padding: 9px 10px; margin: 8px 0; font-size: 12.5px; } .rc-msgtxt { color: var(--hint); margin: 4px 0 8px; line-height: 1.45; }
.rc-log { font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; }
.rc-k { margin: 10px 0 4px; font-size: 12px; color: var(--hint); font-weight: 700; }
.rc-flag { padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; background: rgba(245,185,66,.16); color: #f5b942; }
.rc-flag.f-uncontacted, .rc-flag.f-result_missing { background: rgba(242,109,109,.18); color: #f26d6d; }
.hub-chip.rc-flagchip.warn { border-color: rgba(245,185,66,.6); } .hub-chip b { margin-left: 4px; padding: 0 6px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 11px; }
.rc-panel { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hairline); }
.rc-panel label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--hint); font-weight: 600; }
.rc-dt { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .rc-dt input { flex: 1; min-width: 140px; }
.rc-qd { display: inline-flex; gap: 4px; } .rc-qd button { border: 1px solid var(--hairline); background: rgba(10,20,32,.5); color: var(--gold-light); border-radius: 9px; padding: 6px 8px; font-size: 11.5px; font-weight: 700; font-family: inherit; }
.rc-qd button:active { transform: scale(.92); }
.rc-ia2 { border-left: 3px solid rgba(201,162,39,.35); padding-left: 8px; margin: 6px 0; }
.rc-ia { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--hairline); } .rc-ia b { width: 100%; color: var(--gold-light); } .rc-ia .ok { color: #34d399; } .rc-ia .bad { color: #f26d6d; }
.rc-calnav { display: flex; gap: 6px; } .rc-calnav .btn { flex: 1; padding: 9px 4px; font-size: 13px; }
.rc-strip { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0 8px; -webkit-overflow-scrolling: touch; }
.rc-day { flex: none; width: 54px; border: 1px solid var(--hairline); border-radius: 14px; background: rgba(10,20,32,.5); color: var(--text); padding: 7px 2px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: inherit; }
.rc-day small { color: var(--hint); font-size: 10.5px; font-weight: 700; } .rc-day b { font-size: 17px; } .rc-day i { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--gold-light); }
.rc-day i.tr { color: #7cc4ea; } .rc-day i.ot { color: #34d399; }
.rc-day.today { border-color: rgba(201,162,39,.7); } .rc-day.on { background: linear-gradient(135deg, var(--gold-soft), var(--gold)); color: #16202c; } .rc-day.on small, .rc-day.on i { color: #16202c; }
.rc-cls { display: flex; flex-wrap: wrap; gap: 6px; } .rc-cl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; background: rgba(147,166,188,.12); border: 1px solid var(--hairline); }
.rc-cl b { font-size: 15px; color: var(--gold-light); }
.rc-cl.c-confirmed b, .rc-clchip.c-confirmed b { color: #34d399; } .rc-cl.c-declined b, .rc-cl.c-noshow b { color: #f26d6d; } .rc-cl.c-changed b { color: #f5b942; } .rc-cl.c-attended b { color: #7cc4ea; }
.rc-cl-mini { font-size: 10.5px; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: rgba(147,166,188,.16); margin-left: 6px; vertical-align: middle; }
.rc-cl-mini.c-confirmed, .rc-cl-mini.c-attended { color: #34d399; } .rc-cl-mini.c-declined, .rc-cl-mini.c-noshow { color: #f26d6d; } .rc-cl-mini.c-pending, .rc-cl-mini.c-to_message, .rc-cl-mini.c-changed, .rc-cl-mini.c-postponed { color: #f5b942; } .rc-cl-mini.c-messaged { color: #7cc4ea; }
.rc-call.c-msg { color: #7cc4ea; } .rc-day i.td { color: #f5b942; }
.rc-chk { display: inline-block; margin-right: 8px; font-size: 19px; line-height: 1; color: var(--gold-light); vertical-align: middle; } .rc-picked { border-color: var(--gold) !important; box-shadow: 0 0 0 2px rgba(201,162,39,.35), var(--shadow); }
.rc-bulk { position: sticky; bottom: 82px; z-index: 40; margin-top: 10px; padding: 12px; border-radius: 18px; background: rgba(10,20,32,.96); border: 1px solid rgba(201,162,39,.5); box-shadow: 0 -8px 30px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 8px; animation: shUp .3s cubic-bezier(.2,.9,.25,1); }
.rc-bulk-top { display: flex; align-items: center; gap: 10px; font-size: 13px; } .rc-bulk-top b { font-size: 18px; color: var(--gold-light); }
.rc-lnk { background: none; border: none; color: var(--gold-light); font-weight: 700; font-size: 12px; font-family: inherit; padding: 2px 4px; }
.rc-bulk select, .rc-bulk textarea { width: 100%; padding: 9px; border-radius: 10px; border: 1px solid var(--hairline); background: rgba(147,166,188,.08); color: var(--text); font-size: 13.5px; font-family: inherit; }
.rc-q-bar { height: 6px; border-radius: 6px; background: rgba(147,166,188,.18); overflow: hidden; margin: 8px 0; } .rc-q-bar u { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width .4s; }
.rc-q-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin: 8px 0; } .rc-q-card b { font-size: 16px; } .rc-q-done { font-size: 17px; text-align: center; padding: 18px 0; }

/* ================================================ SAIRO 2.0: ვიჯეტები, ანიმაციები, თემები ================================================ */
.ai-chat { --ai-a: 201, 162, 39; --ai-g1: #c9a227; --ai-g2: #e9c46a; }
.ai-chat[data-theme="ocean"] { --ai-a: 74, 168, 216; --ai-g1: #2a8fc7; --ai-g2: #7cd0f5; }
.ai-chat[data-theme="forest"] { --ai-a: 52, 211, 153; --ai-g1: #1f9d74; --ai-g2: #6ee7b7; }
.ai-chat[data-theme="sunset"] { --ai-a: 244, 114, 82; --ai-g1: #f0623f; --ai-g2: #fbb86b; }
.ai-chat[data-theme="violet"] { --ai-a: 167, 139, 250; --ai-g1: #7c5cf0; --ai-g2: #c4b5fd; }
.ai-chat .ai-msg.user { background: rgba(var(--ai-a), .16); border-color: rgba(var(--ai-a), .36); animation: aiPop .28s ease both; }
.ai-chat .ai-msg.bot { animation: aiPop .3s ease both; }
.ai-chat .ai-top b { background: linear-gradient(90deg, var(--ai-g1), var(--ai-g2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-chat .btn:not(.secondary):not(.danger) { background: linear-gradient(135deg, var(--ai-g1), var(--ai-g2)); }
@keyframes aiPop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.ai-typing { padding: 12px 16px; }
.ai-dots { display: inline-flex; gap: 5px; align-items: center; }
.ai-dots i { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--ai-a)); animation: aiDot 1s infinite ease-in-out; }
.ai-dots i:nth-child(2) { animation-delay: .15s; } .ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.ai-sugg { margin: 8px 0 2px; } .ai-sugg .chip { font-size: 12.5px; }

.aiw { margin-top: 10px; padding: 11px 12px; border-radius: 14px; background: linear-gradient(180deg, rgba(147,166,188,.11), rgba(147,166,188,.04)); border: 1px solid var(--hairline);
  border-top: 2px solid rgba(var(--ai-a, 201,162,39), .75); opacity: 0; transform: translateY(10px); transition: opacity .45s ease calc(var(--i, 0) * 90ms), transform .45s ease calc(var(--i, 0) * 90ms); }
.aiw.on { opacity: 1; transform: none; }
.aiw.instant, .aiw.instant * { transition: none !important; animation: none !important; }
.aiw-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.aiw-big { font-size: 22px; font-weight: 800; color: rgb(var(--ai-a, 201,162,39)); white-space: nowrap; } .aiw-big small { font-size: 12px; color: var(--hint); font-weight: 600; }
.aiw-sub { font-size: 12px; font-weight: 700; color: var(--hint); margin: 10px 0 4px; }
.aiw-stack { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: rgba(147,166,188,.14); margin-bottom: 8px; }
.aiw .c-to_message { --k: #f5b942; } .aiw .c-messaged { --k: #7cc4ea; } .aiw .c-pending { --k: #e0a030; } .aiw .c-confirmed { --k: #34d399; } .aiw .c-postponed { --k: #fb923c; }
.aiw .c-declined { --k: #f26d6d; } .aiw .c-changed { --k: #f5d36b; } .aiw .c-attended { --k: #5eead4; } .aiw .c-noshow { --k: #b91c1c; }
.aiw-seg { display: block; height: 100%; width: 0; background: var(--k, var(--hint)); transition: width .85s cubic-bezier(.2,.8,.2,1); }
.aiw.on .aiw-seg { width: var(--w); }
.aiw-cand { padding: 8px 2px; border-top: 1px solid var(--hairline); cursor: pointer; }
.aiw-cand:first-of-type { border-top: none; } .aiw-cand:active { background: rgba(147,166,188,.08); }
.aiw-c1 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; } .aiw-c2 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 2px; font-size: 12.5px; }
.aiw-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; } .aiw-btns .btn, .aiw-golink { flex: 1 1 auto; padding: 9px 12px; font-size: 13px; margin: 0; }
.aiw-cols { display: flex; gap: 3px; align-items: flex-end; overflow-x: auto; padding-bottom: 2px; }
.aiw-col { flex: 1 0 36px; display: flex; flex-direction: column; align-items: center; gap: 1px; background: none; border: none; color: var(--text); padding: 2px 0; cursor: pointer; font-family: inherit; }
.aiw-col b { font-size: 12px; min-height: 15px; } .aiw-col small { font-size: 12px; font-weight: 700; } .aiw-col em { font-size: 9.5px; color: var(--hint); font-style: normal; } .aiw-col u { font-size: 10px; text-decoration: none; color: var(--hint); }
.aiw-colwrap { height: 84px; width: 100%; display: flex; align-items: flex-end; }
.aiw-colbar { width: 100%; height: 0; display: flex; flex-direction: column-reverse; border-radius: 6px 6px 3px 3px; overflow: hidden; transition: height .85s cubic-bezier(.2,.8,.2,1); background: rgba(147,166,188,.14); }
.aiw.on .aiw-colbar { height: var(--h); } .aiw-vseg { display: block; width: 100%; background: var(--k, var(--hint)); }
.aiw-hrow { display: grid; grid-template-columns: 96px 1fr 30px; gap: 8px; align-items: center; font-size: 12.5px; margin: 5px 0; } .aiw-hrow b { text-align: right; }
.aiw-htrack { height: 9px; border-radius: 99px; background: rgba(147,166,188,.14); overflow: hidden; }
.aiw-htrack i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ai-g1, #c9a227), var(--ai-g2, #e9c46a)); border-radius: 99px; transition: width .9s cubic-bezier(.2,.8,.2,1); }
.aiw.on .aiw-htrack i { width: var(--w); }
.aiw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.aiw-tile { text-align: center; padding: 8px 4px; border-radius: 12px; background: rgba(147,166,188,.08); border: 1px solid var(--hairline); min-width: 0; }
.aiw-tile b { display: block; font-size: 15px; overflow-wrap: anywhere; } .aiw-tile span { font-size: 10.5px; color: var(--hint); }
.aiw-tile.t-pos b { color: #34d399; } .aiw-tile.t-neg b, .aiw-tile.t-red b { color: #f26d6d; } .aiw-tile.t-gold b { color: var(--gold-light, #e9c46a); } .aiw-tile.t-amber b { color: #f5b942; } .aiw-tile.t-blue b { color: #7cc4ea; }
.aiw-more { margin-top: 8px; } .aiw-more summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--hint); }
.aiw .card { box-shadow: none; margin: 8px 0 0; }

.ai-diffs { margin-top: 4px; }
.ai-diff { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 5px 0; border-top: 1px solid var(--hairline); font-size: 13px; }
.ai-diff:first-child { border-top: none; } .ai-diff span { color: var(--hint); min-width: 92px; } .ai-diff s { color: var(--hint); opacity: .8; } .ai-diff i { font-style: normal; color: var(--hint); } .ai-diff b { color: #34d399; }
.ai-diff.warn { color: #f5b942; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .aiw, .aiw * , .ai-chat .ai-msg, .ai-dots i { transition: none !important; animation: none !important; }
  .aiw { opacity: 1; transform: none; } .aiw-seg { width: var(--w); } .aiw-colbar { height: var(--h); } .aiw-htrack i { width: var(--w); }
}

/* ===== 📣 TGNET (Telegram ქსელი, ეტაპი 2B) ===== */
.tg-top{display:flex;justify-content:space-between;align-items:center;gap:8px}
.tg-h{margin:14px 4px 6px;font-size:14px}
.tg-card{padding:12px}
.tg-row{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
.tg-row .btn{flex:1 1 auto;padding:7px 10px;font-size:12px}
.tg-chat{flex:2 1 150px;min-width:0;padding:8px;border-radius:10px;border:1px solid var(--line,#2a3a4d);background:transparent;color:inherit;font-size:13px}
.tg-err{margin-top:6px;font-size:12px;color:#e07a6a}
.tg-st.tg-green{background:rgba(46,160,90,.18);color:#4cc27a}
.tg-st.tg-red{background:rgba(220,80,60,.18);color:#e07a6a}
.tg-st.tg-blue{background:rgba(70,130,220,.18);color:#6aa6f0}
.tg-st.tg-gray{background:rgba(150,150,150,.18);color:#9aa4ae}

.tg-q{padding:10px 0;border-top:1px solid var(--line,#2a3a4d)}
.tg-q:first-of-type{border-top:0}

.tg-prev{margin-top:8px;padding:8px;border-radius:10px;background:rgba(150,150,150,.08)}
.tg-prev pre{white-space:pre-wrap;word-break:break-word;font:12px/1.4 inherit;margin:4px 0 8px}
.tg-ag{flex:2 1 140px;min-width:0;padding:7px;border-radius:10px;border:1px solid var(--line,#2a3a4d);background:transparent;color:inherit;font-size:13px}

.tg-chk{display:flex;align-items:center;gap:6px;cursor:pointer}.tg-chk input{width:auto;margin:0}
.tg-picked{background:rgba(233,196,106,.07);border-radius:10px}
.tg-bulk{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0;padding:8px;border-radius:10px;background:rgba(150,150,150,.08)}
.tg-bulk .btn{padding:6px 10px;font-size:12px}

/* ===== 🏘️ MyHome ტაბის ვიზუალი: შესვლის ანიმაცია, ველების ფოკუსი, მოხდენილი თიქები, სოლიდური ტიპოგრაფია (მხოლოდ .mh-wrap-ში — დანარჩენი აპი უცვლელია) ===== */
.mh-wrap{font-feature-settings:"kern","liga";letter-spacing:.1px}
.mh-wrap h2{font-weight:800;letter-spacing:.2px;display:flex;align-items:center;gap:8px}
.mh-wrap .card{animation:mhIn .38s cubic-bezier(.2,.8,.2,1) both;transition:transform .18s ease,box-shadow .18s ease}
.mh-wrap .card:nth-child(2){animation-delay:.05s}.mh-wrap .card:nth-child(3){animation-delay:.1s}.mh-wrap .card:nth-child(4){animation-delay:.15s}.mh-wrap .card:nth-child(n+5){animation-delay:.2s}
@keyframes mhIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.mh-wrap .qa-compose input,.mh-wrap .qa-compose select,.mh-wrap .qa-compose textarea{transition:border-color .2s,box-shadow .2s,background .2s;border-radius:12px}
.mh-wrap .qa-compose input:focus,.mh-wrap .qa-compose select:focus,.mh-wrap .qa-compose textarea:focus{outline:none;border-color:var(--gold,#e9c46a);box-shadow:0 0 0 3px rgba(233,196,106,.18)}
.mh-wrap .qa-compose label{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:rgba(150,150,150,.08);cursor:pointer;transition:background .2s,transform .12s}
.mh-wrap .qa-compose label:active{transform:scale(.985)}
.mh-wrap .qa-compose label:has(input:checked){background:rgba(233,196,106,.16)}
.mh-wrap .btn{transition:transform .12s ease,filter .2s ease,box-shadow .2s ease}
.mh-wrap .btn:hover{filter:brightness(1.07)}.mh-wrap .btn:active{transform:scale(.97)}
.mh-wrap .btn:not(.secondary):not(:disabled){box-shadow:0 6px 18px rgba(233,196,106,.16)}
.mh-wrap .row,.mh-wrap .list-row{transition:background .2s,transform .15s}
.mh-wrap .row:hover,.mh-wrap .list-row:hover{background:rgba(233,196,106,.06);transform:translateX(2px)}
.mh-wrap .cnt{display:inline-block;min-width:22px;text-align:center;border-radius:999px;padding:1px 8px;background:rgba(233,196,106,.2);font-size:12px}
@media (prefers-reduced-motion:reduce){.mh-wrap .card{animation:none}.mh-wrap *{transition:none!important}}

/* ===== 👤 პირადი კაბინეტი ===== */
.cab-hero{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;margin-top:8px;background:linear-gradient(135deg,rgba(233,196,106,.18),rgba(42,157,143,.10));border:1px solid rgba(233,196,106,.25);animation:mhIn .35s ease both}
.cab-av{width:52px;height:52px;flex:0 0 52px;border-radius:16px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:19px;letter-spacing:.5px;color:#1b2430;background:linear-gradient(135deg,#e9c46a,#f4a261);box-shadow:0 6px 16px rgba(233,196,106,.3)}
.cab-who{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.cab-who b{font-size:17px;font-weight:800}.cab-who span{font-size:12px;opacity:.75}
.cab-rf{padding:8px 10px}
.cab-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px;margin-top:10px}
.cab-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 10px 9px;border-radius:14px;border:1px solid var(--line,#2a3a4d);background:rgba(150,150,150,.06);color:inherit;font:inherit;text-align:left;cursor:pointer;transition:transform .12s,background .2s,border-color .2s;animation:mhIn .35s ease both}
.cab-tile:active{transform:scale(.97)}.cab-tile:hover{background:rgba(233,196,106,.08)}
.cab-tile .cab-ic{font-size:18px}.cab-tile b{font-size:22px;font-weight:800;line-height:1.1}.cab-tile .cab-lb{font-size:12px;opacity:.85;line-height:1.25}.cab-tile small{font-size:11px;opacity:.65}
.cab-tile.red.has{border-color:rgba(230,57,70,.55);background:rgba(230,57,70,.10)}.cab-tile.red.has b{color:#ff6b6b}
.cab-tile.orange.has{border-color:rgba(244,162,97,.55);background:rgba(244,162,97,.10)}.cab-tile.orange.has b{color:#f4a261}
.cab-tile.sk{height:78px;cursor:default;background:linear-gradient(90deg,rgba(150,150,150,.06),rgba(150,150,150,.14),rgba(150,150,150,.06));background-size:200% 100%;animation:cabSk 1.2s infinite}
@keyframes cabSk{from{background-position:200% 0}to{background-position:-200% 0}}
.cab-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:none;padding-bottom:2px}.cab-tabs::-webkit-scrollbar{display:none}.cab-tabs .hub-chip{flex:0 0 auto}
.cab-src{display:inline-block;font-size:11px;padding:1px 7px;border-radius:999px;background:rgba(42,157,143,.18);margin-right:4px}
.cab-tg{border-left:3px solid #2a9d8f}.cab-focus{box-shadow:0 0 0 2px #e9c46a;animation:cabPulse 1.2s ease 2}
@keyframes cabPulse{50%{box-shadow:0 0 0 6px rgba(233,196,106,.25)}}
.cab-late{color:#ff6b6b;font-weight:700}
.cab-row{padding:10px 12px;border-radius:12px;margin:6px 0;background:rgba(150,150,150,.06);border-left:4px solid #2a9d8f;cursor:pointer;transition:background .2s}
.cab-row:hover{background:rgba(233,196,106,.07)}.cab-row.lv-red{border-left-color:#e63946}.cab-row.lv-orange{border-left-color:#f4a261}
.cab-row-h{display:flex;align-items:center;gap:8px}.cab-row-h small{opacity:.6}
.cab-dot{width:9px;height:9px;border-radius:50%;background:#2a9d8f}.lv-red .cab-dot{background:#e63946}.lv-orange .cab-dot{background:#f4a261}
.cab-nums{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.cab-nums span{font-size:12px;padding:3px 8px;border-radius:999px;background:rgba(150,150,150,.12)}
.cab-nums .bad{background:rgba(230,57,70,.18);color:#ff8a8a;font-weight:700}.cab-nums .warn{background:rgba(244,162,97,.18)}
.cab-ex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px}
.cab-ex{padding:12px;border-radius:14px;background:rgba(150,150,150,.06);border:1px solid var(--line,#2a3a4d);animation:mhIn .3s ease both}
.cab-ex-h{display:flex;justify-content:space-between;gap:8px;margin-bottom:4px}.cab-ex-h span{color:#e9c46a;font-weight:800}
.warn-fold summary{cursor:pointer;list-style:none}.warn-fold summary::-webkit-details-marker{display:none}.warn-fold summary h2::after{content:" ▾";opacity:.6}.warn-fold[open] summary h2::after{content:" ▴"}
@media (prefers-reduced-motion:reduce){.cab-tile,.cab-hero,.cab-ex{animation:none}}

/* ===== 🏘️ MyHome ტაბი v2: დღის სურათი, ნაბიჯებიანი ფორმა, გადამრთველები, სტატუსის ბარათები ===== */
.mh-hidden{display:none!important}
.mh-hero{padding:16px;border-radius:20px;margin-bottom:12px;background:radial-gradient(120% 140% at 0% 0%,rgba(233,196,106,.22),transparent 55%),linear-gradient(135deg,rgba(38,70,83,.55),rgba(42,157,143,.18));border:1px solid rgba(233,196,106,.22);animation:mhIn .4s cubic-bezier(.2,.8,.2,1) both}
.mh-hero-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.mh-hero-t{font-size:20px;font-weight:800;letter-spacing:.2px}.mh-hero-s{font-size:12.5px;opacity:.8;margin-top:2px}
.mh-ring{--p:0;width:64px;height:64px;flex:0 0 64px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:conic-gradient(#2a9d8f calc(var(--p)*1%),rgba(150,150,150,.18) 0);position:relative}
.mh-ring::before{content:"";position:absolute;inset:6px;border-radius:50%;background:var(--card,#16212e)}
.mh-ring b,.mh-ring small{position:relative}.mh-ring b{font-size:15px;font-weight:800}.mh-ring small{font-size:9px;opacity:.7}
.mh-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-top:12px}
.mh-stat{display:flex;flex-direction:column;align-items:center;gap:1px;padding:8px 4px;border-radius:14px;border:1px solid rgba(150,150,150,.2);background:rgba(0,0,0,.12);color:inherit;font:inherit;cursor:pointer;transition:transform .12s,background .2s,border-color .2s}
.mh-stat:active{transform:scale(.95)}.mh-stat b{font-size:18px;font-weight:800}.mh-stat small{font-size:10.5px;opacity:.8}
.mh-stat.on{border-color:#e9c46a;background:rgba(233,196,106,.16)}
.mh-stat.amber b{color:#f4a261}.mh-stat.blue b{color:#62b6cb}.mh-stat.green b{color:#52c47f}.mh-stat.red b{color:#ff6b6b}
.mh-form h2{margin-bottom:10px}
.mh-step{display:flex;gap:12px;margin:0 0 12px}
.mh-n{flex:0 0 28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;color:#1b2430;background:linear-gradient(135deg,#e9c46a,#f4a261);box-shadow:0 4px 12px rgba(233,196,106,.25)}
.mh-step-b{flex:1;min-width:0}.mh-k{font-size:12.5px;opacity:.8;margin:3px 0 6px;font-weight:600}
.mh-seg{display:flex;gap:4px;padding:4px;border-radius:14px;background:rgba(150,150,150,.1)}
.mh-seg button{flex:1;padding:9px 6px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background .2s,color .2s,box-shadow .2s}
.mh-seg button.on{background:linear-gradient(135deg,#e9c46a,#f4a261);color:#1b2430;box-shadow:0 4px 12px rgba(233,196,106,.25)}
.mh-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (max-width:420px){.mh-grid{grid-template-columns:1fr}.mh-stats{grid-template-columns:repeat(3,1fr)}}
.mh-wrap .qa-compose label.mh-f{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:0;background:none;cursor:default}
.mh-f span{font-size:12px;opacity:.8;font-weight:600}
.mh-sws{display:flex;flex-direction:column;gap:6px;margin:4px 0}
.mh-wrap .qa-compose label.mh-sw{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;background:rgba(150,150,150,.08);cursor:pointer}
.mh-sw input{position:absolute;opacity:0;width:0;height:0}
.mh-sw i{flex:0 0 42px;height:24px;border-radius:999px;background:rgba(150,150,150,.35);position:relative;transition:background .2s}
.mh-sw i::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s cubic-bezier(.2,.8,.2,1);box-shadow:0 1px 3px rgba(0,0,0,.3)}
.mh-sw input:checked+i{background:#2a9d8f}.mh-sw input:checked+i::after{transform:translateX(18px)}
.mh-sw input:focus-visible+i{box-shadow:0 0 0 3px rgba(233,196,106,.35)}
.mh-sw span{display:flex;flex-direction:column;font-size:13.5px}.mh-sw small{font-size:11px;opacity:.65}
.mh-go{width:100%;padding:13px;font-size:15px;font-weight:800;background:linear-gradient(135deg,#e9c46a,#f4a261);color:#1b2430}
.mh-search summary{cursor:pointer;list-style:none}.mh-search summary::-webkit-details-marker{display:none}.mh-search summary h2::after{content:" ▾";opacity:.6}.mh-search[open] summary h2::after{content:" ▴"}
.mh-job{border-left:4px solid rgba(150,150,150,.4);border-radius:12px;margin:6px 0;padding-left:8px;animation:mhIn .3s ease both}
.mh-job.st-completed{border-left-color:#52c47f}.mh-job.st-failed{border-left-color:#ff6b6b;background:rgba(230,57,70,.05)}.mh-job.st-processing{border-left-color:#62b6cb}.mh-job.st-queued{border-left-color:#f4a261}
.mh-pills{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:3px}
.mh-pill{font-size:10.5px;font-weight:700;padding:1px 8px;border-radius:999px}.mh-pill.mh{background:rgba(233,196,106,.2);color:#e9c46a}.mh-pill.ss{background:rgba(98,182,203,.2);color:#62b6cb}.mh-pill.tg{background:rgba(42,157,143,.2);color:#52c4b3}
.mh-prog{height:4px;border-radius:4px;background:rgba(98,182,203,.18);overflow:hidden;margin-top:6px}
.mh-prog i{display:block;width:40%;height:100%;border-radius:4px;background:#62b6cb;animation:mhProg 1.3s ease-in-out infinite}
@keyframes mhProg{from{transform:translateX(-100%)}to{transform:translateX(250%)}}
@media (prefers-reduced-motion:reduce){.mh-hero,.mh-job{animation:none}.mh-prog i{animation:none}}

/* ===== სოლიდური ტიპოგრაფია (მთელი აპი): Noto Sans Georgian — მკვეთრი სათაურები, ციფრები ერთ სიგანეზე ===== */
:root{--font-ui:"Manrope","Noto Sans Georgian","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,sans-serif}
body{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,.card h2,.hub-title h2{font-weight:800;letter-spacing:.15px}
b,strong{font-weight:700}
.cnt,.badge,.cab-tile b,.mh-stat b,.hub-price,.hub-stat b{font-variant-numeric:tabular-nums}
.mh-job [data-mh-retry]{width:auto;flex:0 0 auto;align-self:center;padding:8px 12px}
.mh-job .main{min-width:0}
.hub-map-flt{position:absolute;left:54px;right:10px;top:52px;z-index:500;display:flex;gap:6px}
.hub-map-flt select,.hub-map-flt input{min-width:0;flex:1 1 140px;height:34px;border-radius:12px;border:1px solid rgba(233,196,106,.35);background:rgba(11,26,42,.88);color:#fff;padding:0 10px;font:inherit;font-size:12.5px;backdrop-filter:blur(6px)}
.hub-map-flt .hub-chip{height:34px}
.hub-mapbox .leaflet-marker-icon.hub-pin{will-change:transform}
.hub-selbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;padding:8px 10px;border-radius:14px;background:rgba(150,150,150,.07);border:1px dashed rgba(233,196,106,.3)}
.hub-selbar .btn{width:auto;padding:7px 12px;font-size:12.5px}
.hub-card.hub-selable{outline:2px dashed rgba(233,196,106,.35);outline-offset:-2px}
.hub-card.hub-sel{outline:3px solid #e9c46a;outline-offset:-3px;transform:scale(.985)}
.hub-chk{position:absolute;left:8px;top:8px;z-index:2;width:26px;height:26px;border-radius:8px;display:flex;align-items:center;justify-content:center;font-weight:900;color:#1b2430;background:rgba(255,255,255,.85);border:2px solid #e9c46a}
.hub-sel .hub-chk{background:#e9c46a}
/* ===== 🆕 სახელმძღვანელო ===== */
.guide-head{background:linear-gradient(135deg,rgba(233,196,106,.14),rgba(42,157,143,.08))}
.guide-q{width:100%;margin:10px 0 8px;height:40px;border-radius:12px;border:1px solid var(--line,#2a3a4d);background:rgba(0,0,0,.15);color:inherit;padding:0 12px;font:inherit}
.guide-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}.guide-chips::-webkit-scrollbar{display:none}
.guide-card{animation:mhIn .35s ease both}
.guide-card summary{display:flex;align-items:center;gap:12px;cursor:pointer;list-style:none}.guide-card summary::-webkit-details-marker{display:none}
.guide-ic{flex:0 0 42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;font-size:21px;background:rgba(233,196,106,.15)}
.guide-t{display:flex;flex-direction:column;gap:2px;min-width:0}.guide-t b{font-size:15px;font-weight:800}.guide-t small{font-size:12px;opacity:.7}
.guide-steps{counter-reset:g;list-style:none;padding:0;margin:12px 0 4px}
.guide-steps li{counter-increment:g;position:relative;padding:8px 10px 8px 42px;margin:6px 0;border-radius:12px;background:rgba(150,150,150,.07);line-height:1.55;font-size:13.5px}
.guide-steps li::before{content:counter(g);position:absolute;left:10px;top:8px;width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:#1b2430;background:linear-gradient(135deg,#e9c46a,#f4a261)}
.guide-tip{margin-top:6px;padding:8px 10px;border-radius:12px;background:rgba(42,157,143,.12);font-size:13px;line-height:1.5}
.cab-hero .cab-rf{width:auto;flex:0 0 auto;padding:8px 12px}
.cab-tg a,.hub-ld a[href^="tel:"]{color:#e9c46a;font-weight:700;text-decoration:none}
.cab-tg .tg-row .btn{flex:1 1 auto;min-width:0}
.hub-dot{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;color:#fff;background:#2a9d8f;border:3px solid #fff;box-shadow:0 3px 10px rgba(0,0,0,.35);transform:translate(-50%,-50%);font-variant-numeric:tabular-nums}
.hub-dot.lg{width:42px;height:42px;font-size:14px}.hub-dot.xl{width:50px;height:50px;font-size:15px}
.hub-dot.fr-b-orange{background:#e76f51}.hub-dot.fr-b-red{background:#c1121f}.hub-dot.fr-b-grey{background:#6c757d}
