/* გულთმისანი — მობილურზე ორიენტირებული PWA სტილი */
:root {
  /* დიაგრამის ფერები (კატეგორიული, ფიქსირებული რიგით; ღია/მუქი ცალ-ცალკე შემოწმებულია
     dataviz-ის ვალიდატორით ამ საიტის ზედაპირებზე). --series-orig — საწყისი ახსნა, ნეიტრალური. */
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-orig: #9AA096;
  /* „თბილი“ თემა (2026-11-03): ატმისფერი ფონი, ქლიავისფერი მელანი, იისფერი მოქმედება.
     --accent მხოლოდ მოქმედებაა, --danger — მხოლოდ საფრთხე, --pine — დადასტურებული. */
  --ground: #FBF3EA;
  --surface: #FFFFFF;
  --sunk: #F8ECE3;
  --ink: #4D1D46;
  --muted: #6E5A72;
  --line: #EFE1D6;
  --accent: #8F5050;          /* ბმული და ტექსტი — წასაკითხი კონტრასტით */
  --accent-ink: #FFFFFF;
  --accent-soft: #F6E9E4;
  /* ღილაკი — იისფერი, თეთრი ტექსტით; მუქზე ხისფერი მუქი ტექსტით */
  --btn: #563060; --btn-ink: #FFFFFF; --btn-edge: #3D1F45;
  --mark: #EBB865;
  /* რბილი წითელი — მხოლოდ პატარა ფერადი დეტალი (წერტილი, იარლიყი), არასდროს ფართობი და არასდროს შეცდომა */
  --pop: #F2A3A0;
  /* განწყობის შკალა: ლავანდა (ცუდი) → ატამი → მზე → პიტნა (კარგი); წითელი არა — ცუდი დღე შეცდომა არ არის */
  --mood-0: #DCD3EE; --mood-5: #FFE3B8; --mood-10: #BFE8D2;
  /* ემოციები სცენებში (learn/scenes) — ბრაზი თბილია, არა --danger */
  --emo-anger: #E07A5F; --emo-anger-soft: #F7D3C6; --emo-anx: #C9A23A; --emo-anx-soft: #F6E7BC; --emo-calm: #4E7D5B; --emo-calm-soft: #D4E6D6;
  --danger: #B4233C;
  --danger-ink: #FFFFFF;
  --danger-soft: #FCE4E6;
  --pine: #2F6E57;
  --pine-soft: #E2F4EC;
  /* ბარათების ფერები (2026-11-04): ხე, მწვანე, ფიქალი, მდოგვი. peach/sun-ზე ტექსტი --tile-ink (მუქი),
     mint/sky-ზე — --tile-ink-on-dark (თეთრი). ცვლადების სახელები ძველია, რომ ყველა წესი არ გადაიწეროს */
  --tile-peach: #CFA27A; --tile-mint: #4E7D5B; --tile-sky: #35506E; --tile-sun: #EBB865; --tile-ink: #2A1830; --tile-ink-on-dark: #FFFFFF;
  --tile-violet: #563060; --tile-navy: #313967;
  /* ილუსტრაციები: ძირითადი ფერი currentColor (= --accent), დანარჩენი — ეს ორი */
  --illus-soft: #F4E9E0; --illus-ink: #4A3552;
  /* მინის ეფექტი აღარ არის — ზედაპირი მკვრივია. ცვლადები რჩება, რომ ძველი წესები არ დაირღვეს */
  --glass: var(--surface);
  --glass-strong: var(--surface);
  --glass-line: var(--line);
  --glass-hi: transparent;
  --glass-shadow: 0 1px 2px rgba(58, 35, 64, .04), 0 8px 24px -16px rgba(58, 35, 64, .22);
  --blur: 0px;
  --warn: #8A5A12;
  --warn-soft: #FDF0D2;
  --ok: #2E6B3E;
  --ok-soft: #DDEBDF;
  /* თემის ღილაკის ხატულა — სად გადახვალ: ღიაზე მთვარე, მუქზე მზე */
  --theme-sun: none;
  --theme-moon: block;
  --radius: 14px;
  --sans: "Noto Sans Georgian", "Segoe UI", system-ui, sans-serif;
  --serif: "Noto Serif Georgian", Georgia, serif;
  --mono: ui-monospace, Consolas, monospace;
}
/* მუქი თემა ორი გზით ირთვება: სისტემით — თუ ღილაკით ღია არ აირჩიეს — და ღილაკით
   (data-theme="dark"; base.html-ის <head>-ის სკრიპტი localStorage-იდან სვამს, CSS-მდე).
   ორივე ბლოკი ერთნაირი უნდა იყოს: ერთში შეცვლილი ფერი მეორეში ძველი რჩება. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #1E1424; --surface: #2B1D33; --sunk: #34243C; --ink: #F6EDE6; --muted: #C9B6C6; --line: #3F2C47;
    --accent: #E2BE99; --accent-ink: #2A0F26; --accent-soft: #3A2840;
    --btn: #CFA27A; --btn-ink: #2A0F26; --btn-edge: #A07650; --mark: rgba(235, 184, 101, .38); --pop: #F2A3A0;
    --mood-0: #B9AED3; --mood-5: #EBCF9F; --mood-10: #A3D6BC;
    --emo-anger: #F0937A; --emo-anger-soft: #5A2E2E; --emo-anx: #E3C26A; --emo-anx-soft: #4F4325; --emo-calm: #8CC79A; --emo-calm-soft: #29402F;
    --danger: #FF8A99; --danger-ink: #2A1016; --danger-soft: #4A1F29;
    --pine: #8FD0A6; --pine-soft: #1F3A2A;
    --tile-peach: #CFA27A; --tile-mint: #4E7D5B; --tile-sky: #35506E; --tile-sun: #EBB865; --tile-ink: #2A1830; --tile-ink-on-dark: #FFFFFF;
    --tile-violet: #313967; --tile-navy: #313967;
    --illus-soft: #3F2C47; --illus-ink: #E9D9E6;
    --glass-shadow: none;
    --warn: #E6C88F; --warn-soft: #3A3121; --ok: #7FBF8E; --ok-soft: #14241A;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-orig: #8E7B8C;
    --theme-sun: block; --theme-moon: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --ground: #1E1424; --surface: #2B1D33; --sunk: #34243C; --ink: #F6EDE6; --muted: #C9B6C6; --line: #3F2C47;
    --accent: #E2BE99; --accent-ink: #2A0F26; --accent-soft: #3A2840;
    --btn: #CFA27A; --btn-ink: #2A0F26; --btn-edge: #A07650; --mark: rgba(235, 184, 101, .38); --pop: #F2A3A0;
    --mood-0: #B9AED3; --mood-5: #EBCF9F; --mood-10: #A3D6BC;
    --emo-anger: #F0937A; --emo-anger-soft: #5A2E2E; --emo-anx: #E3C26A; --emo-anx-soft: #4F4325; --emo-calm: #8CC79A; --emo-calm-soft: #29402F;
    --danger: #FF8A99; --danger-ink: #2A1016; --danger-soft: #4A1F29;
    --pine: #8FD0A6; --pine-soft: #1F3A2A;
    --tile-peach: #CFA27A; --tile-mint: #4E7D5B; --tile-sky: #35506E; --tile-sun: #EBB865; --tile-ink: #2A1830; --tile-ink-on-dark: #FFFFFF;
    --tile-violet: #313967; --tile-navy: #313967;
    --illus-soft: #3F2C47; --illus-ink: #E9D9E6;
    --glass-shadow: none;
    --warn: #E6C88F; --warn-soft: #3A3121; --ok: #7FBF8E; --ok-soft: #14241A;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #008300; --series-7: #9085e9; --series-orig: #8E7B8C;
    --theme-sun: block; --theme-moon: none;
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* გვერდი ერთი სვეტია: ჰედერი — შიგთავსი — ფუტერი. ფუტერი ყოველთვის ბოლოშია,
   რომ მოკლე გვერდზე შუაში არ გაიჭედოს და ქვემოთ სიცარიელე არ დარჩეს. */
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding-bottom: 72px;
}
main.wrap { flex: 1 0 auto; width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: 1.55rem; } h2 { font-size: 1.25rem; } h3 { font-size: 1.05rem; }
p { margin: 0 0 .8em; }
small, .muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
img { max-width: 100%; }

.top, main.wrap, .tabbar, .foot { position: relative; z-index: 1; }

/* გვერდის სიგანე ორია და განზრახ არჩეული:
   ნაგულისხმევი — გვერდები გვერდითი სვეტით (კატალოგი, ძიება, წესები, კაბინეტი);
   body.sheet   — ერთსვეტიანი გვერდები, სადაც ტექსტი იკითხება (გაკვეთილები, სავარჯიშოები).
   კლასი body-ზეა, ამიტომ ჰედერი, შიგთავსი და ფუტერი ერთ ხაზზე რჩება. */
.wrap { max-width: 780px; margin: 0 auto; padding: 16px; }

/* header */
.top { background: var(--glass-strong); -webkit-backdrop-filter: blur(var(--blur)) saturate(130%); backdrop-filter: blur(var(--blur)) saturate(130%); border-bottom: 1px solid var(--glass-line); position: sticky; top: 0; z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--sans); font-weight: 800;
  font-size: 1.2rem; color: var(--ink); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
/* ნიშანი: დახრილი, მომრგვალებული ფიგურა — ფიქრის ბუშტის კუთხით (ქვედა მარცხენა) */
.brand-mark { width: 30px; height: 30px; border-radius: 11px 11px 11px 4px; background: var(--tile-peach);
  transform: rotate(-8deg); flex: 0 0 auto; }
/* ქართული სიტყვები გრძელია — მენიუ არ უნდა გადაეფაროს ბრენდს */
.top nav { display: flex; align-items: center; gap: 14px; font-size: .92rem; min-width: 0; }
.top nav a { white-space: nowrap; color: var(--ink); }
.top .top-nav { justify-content: flex-end; flex: 0 0 auto; }
.top nav form { display: inline; }

/* მარცხნივ ბრენდი და საჯარო მენიუ, მარჯვნივ ანგარიში — margin-right: auto ყოფს */
.nav-main { gap: 18px; margin-right: auto; }
.nav-link { position: relative; padding: 2px 0; }
.nav-link.on { color: var(--accent); font-weight: 600; }
.nav-link.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ანგარიშის ჩამოსაშლელი — <details>, ანუ სკრიპტის გარეშეც იხსნება */
.menu { position: relative; }
.menu > summary {
  display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none;
  padding: 6px 10px; border-radius: 999px; color: var(--ink); white-space: nowrap;
  border: 1px solid var(--glass-line); background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur));
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary::marker { content: ""; }
.menu > summary:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.menu > summary svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu > summary .who { width: 18px; height: 18px; }
.menu > summary .chev { width: 14px; height: 14px; opacity: .55; transition: transform .18s ease; }
.menu[open] > summary .chev { transform: rotate(180deg); }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 216px; z-index: 20;
  display: flex; flex-direction: column; padding: 6px;
  border-radius: 14px; border: 1px solid var(--glass-line);
  background: var(--glass-strong);
  -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 20px 44px -22px rgba(0, 0, 0, .5);
}
.menu-who { font-size: .78rem; color: var(--muted); padding: 6px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu-pop a, .menu-pop button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px; border-radius: 8px; font: inherit; font-size: .9rem;
  color: var(--ink); background: none; border: 0; cursor: pointer; text-align: left; width: 100%;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--accent-soft); color: var(--accent); text-decoration: none; }
.menu-pop form { display: block; margin-top: 4px; border-top: 1px solid var(--line); padding-top: 4px; }

/* თემის ღილაკი ანგარიშის გვერდით — ჩარჩოს გარეშე, მხოლოდ ხატულა; დასაჭერი არე კი
   ანგარიშის ღილაკის სიმაღლისაა, რომ თითით ადვილად მოხვდე. ხატულა იმ თემას აჩვენებს, რომელზეც
   გადახვალ: ღიაზე სავსე მთვარე, მუქზე მზე — ორივე მთავარი გვერდის ფოტოების პატარა ასლია. რომელი ჩანს, თემის ცვლადები
   წყვეტს (--theme-sun / --theme-moon), ამიტომ სისტემის თემასაც სკრიპტის გარეშე მიჰყვება. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  font: inherit; line-height: 1.55; width: calc(1.55em + 14px); height: calc(1.55em + 14px);
  padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--ink);
  transition: opacity .15s ease;
}
.theme-toggle:hover { opacity: .72; }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: var(--theme-sun); }
.theme-toggle .full-moon { display: var(--theme-moon); }

/* bottom nav (mobile) */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--glass-strong); -webkit-backdrop-filter: blur(var(--blur)); backdrop-filter: blur(var(--blur)); border-top: 1px solid var(--glass-line); display: flex; z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { flex: 1; text-align: center; padding: 10px 4px 8px; font-size: .72rem; color: var(--muted); display: flex; flex-direction: column; gap: 2px; align-items: center; }
.tabbar a svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.tabbar a.active { color: var(--accent); }
.tabbar a:hover { text-decoration: none; }
@media (min-width: 760px) { .tabbar { display: none; } body { padding-bottom: 32px; } }
@media (max-width: 759px) {
  .top nav .desktop-only { display: none; }
  /* ბრენდი და ანგარიში პირველ რიგში, მენიუ — მეორეში, მთელ სიგანეზე.
     ოთხივე პუნქტი ერთ ხაზზე 375px-ზე არ ეტევა, ამიტომ რიგი გვერდულად გორავს. */
  .top .wrap { flex-wrap: wrap; row-gap: 6px; }
  .nav-main {
    order: 3; flex: 1 0 100%; margin-right: 0; gap: 16px;
    overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
    padding-bottom: 2px;
  }
  .nav-main::-webkit-scrollbar { display: none; }
  .top .wrap { padding-bottom: 8px; }
}

/* messages */
.msgs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
/* ფერი მნიშვნელობას ატარებს: მწვანე = მოხდა, ყვითელი = ყურადღება, წითელი = შეცდომა, ნეიტრალური = უბრალოდ ინფორმაცია */
.msg { padding: 10px 14px; border-radius: var(--radius); color: var(--ink); font-size: .93rem; border-left: 3px solid var(--muted); }
.msg.success { background: var(--pine-soft); color: var(--pine); border-color: var(--pine); }
.msg.warning { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.msg.error { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.msg a { color: inherit; text-decoration: underline; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border-radius: var(--radius); border: 1px solid var(--ink); background: var(--ink); color: var(--ground); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; }
.btn:hover { text-decoration: none; opacity: .92; }
.btn.primary { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); box-shadow: 0 3px 0 var(--btn-edge); }
.btn.primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-edge); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { padding: 6px 12px; font-size: .85rem; }
.btn.block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* cards & lists */
/* მინის ზედაპირი. ფონზე აურის ნისლი და ვარსკვლავებია — გამჭვირვალობა მათ ამჟღავნებს,
   ბუნდოვანება კი ტექსტს კითხვადს ტოვებს. ნათელი ზედა კიდე მინის სისქეს აჩვენებს. */
.glassy, .card, .dir, .sp, .note-row, .stat, .statbar > div,
.searchbox, .chip, .msg, .offer, .fmt-row, .reveal, .locked, .checkin, .help-card,
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=email], select, textarea {
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
}
.card, .dir, .sp, .note-row, .stat, .searchbox, .offer, .help-card {
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi), var(--glass-shadow);
}
@supports not (backdrop-filter: blur(1px)) {
  .glassy, .card, .dir, .sp, .note-row, .stat, .statbar > div, .searchbox, .chip, .msg,
  input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=email], select, textarea { background: var(--surface); }
}
@media (prefers-reduced-transparency: reduce) {
  .glassy, .card, .dir, .sp, .note-row, .stat, .searchbox, .chip, .msg { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.card { border-radius: 22px; padding: 20px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.section { margin-top: 28px; }
/* ქართულს monospace არ ჰყოფნის — რუბრიკა იმავე შრიფტით იწერება, რაც ტექსტი */
.eyebrow { font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }

/* direction tiles */
.dirs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dir { border-radius: 14px; padding: 16px 14px; color: var(--ink); display: flex; flex-direction: column; gap: 4px; min-height: 108px; }
.dir:hover { border-color: var(--accent); text-decoration: none; }
.dir b { font-family: var(--serif); font-size: 1.1rem; }
.dir small { font-size: .8rem; line-height: 1.35; }
.dir .count { margin-top: auto; font-family: var(--mono); font-size: .72rem; color: var(--accent); }

/* specialist card */
.sp { display: grid; grid-template-columns: 64px 1fr; gap: 14px; border-radius: 14px; padding: 14px; color: var(--ink); }
.sp:hover { border-color: var(--accent); text-decoration: none; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--sunk); object-fit: cover; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.4rem; color: var(--muted); }
.avatar.lg { width: 96px; height: 96px; font-size: 2rem; }
.sp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: nowrap; }
.sp .name { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; min-width: 0; overflow-wrap: anywhere; }
.sp-head .price { flex: 0 0 auto; }
.sp .loc { font-size: .86rem; color: var(--muted); }
.sp .tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag { font-size: .75rem; padding: 2px 8px; border: 1px solid var(--line); border-radius: 3px; background: var(--ground); color: var(--muted); }
.tag.accent { border-color: var(--accent); color: var(--accent); background: transparent; }
.tag.pine { border-color: var(--pine); color: var(--pine); }
.stars { color: var(--warn); letter-spacing: .05em; font-size: .9rem; }
.price { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.badge.pine { background: var(--pine-soft); color: var(--pine); }
.badge.muted { background: var(--sunk); color: var(--muted); }

/* filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters select { flex: 1 1 140px; }

/* დალაგება — ხატულა და ჩამოსაშლელი ერთ ხაზზე */
.sortbar { display: flex; align-items: center; gap: 8px; }
.sortbar svg { width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.sortbar select { width: auto; min-width: 168px; font-size: .88rem; padding: 7px 10px; }
/* გორვის ზოლი არ ეხატება — რიგი ისედაც ჩამოჭრილად ჩანს და ეს საკმარისი ნიშანია;
   თაგვის ბორბალს `app.js` აქცევს ჰორიზონტალურ გორვად. */
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 10px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 6px 12px; border: 1px solid var(--glass-line); border-radius: 999px; box-shadow: inset 0 1px 0 var(--glass-hi); color: var(--ink); font-size: .85rem; white-space: nowrap; }
.chip.active { background: var(--btn); color: var(--btn-ink); border-color: var(--btn-edge); box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.chip:hover { text-decoration: none; }

/* forms */
form .field { margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=email], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--glass-line); border-radius: var(--radius); color: var(--ink); font: inherit; font-size: 16px;
  box-shadow: inset 0 1px 0 var(--glass-hi);
}
textarea { resize: vertical; }
input[type=file] { font: inherit; font-size: .9rem; }
.help { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.err { color: var(--danger); font-size: .85rem; margin-top: 4px; }
.errorlist { list-style: none; padding: 0; margin: 0 0 6px; color: var(--danger); font-size: .85rem; }
.checks label, .radios label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.checks input, .radios input { width: auto; }
ul.checks, ul.radios { list-style: none; padding: 0; margin: 0; }
ul.checks li label, ul.radios li label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.inline { display: inline-flex; align-items: center; gap: 8px; }
.inline input { width: auto; }

/* slots */
.days { display: flex; flex-direction: column; gap: 12px; }
.day .dh { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.day .dh b { font-family: var(--serif); }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-family: var(--mono); font-size: .88rem; cursor: pointer; color: var(--ink); }
.slot.selected { background: var(--btn); color: var(--btn-ink); border-color: var(--btn-edge); }
.slot.static { cursor: default; }
.hours-grid { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px 10px; align-items: center; }
.hours-grid .wd { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.hours-grid input[type=checkbox] { width: 18px; height: 18px; }

/* order timeline */
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.timeline li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; font-size: .92rem; color: var(--muted); }
.timeline li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); margin-top: 6px; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--pine); border-color: var(--pine); }
.timeline li.now { color: var(--accent); font-weight: 600; }
.timeline li.now::before { border-color: var(--accent); background: var(--accent-soft); }
.reveal { background: var(--pine-soft); border: 1px solid var(--pine); border-radius: var(--radius); padding: 14px 16px; }
.reveal b { color: var(--pine); }
.locked { background: var(--sunk); border-radius: var(--radius); padding: 14px 16px; color: var(--muted); font-size: .92rem; }

/* review */
.review { border-top: 1px solid var(--line); padding: 12px 0; }
.review .who { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
.review .reply { margin-top: 8px; padding: 8px 12px; background: var(--ground); border-left: 2px solid var(--pine); font-size: .9rem; }
.rating-radios { display: flex; gap: 6px; }
.rating-radios label { flex: 1; text-align: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; font-weight: 600; color: var(--warn); }
.rating-radios input { position: absolute; opacity: 0; }
.rating-radios input:checked + span, .rating-radios label:has(input:checked) { background: var(--warn-soft); border-color: var(--warn); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.stat { border-radius: 14px; padding: 12px 14px; }
.stat b { display: block; font-family: var(--mono); font-size: 1.3rem; }
.stat small { font-size: .78rem; }

.tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.list { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.list td, table.list th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.list th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* სპეციალისტის სტატისტიკა */
.statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.statbar > div { padding: 12px 14px; display: flex; flex-direction: column; gap: 1px; }
.statbar b { font-family: var(--mono); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.statbar small { font-size: .76rem; color: var(--muted); line-height: 1.3; }

/* ადგილზე ყოფნის დადასტურება */
.checkin { background: var(--pine-soft); border: 1px solid var(--pine); border-radius: var(--radius); padding: 16px 18px; }
.checkin p { max-width: 46ch; }

.refcode {
  font-family: var(--mono); font-size: 2rem; font-weight: 600; letter-spacing: .22em;
  color: var(--accent); background: var(--ground); border: 1px dashed var(--accent);
  border-radius: var(--radius); padding: 14px 18px; text-align: center; user-select: all;
}

/* search */
.searchbox { display: flex; align-items: center; gap: 8px; border-radius: 14px; padding: 6px 10px; }
.searchbox svg { width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 1.8; flex: 0 0 auto; }
.searchbox input {
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 6px 0; flex: 1; min-width: 0;
}
.searchbox input:focus { outline: none; }
.searchbox:focus-within { border-color: var(--accent); }

.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 20px; }

/* offers — ერთი კითხვა, რამდენიმე ფორმატი */
.offer { padding: 0; overflow: hidden; }
.offer-head { padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 2px; border-bottom: 1px solid var(--line); }
.offer-head b { font-family: var(--serif); font-size: 1.05rem; }
.offer-head small { font-size: .84rem; line-height: 1.4; }
.offer-format { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.offer-format + .offer-format { border-top: 1px solid var(--line); }
.offer-format > div:first-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fmt-name { font-weight: 600; font-size: .93rem; }
/* ვიწრო ეკრანზე ყველა სტრიქონი ერთნაირად ეწყობა, არა ნაწილი ერთ ხაზზე ნაწილი ორზე */
@media (max-width: 460px) {
  .offer-format { flex-direction: column; align-items: stretch; gap: 8px; }
  .offer-format > div:last-child { justify-content: space-between; }
}

/* cabinet: format rows */
.fmt-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; background: var(--ground); }
.fmt-toggle { display: flex; align-items: center; gap: 8px; font-weight: 600; margin: 0 0 8px; }
.fmt-toggle input { width: 18px; height: 18px; }
.fmt-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fmt-fields label { font-weight: 400; font-size: .82rem; color: var(--muted); }

/* notifications */
.bell { position: relative; display: inline-flex; align-items: center; }
.bell svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.dot { position: absolute; top: -4px; right: -7px; background: var(--danger); color: var(--danger-ink); font-size: .62rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.dot.inline-dot { position: static; display: inline-flex; }
.note-row { display: flex; flex-direction: column; gap: 3px; border-left-width: 3px; border-radius: var(--radius); padding: 12px 14px; color: var(--ink); }
.note-row:hover { text-decoration: none; border-color: var(--accent); }
.note-row.unread { border-left-color: var(--accent); background: var(--accent-soft); }

.test-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .8rem; padding: 4px 10px; }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.foot { flex: 0 0 auto; margin-top: 48px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); text-align: center; }
.foot .wrap { padding-top: 18px; padding-bottom: 18px; }
.foot p { margin: 10px auto 0; max-width: 62ch; }
.foot-links { display: flex; justify-content: center; gap: 8px 18px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }

/* სამართლებრივი გვერდები — წასაკითხი სიგანე და იერარქია.
   გვერდი ფართოა, ტექსტი კი 68 სიმბოლოზე რჩება: გრძელი ხაზი არ იკითხება. */
.legal { max-width: 68ch; }
.toc-list { display: flex; flex-direction: column; gap: 6px; }
.toc-list a { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.toc-list a:hover { color: var(--accent); text-decoration: none; }
.legal h2 { scroll-margin-top: 90px; }
.legal h2 { font-size: 1.12rem; margin: 26px 0 8px; }
.legal h3 { font-size: 1rem; margin: 18px 0 4px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 6px; }
.legal table.list td, .legal table.list th { font-size: .9rem; }

/* ---------- დიდი ეკრანი ---------- */
@media (min-width: 900px) {
  body { font-size: 16.5px; }

  /* ჰედერი და შიგთავსი ერთი სიგანისაა — ლოგო და მენიუ ტექსტის ხაზზე ჯდება */
  .wrap { max-width: 1140px; }
  body.sheet .wrap { max-width: 780px; }

  .top .wrap { padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 1.6rem; }

  /* მთავარი გვერდის შესავალი — ორ სვეტად, რომ ცარიელი ადგილი არ დარჩეს */
  .hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; padding: 28px 0 34px; }
  h1 { font-size: 1.75rem; }
  .hero h1 { font-size: 1.85rem; }
  .hero p { font-size: 1.05rem; }

  /* ხუთივე მიმართულება ერთ რიგში */
  .dirs { grid-template-columns: repeat(5, 1fr); }
  .dir { min-height: 132px; padding: 18px 16px; }

  /* სპეციალისტების სია — ორ სვეტად */
  .sp-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }

  .statbar { grid-template-columns: repeat(4, 1fr); }
  .searchbox { padding: 8px 14px; }
  .searchbox input { font-size: 1.02rem; padding: 8px 0; }
}

@media (min-width: 1240px) {
  .sp-list { grid-template-columns: repeat(3, 1fr); }
}

/* ============ გვერდის სათაური ============ */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0 0 .25em; }
.lede { color: var(--muted); max-width: 56ch; margin: 0; }

/* ============ ცარიელი მდგომარეობა ============
   ცარიელი გვერდი არ უნდა იყოს ცარიელი ტექსტი — ჩანს რა ხდება და რა ვქნა. */
.empty-state { text-align: center; padding: 40px 16px 48px; max-width: 46ch; margin: 0 auto; grid-column: 1 / -1; }
.empty-state h2 { margin: 18px 0 6px; font-size: 1.15rem; }
.empty-state p { margin: 0 0 18px; }
.empty-art { display: block; width: 150px; height: auto; margin: 0 auto; }
.empty { text-align: center; color: var(--muted); padding: 32px 16px; }

.steps { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* ============ დახმარების ბოტი ============ */
.bot { padding: 0; overflow: hidden; }
.bot-log { display: flex; flex-direction: column; gap: 12px; padding: 16px; max-height: 460px; overflow-y: auto; }
.bot-msg {
  background: var(--sunk); border-radius: var(--radius); padding: 12px 14px;
  max-width: 92%; align-self: flex-start; font-size: .94rem;
}
.bot-msg b { font-family: var(--serif); display: block; margin-bottom: 4px; }
.bot-msg p { margin: 0 0 .6em; }
.bot-msg p:last-child { margin-bottom: 0; }
/* მომხმარებლის კითხვა მეორე მხარეს დგება — საუბარი იკითხება */
.bot-msg.mine { align-self: flex-end; background: var(--accent-soft); color: var(--accent); }
.bot-msg.mine b { color: inherit; }

.bot-form { display: flex; gap: 8px; padding: 0 16px; }
.bot-form input { flex: 1; min-width: 0; }
.bot-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px 0; }
.bot-chips .chip { cursor: pointer; font-family: inherit; }
.bot-msg .bot-chips { padding: 10px 0 0; }
.bot .help { padding: 0 16px 16px; }

/* --- მცურავი ღილაკი და ფანჯარა ---
   მობილურზე ქვედა ზოლს ზემოდან უნდა დაუდგეს, თორემ ღილაკს გადაეფარება. */
.bot-launcher {
  position: fixed; right: 18px; bottom: calc(80px + env(safe-area-inset-bottom));
  width: 54px; height: 54px; border-radius: 50%; z-index: 20;
  border: 1px solid rgba(255,255,255,.25); cursor: pointer; padding: 0;
  background: var(--btn); color: var(--btn-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 26px -8px rgba(0, 0, 0, .45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.bot-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(0, 0, 0, .5); }
.bot-launcher svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bot-launcher .i-close { display: none; }
.bot-launcher.open .i-open { display: none; }
.bot-launcher.open .i-close { display: block; }
@media (min-width: 760px) { .bot-launcher { right: 24px; bottom: 24px; } }

.bot-panel {
  position: fixed; right: 18px; bottom: calc(146px + env(safe-area-inset-bottom));
  left: 18px; max-width: 380px; margin-left: auto; z-index: 20;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
}
@media (min-width: 760px) { .bot-panel { right: 24px; bottom: 90px; left: auto; width: 380px; } }
.bot-panel .bot-log { max-height: min(42vh, 300px); padding: 14px; gap: 10px; }
/* ფანჯარაში ტექსტი უფრო მჭიდროა — ჩატია და არა სტატია */
.bot-panel .bot-msg { font-size: .86rem; line-height: 1.5; padding: 10px 12px; }
.bot-panel .bot-msg b { font-size: .9rem; }
.bot-panel .bot-form { padding: 0 14px; }
.bot-panel .bot-chips { padding: 10px 14px 0; }
.bot-panel .bot-chips .chip { font-size: .78rem; padding: 5px 10px; }
.bot-panel .help { padding: 10px 14px 14px; }

/* ბრაუზერის ნაგულისხმევი გადამწევი თეთრია და ბარათს ჭრის */
.bot-log { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.bot-log::-webkit-scrollbar { width: 6px; }
.bot-log::-webkit-scrollbar-track { background: transparent; }
.bot-log::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.bot-log::-webkit-scrollbar-thumb:hover { background: var(--muted); }

.bot-more { display: inline-block; margin-top: 6px; font-size: .82rem; font-weight: 600; }
.bot-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.bot-head b { font-family: var(--serif); }

/* სრული სია — ბოტის გარეშეც ყველაფერი იკითხება */
.qa { border-bottom: 1px solid var(--line); padding: 10px 0; }
.qa summary { cursor: pointer; font-weight: 600; list-style-position: outside; }
.qa summary::marker { color: var(--muted); }
.qa[open] summary { color: var(--accent); }
.qa p { margin: 10px 0 0; max-width: 68ch; color: var(--muted); }

/* ============ სიები და დაფები ფართო ეკრანზე ============
   ერთსვეტიანი სია 1140px-ზე ცარიელ ზოლად ჩანს. ბარათები რიგებად ეწყობა,
   დაფები კი ორ სვეტად — მთავარი შიგთავსი და გვერდითი ინფორმაცია. */
.cards { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
}

.dash { display: grid; gap: 20px; }
@media (min-width: 1000px) {
  .dash { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 34px; align-items: start; }
  .dash > .aside { position: sticky; top: 88px; }
  /* თუ გვერდითი სვეტი ცარიელია (პირობები არ შესრულდა), მთავარი მთელ სიგანეს იკავებს */
  .dash:not(:has(.aside > *)) { grid-template-columns: 1fr; }
}
.dash > div > .section:first-child, .dash > .aside > .section:first-child { margin-top: 0; }

.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: .82rem; text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--accent); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============ სწავლა და სავარჯიშოები ============ */
/* ვიწრო სვეტი ნაგულისხმევ სიგანეში — არა body.sheet: 780px-ში ჰედერის ოთხი პუნქტი და
   თემის ღილაკი ერთმანეთს ედება. */
.narrow { max-width: 760px; }
.small { font-size: .84rem; }
.section-title { font-size: 1.05rem; margin: 28px 0 10px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* გადაუდებელი დახმარება — warn (ოქრო), არა danger: ეს შეცდომა არ არის, ეს გზაა */
.crisis { margin: 18px 0; padding: 10px 14px; border-left: 3px solid var(--warn); background: var(--warn-soft); border-radius: 8px; font-size: .9rem; }
.crisis span { display: block; margin-top: 4px; }
.crisis.strong { font-size: 1rem; padding: 14px 16px; }
.crisis a { color: inherit; text-decoration: underline; }

.lesson-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lesson-card { display: flex; gap: 14px; align-items: center; color: var(--ink); }
.lesson-card:hover { text-decoration: none; border-color: var(--accent); }
.lesson-card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.lesson-n { flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); }
.lesson ul { padding-left: 1.2em; }
.draft-note { display: inline-block; font-size: .84rem; padding: 4px 10px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }
.errors-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.errors-list h2 { margin-top: 0; }
.lesson-nav { gap: 12px; font-size: .92rem; }

.quiz-thought { font-family: var(--serif); font-size: 1.12rem; line-height: 1.45; margin: 0 0 12px; }
.quiz-choices { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
@media (min-width: 620px) { .quiz-choices { grid-template-columns: 1fr 1fr; } }
.quiz-choices label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.quiz-choices label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.quiz-choices input { width: auto; margin: 0; }
.quiz-feedback { border-left: 3px solid var(--accent); margin-bottom: 14px; }
.quiz-feedback.miss { border-left-color: var(--warn); }

/* ფორმა ნაბიჯებად: A, C, B, D, E */
.steps-form { display: flex; flex-direction: column; gap: 14px; }
.step { margin: 0; }
.step legend, .step summary { font-weight: 600; font-size: 1.02rem; padding: 0; margin-bottom: 10px; display: flex; gap: 10px; align-items: center; }
.step summary { cursor: pointer; margin: 0; }
details.step[open] summary { margin-bottom: 12px; }
.step-l { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--accent); color: var(--accent-ink, #fff); font-family: var(--mono); font-size: .9rem; }
.step .checks, .step ul[id] { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
@media (min-width: 620px) { .step ul[id] { grid-template-columns: 1fr 1fr; } }
.step ul[id] label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; }
.step ul[id] input { width: auto; margin: 0; }
.field .label { font-weight: 600; font-size: .9rem; margin-bottom: 6px; }

.scale { display: flex; gap: 12px; align-items: center; }
.scale input[type=range] { flex: 1; accent-color: var(--accent); }
.scale input[type=range].unset { opacity: .35; }
.scale .scale-num { width: 84px; flex: 0 0 84px; }

.abc { margin: 18px 0 0; display: grid; gap: 4px 0; }
.abc dt { font-weight: 600; display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.abc dd { margin: 4px 0 0 36px; }
.abc dd p { margin: 0 0 6px; }

/* „თავიდან → ახლა“ — ერთი შკალა, ორი თხელი ზოლი */
.change { margin: 10px 0 14px; }
.change-head { display: flex; gap: 8px; align-items: baseline; margin-bottom: 6px; }
.change-head span { flex: 1; }
.change .bar { height: 8px; border-radius: 4px; background: var(--sunk); margin-bottom: 4px; overflow: hidden; }
.change .bar i { display: block; height: 100%; border-radius: 4px; }
.change .bar.before i { background: var(--series-orig); }
.change .bar.after i { background: var(--accent); }
.change-key { display: flex; gap: 14px; font-size: .78rem; }
.change-key .k { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.change-key .k.before { background: var(--series-orig); }
.change-key .k.after { background: var(--accent); }

/* წრიული დიაგრამა: ნაჭრებს შორის 2px ზედაპირის ფერის ღრიჭო */
.pie { width: 100%; max-width: 240px; aspect-ratio: 1; display: block; }
.pie path, .pie circle { stroke: var(--surface); stroke-width: .9; stroke-linejoin: round; }
.pie path:hover, .pie circle:hover { opacity: .85; }
.pie-result, .pie-live { display: grid; gap: 18px; align-items: center; }
@media (min-width: 620px) { .pie-result, .pie-live { grid-template-columns: 220px minmax(0, 1fr); } }
.pie-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pie-legend li { display: flex; gap: 10px; align-items: baseline; }
.pie-legend .txt { flex: 1; min-width: 0; }
.pie-legend li.orig { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.sw { flex: 0 0 12px; width: 12px; height: 12px; border-radius: 3px; display: inline-block; align-self: center; }
.pie-sum { margin: 14px 0 0; }
.factor-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.factor-row input[type=text] { flex: 1; min-width: 0; }
.factor-row input[type=number] { width: 72px; flex: 0 0 72px; }
.factor-row.orig { margin-top: 12px; }
.factor-row.orig span:nth-child(2) { flex: 1; }
.pct-sign { color: var(--muted); }



/* ============ თვითშეფასება ============ */
.item { margin: 0; }
.item legend { font-weight: 600; display: flex; gap: 10px; align-items: baseline; padding: 0; margin-bottom: 10px; line-height: 1.4; }
.item.extra legend { font-weight: 400; color: var(--muted); }
.item-n { flex: 0 0 22px; color: var(--muted); font-size: .85rem; }
.choices { display: grid; gap: 6px; }
@media (min-width: 620px) { .choices { grid-template-columns: repeat(4, 1fr); } }
.choice { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .9rem; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input { width: auto; margin: 0; flex: 0 0 auto; }
.item .crisis { margin: 12px 0 0; }
.score { font-size: 2rem; line-height: 1; }
.meter { height: 8px; border-radius: 4px; background: var(--sunk); margin: 14px 0; overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 4px; background: var(--series-1); }
.answers { margin: 10px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.answers li span { display: block; }
.assess-card .latest { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 14px 0 4px; }
.subscales { margin: 6px 0 16px; }
.subscales td:last-child { text-align: right; white-space: nowrap; }
.item select { max-width: 220px; }
.history { width: 100%; height: auto; display: block; margin: 8px 0; }
.history .grid { stroke: var(--line); stroke-width: 1; }
.history .tick { fill: var(--muted); font-size: 11px; font-family: var(--mono); }
.history .line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.history .dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.history .dot:hover { r: 6; }
.history .dot.crisis { fill: var(--surface); stroke: var(--warn); stroke-width: 3; }

/* ============ სავარჯიშოები: ხელსაწყოები, კიბე, სუნთქვა ============ */
.tools { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tool { display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.tool:hover { text-decoration: none; border-color: var(--accent); }
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ladder li.next { border-color: var(--accent); }
.ladder .meter { margin: 10px 0 6px; }
.breath-steps { padding-left: 1.2em; display: grid; gap: 6px; }
.breath-wrap { display: grid; place-items: center; padding: 18px 0 6px; }
.breath { width: 180px; height: 180px; border-radius: 50%; background: var(--accent-soft);
          border: 2px solid var(--accent); transform: scale(.6); transition: transform 1s ease-in-out; }
.breath.in { transform: scale(1); transition-duration: var(--in, 4s); }
.breath.out { transform: scale(.6); transition-duration: var(--out, 6s); }
.breath-label { text-align: center; min-height: 1.6em; font-size: 1.1rem; }
@media (prefers-reduced-motion: reduce) { .breath, .breath.in, .breath.out { transition: none; transform: none; } }

/* ============ გაზიარება ============ */
.shared-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.steps-form ul[id] { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.steps-form ul[id] label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 0; }
.steps-form ul[id] input { width: auto; margin: 3px 0 0; }

/* fieldset-ის legend ჩარჩოს ხაზზე დგება — float-ით შიგნით გადადის, ბარათის ნაწილი ხდება */
.card.step > legend { float: left; width: 100%; padding: 0; margin: 0 0 12px; }
.card.step > legend + * { clear: both; }

/* ============ ახალი სახე (2026-11-03): ილუსტრაციები და მთავარი გვერდი ============ */
/* მინა აღარ არის — ბუნდოვანება ყველგან გამორთულია, ზედაპირი მკვრივია */
.top, .tabbar, .menu > summary, .menu-pop, .glassy, .card, .dir, .sp, .note-row, .stat, .statbar > div,
.searchbox, .chip, .msg, .offer, .fmt-row, .reveal, .locked, .checkin, .help-card,
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=email], select, textarea {
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.top { background: var(--ground); border-bottom-color: transparent; }
.tabbar { background: var(--surface); border-top-color: var(--line); }

/* unDraw-ის ილუსტრაცია: ძირითადი ფერი = currentColor */
.illus { display: block; width: 100%; height: auto; color: var(--accent); }
.page-illus { width: min(220px, 40%); flex: 0 0 auto; align-self: center; }
@media (max-width: 559px) { .page-illus { display: none; } }

/* მთავარი გვერდი */
.home-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; padding: 20px 0 8px; }
.home-hero h1 { font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 3rem); line-height: 1.14; margin: 0; }
.home-hero h1 mark { background: linear-gradient(transparent 55%, var(--mark) 55%); color: inherit; padding: 0 .08em; }
.home-hero .lede { font-size: 1.08rem; line-height: 1.7; margin: 18px 0 24px; max-width: 34em; }
.home-hero .acts { display: flex; gap: 12px; flex-wrap: wrap; }
.home-hero .btn { padding: 13px 22px; font-size: 1rem; }
.home-hero .illus { max-width: 460px; margin-left: auto; }
.home-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .9rem; }
.home-trust li { display: flex; gap: 8px; align-items: center; }
.home-trust li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.home-paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.path-tile { border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--tile-ink); min-height: 200px; }
.path-tile:hover { text-decoration: none; transform: translateY(-3px); }
.path-tile .num { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.6); color: var(--tile-ink); display: grid; place-items: center; font-weight: 800; }
.path-tile b { font-size: 1.2rem; font-weight: 800; }
.path-tile small { color: inherit; opacity: .85; line-height: 1.5; font-size: .92rem; }
.path-tile .go { margin-top: auto; font-weight: 700; }
.path-tile.t1 { background: var(--tile-peach); } .path-tile.t2 { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.path-tile.t3 { background: var(--tile-sky); color: var(--tile-ink-on-dark); } .path-tile.t4 { background: var(--tile-sun); }
.home-abc { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.home-abc .face { width: 60px; height: 60px; }
.home-abc .big { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1.45; margin: 0; }
@media (prefers-reduced-motion: no-preference) { .path-tile, .dir, .sp { transition: transform .15s ease, border-color .15s ease; } }
@media (max-width: 899px) { .home-paths { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 699px) {
  .home-hero { grid-template-columns: 1fr; gap: 12px; }
  .home-hero .illus { max-width: 300px; margin: 0 auto; order: -1; }
}
@media (max-width: 479px) { .home-paths { grid-template-columns: 1fr; } .path-tile { min-height: 0; } .home-abc { grid-template-columns: 1fr; } }
/* ქალაქის არჩევა ძიების ველში — ტექსტის ველს ადგილი არ უნდა წაართვას */
.searchbox select { width: auto; flex: 0 0 auto; background: transparent; border: 0; box-shadow: none; color: var(--muted); }
.searchbox input { flex: 1 1 auto; min-width: 0; }
/* სათაური და ილუსტრაცია ერთ რიგში — გრძელი ტექსტი ილუსტრაციას ქვემოთ არ ჩამოაგდებს */
.page-head:has(.page-illus) { flex-wrap: nowrap; align-items: center; }
.page-head:has(.page-illus) > div:first-child { min-width: 0; }
@media (max-width: 559px) { .page-head:has(.page-illus) { flex-wrap: wrap; } }

/* ============ კითხვარი: ერთი კითხვა ეკრანზე (assess.js) ============ */
.wiz-bar { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 90px; }
.wiz-count { font-weight: 700; color: var(--muted); font-size: .9rem; }
.wiz-track { height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.wiz-track i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) { .wiz-track i { transition: width .25s ease; } }
.wizard [data-q] legend { font-size: 1.15rem; line-height: 1.45; margin-bottom: 16px; }
.wizard [data-q] legend:focus { outline: none; }
.wizard .choices { grid-template-columns: 1fr; gap: 10px; }
.wizard .choice { padding: 14px 16px; font-size: 1rem; min-height: 52px; border-radius: 14px; }
.wiz-nav { display: flex; justify-content: space-between; gap: 12px; }
.wiz-nav [data-next] { margin-left: auto; }
.wiz-review ol { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 10px; }
.wiz-review li span { display: block; }
.wiz-review li.missing b { color: var(--danger); }
.wiz-review b:focus { outline: none; }
/* hidden-ს .btn-ის display ჯაბნიდა — ნაბიჯების ფორმაში დამალული მართლა დამალულია */
.wizard [hidden], .wiz-nav [hidden] { display: none !important; }
/* legend ბარათის ჩარჩოზე არ უნდა იჯდეს */
.wizard [data-q] legend { float: left; width: 100%; padding: 0; }
.wizard [data-q] legend + * { clear: both; }
/* ფორმა ნაბიჯებად (steps.js) */
.wizard-steps details > summary { list-style: none; cursor: default; pointer-events: none; }
.wizard-steps details > summary::-webkit-details-marker { display: none; }
.wizard-steps .wiz-nav { flex-wrap: wrap; }
.wizard-steps [data-skip] { margin-left: auto; }
.wizard-steps [data-skip] + [data-next], .wizard-steps [data-skip][hidden] + [data-next] { margin-left: 0; }
.wizard-steps [data-skip][hidden] + [data-next] { margin-left: auto; }

/* ============ განწყობის დღიური ============ */
.m0,.m1,.m2,.m3,.m4,.m5,.m6,.m7,.m8,.m9,.m10 { --mc: var(--mood-5); }
.m0 { --mc: var(--mood-0); }
.m1 { --mc: color-mix(in oklab, var(--mood-0) 80%, var(--mood-5)); }
.m2 { --mc: color-mix(in oklab, var(--mood-0) 60%, var(--mood-5)); }
.m3 { --mc: color-mix(in oklab, var(--mood-0) 40%, var(--mood-5)); }
.m4 { --mc: color-mix(in oklab, var(--mood-0) 20%, var(--mood-5)); }
.m6 { --mc: color-mix(in oklab, var(--mood-10) 20%, var(--mood-5)); }
.m7 { --mc: color-mix(in oklab, var(--mood-10) 40%, var(--mood-5)); }
.m8 { --mc: color-mix(in oklab, var(--mood-10) 60%, var(--mood-5)); }
.m9 { --mc: color-mix(in oklab, var(--mood-10) 80%, var(--mood-5)); }
.m10 { --mc: var(--mood-10); }
.mood-q { font-size: 1.3rem; margin: 0; }
.mood-pick { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; }
.mood-opt { position: relative; margin: 0; cursor: pointer; }
.mood-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mood-opt span { display: grid; place-items: center; height: 48px; border-radius: 14px; background: var(--mc);
  color: var(--tile-ink); font-weight: 700; border: 2px solid transparent; }
.mood-opt input:checked + span { border-color: var(--tile-ink); transform: scale(1.06); box-shadow: 0 4px 12px -6px rgba(0,0,0,.4); }
.mood-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) { .mood-opt span { transition: transform .12s ease; } }
.mood-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 479px) { .mood-pick { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.week-strip { list-style: none; padding: 14px; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
.week-strip li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.week-strip li.today .wd { color: var(--ink); font-weight: 700; }
.week-strip .wk-dot { width: min(38px, 100%); aspect-ratio: 1; height: auto; border-radius: 50%; display: grid; place-items: center; background: var(--mc);
  color: var(--tile-ink); font-weight: 700; }
.week-strip a.wk-dot:hover { text-decoration: none; transform: scale(1.08); }
.week-strip .wk-dot.empty { background: transparent; border: 2px dashed var(--line); }
.big-dot { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--mc);
  color: var(--tile-ink); font-size: 1.3rem; flex: 0 0 auto; }

/* ============ მთავარი: მაკეტის ბლოკები (2026-11-04) ============ */
.h-big { font-size: 1.6rem; margin: 0 0 14px; }
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how { display: flex; flex-direction: column; gap: 8px; }
.how h3 { margin: 0; font-size: 1.15rem; }
.how p { margin: 0; }
.how-n { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-weight: 800; }
.how-n.t1 { background: var(--tile-peach); color: var(--tile-ink); }
.how-n.t2 { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.how-n.t3 { background: var(--tile-sky); color: var(--tile-ink-on-dark); }

.abc-try { padding: 28px; }
.abc-try > p { margin-top: -6px; }
.abc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.abc-card { border-radius: 20px; padding: 20px; margin: 0; border: 0; display: flex; flex-direction: column; gap: 8px; color: var(--tile-ink); }
.abc-card p { margin: 0; }
.abc-card.t1 { background: var(--tile-peach); }
.abc-card.t4 { background: var(--tile-sun); }
.abc-card.t2 { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.abc-l { font-size: 2rem; font-weight: 800; line-height: 1; }
.abc-opt { display: flex; gap: 10px; align-items: center; margin: 0; padding: 12px 14px; min-height: 44px; border-radius: 14px;
  background: rgba(255, 255, 255, .55); border: 2px solid transparent; cursor: pointer; font-weight: 600; color: var(--tile-ink); }
.abc-opt:has(input:checked) { background: #FFFFFF; border-color: var(--tile-ink); }
.abc-opt input { accent-color: var(--tile-ink); margin: 0; }
/* სკრიპტის/:has-ის გარეშე ორივე შედეგი ჩანს; :has-ით — მხოლოდ არჩეული ფიქრის */
.abc-try:has(#abc-a:checked) .abc-c-b, .abc-try:has(#abc-b:checked) .abc-c-a { display: none; }

.lesson-prev { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.lesson-prev .card { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.lesson-prev .card:hover { text-decoration: none; border-color: var(--accent); }
.lesson-prev b { font-size: 1.08rem; }

.band { border-radius: 30px; padding: 32px 36px; display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; }
.band > div { flex: 1 1 320px; min-width: 0; }
.band p { margin: 0; }
.band-violet { background: var(--tile-violet); color: #FFFFFF; }
.band-violet p { color: #EBDDEE; }
.band-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; flex: 1 1 420px; min-width: 0; }
.band-list li { background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.band-list svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: var(--pop); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.band-green { background: var(--tile-mint); color: #FFFFFF; }
.band-green h2 { margin: 0 0 4px; font-size: 1.4rem; }
.calm-orb { width: 110px; height: 110px; flex: 0 0 auto; }
.band-btn { background: #FFFFFF; color: var(--tile-ink); border-color: #FFFFFF; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; }
.home-trust li::before { background: var(--pop); }

@media (max-width: 859px) {
  .how-steps, .abc-grid, .lesson-prev { grid-template-columns: 1fr; }
  .band { padding: 24px; }
}
/* სავარჯიშოების ბარათები (მაკეტი 2026-11-04) */
.tools { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tool { gap: 8px; padding: 20px; }
.tool b { font-size: 1.08rem; }
.tool > span.muted { font-size: .93rem; line-height: 1.5; }
.tool-top { display: flex; justify-content: space-between; align-items: center; }
.tool-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--sunk); color: var(--tile-ink); }
.tool-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-ic.t1 { background: var(--tile-peach); } .tool-ic.t4 { background: var(--tile-sun); }
.tool-ic.t2 { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.tool-ic.t3 { background: var(--tile-sky); color: var(--tile-ink-on-dark); }
.tool-ic.t5 { background: var(--tile-violet); color: #FFFFFF; }
.tool-time { font-size: .8rem; color: var(--muted); background: var(--sunk); border-radius: 999px; padding: 2px 10px; }
.tool-st { margin-top: auto; }
.tool-calm { background: var(--tile-mint); color: var(--tile-ink-on-dark); border-color: transparent; }
.tool-calm .tool-ic { background: #FFFFFF; }
.tool-calm .tool-time { background: #FFFFFF; color: var(--tile-ink); }
.lesson-n { background: var(--tile-peach); color: var(--tile-ink); border-radius: 12px; font-family: var(--sans); font-weight: 800; }
.quiz-band { background: var(--tile-sun); color: var(--tile-ink); border-color: transparent; }
.quiz-band small.muted { color: var(--tile-ink); opacity: .8; }
.quiz-band .btn.ghost { background: #FFFFFF; color: var(--tile-ink); border-color: #FFFFFF; }
.tool-calm small, .tool-calm b, .tool-calm span { color: inherit; }
/* გაკვეთილების პროგრესი */
.learn-progress { display: flex; flex-direction: column; gap: 8px; }
.learn-track { height: 10px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.learn-track i { display: block; height: 100%; background: var(--tile-mint); border-radius: 999px; }
.lesson-n.done { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.lesson-n.done svg, .read-done svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lesson-card.is-next { background: var(--tile-peach); color: var(--tile-ink); border-color: transparent; }
.lesson-card.is-next small.muted { color: var(--tile-ink); }
.pop-tag { background: var(--pop); color: var(--tile-ink); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.read-mark { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.read-done { display: inline-flex; gap: 8px; align-items: center; color: var(--pine); font-weight: 700; }
.lesson-card.is-next .lesson-n { background: #FFFFFF; color: var(--tile-ink); }
/* ბოლო ჩანაწერები (სავარჯიშოები) */
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.recent-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 18px; color: var(--ink); }
.recent-item:hover { text-decoration: none; border-color: var(--accent); }
.recent-text { flex: 1 1 260px; min-width: 0; }
.recent-tag { font-size: .8rem; border-radius: 999px; padding: 2px 10px; color: var(--tile-ink); background: var(--sunk); white-space: nowrap; }
.recent-tag.k-thought { background: var(--pop); }
.recent-tag.k-mood { background: var(--tile-sun); }
.recent-tag.k-activity { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.recent-tag.k-ladder { background: var(--tile-sky); color: var(--tile-ink-on-dark); }
.recent-tag.k-pie { background: var(--tile-violet); color: #FFFFFF; }
/* დღის ცდომილება */
.daily-error { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px 28px;
  display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.daily-error .eyebrow { display: flex; align-items: center; gap: 8px; }
.daily-error .eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pop); }
.daily-error > div { flex: 1 1 340px; min-width: 0; }
.daily-error h2 { margin: 2px 0 6px; font-size: 1.35rem; }
.daily-error p { margin: 0 0 6px; }
.daily-ex { color: var(--muted); font-style: italic; }
.daily-error .band-btn { background: var(--tile-sun); border-color: var(--tile-sun); }

/* ============ დანარჩენი გვერდები ახალ სტილზე (2026-11-04) ============ */
/* ბარათები, იარლიყები, ნიშნები — ერთი რბილი, მომრგვალებული ენა */
.card, .dir, .sp, .stat, .offer, .help-card, .note-row { border-radius: 22px; }
.tag { border-radius: 999px; border: 0; background: var(--sunk); color: var(--muted); padding: 2px 10px; }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.badge { border-radius: 999px; padding: 3px 10px; }
input[type=text], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=email], select, textarea { border-radius: 12px; }
.btn { border-radius: 14px; }
.btn.small { border-radius: 12px; }
h1 { font-size: clamp(1.55rem, 3vw, 2rem); }

/* სპეციალისტის ბარათი და პროფილი */
.sp { padding: 18px; gap: 16px; }
.sp .name { font-family: var(--sans); font-weight: 800; }
.avatar { background: var(--tile-peach); color: var(--tile-ink); font-family: var(--sans); font-weight: 800; }
.sp:nth-child(3n+2) .avatar { background: var(--tile-sun); }
.sp:nth-child(3n+3) .avatar { background: var(--pop); }
.dir { padding: 18px; }
.dir b { font-family: var(--sans); font-weight: 800; }
.dir .count { font-family: var(--sans); font-weight: 700; color: var(--accent); }

/* სლოტები */
.slot { border-radius: 12px; font-family: var(--sans); font-weight: 600; padding: 8px 12px; min-height: 40px; }
.slot:hover:not(.static) { border-color: var(--accent); }

/* სტატისტიკა და ფილტრები */
.stat { padding: 16px 18px; }
.stat b { font-family: var(--sans); font-weight: 800; color: var(--ink); }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; }
.chip:hover { border-color: var(--accent); text-decoration: none; }

/* შეტყობინებები */
.msg { border-radius: 14px; border-left: 0; padding: 12px 16px; }
.msg.success { background: var(--pine-soft); }

/* სიები-ცხრილები */
table.list { border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
table.list th { background: var(--sunk); }

/* ფუტერი */
.foot { border-top: 1px solid var(--line); }
table.list td:first-child, table.list th:first-child { padding-left: 14px; } table.list td:last-child, table.list th:last-child { padding-right: 14px; } table.list tr:last-child td { border-bottom: 0; }
/* შიშის კიბე */
.ladder-row { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; align-items: start;
  padding: 12px 0; border-top: 1px dashed var(--line); }
.ladder-row:first-of-type { border-top: 0; }
@media (max-width: 559px) { .ladder-row { grid-template-columns: 1fr; } }
.stairs { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding: 16px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; }
.stair { flex: 1 1 0; min-height: 26px; border-radius: 10px 10px 4px 4px; background: color-mix(in srgb, var(--tile-sky) 30%, var(--surface));
  display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; font-size: .78rem; color: var(--ink); }
.stair.done { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.stair.next { background: var(--tile-peach); color: var(--tile-ink); }
.stair.goal { flex: 0 0 44px; height: 100%; background: var(--tile-sun); align-items: center; color: var(--tile-ink); }
.stair.goal svg { width: 22px; height: 22px; fill: var(--pop); }
.ladder li.next { border-color: var(--tile-peach); }
.ladder-row + .ladder-row .help { display: none; }
.ladder .meter i { background: var(--tile-sky); }
.ladder li.done .meter i { background: var(--tile-mint); }
.ladder li.next .meter i { background: var(--tile-peach); }
/* შევსების მალსახმობები */
.fill-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; }
.fill-chips .chip { font: inherit; font-size: .88rem; cursor: pointer; min-height: 36px; }
.fill-chips .chip.active { background: var(--btn); color: var(--btn-ink); border-color: var(--btn-edge); }
/* დიაგრამის ადგილი ცარიელზეც რჩება — თორემ ახსნების სვეტი 220px-ში იჭყლიტება */
.pie-live > [data-pie-preview][hidden] { display: block !important; visibility: hidden; }
/* კაბინეტის შიდა გვერდები (2026-11-04) */
.cab-head { align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.cab-head p { margin: 6px 0 0; }
.card-title { font-size: 1.05rem; margin: 0 0 12px; }
.svc-list { display: flex; flex-direction: column; gap: 12px; }
.svc { display: grid; grid-template-columns: auto 1fr auto auto; gap: 14px; align-items: center; padding: 16px 18px; }
.svc.off { opacity: .7; }
.svc-meta { font-size: .86rem; margin-top: 2px; }
.svc-act { display: flex; gap: 8px; }
.price-pill { font-weight: 800; background: var(--sunk); border-radius: 999px; padding: 6px 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .svc { grid-template-columns: auto 1fr; }
  .svc .price-pill { justify-self: start; grid-column: 2; }
  .svc-act { grid-column: 1 / -1; }
}
.cab-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .cab-cols { grid-template-columns: 1fr; } }
.hours-rows { display: flex; flex-direction: column; gap: 8px; }
.hr-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 10px 8px 14px; border-radius: 16px; background: var(--ground); border: 1px solid var(--line); }
.hr-row .wd { flex: 1 1 130px; display: flex; gap: 10px; align-items: center; font-weight: 700; margin: 0; cursor: pointer; }
.hr-row .wd input { width: 20px; height: 20px; accent-color: var(--btn); }
.hr-times { display: flex; align-items: center; gap: 8px; flex: 0 1 260px; }
.hr-times select { min-width: 0; }
.hr-dash { color: var(--muted); }
.hr-row:has(.wd input:not(:checked)) { background: transparent; border-style: dashed; }
.hr-row:has(.wd input:not(:checked)) .wd span { color: var(--muted); font-weight: 600; }
.hr-row:has(.wd input:not(:checked)) .hr-times { opacity: .45; }
.hr-row .err { flex-basis: 100%; }
.off-days { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.off-days li { display: flex; align-items: center; gap: 8px; background: var(--sunk); border-radius: 999px; padding: 4px 6px 4px 14px; font-size: .9rem; }
.off-days form { margin: 0; }
.off-days .x { border: 0; background: var(--surface); color: var(--ink); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.05rem; line-height: 1; }
.off-days .x:hover { color: var(--danger); }
.preview-card { position: sticky; top: 16px; }
.preview-card .help { margin: -8px 0 12px; }
.preview-card .times { display: flex; flex-wrap: wrap; gap: 6px; }
.preview-card .slot { min-height: 32px; padding: 4px 10px; font-size: .84rem; }
@media (max-width: 900px) { .preview-card { position: static; } }
.money-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin: 6px 0 16px; }
.money-strip > div { background: var(--surface); padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.money-strip small { color: var(--muted); font-size: .78rem; }
.money-strip b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.money-strip .mine { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.money-strip .mine small { color: inherit; opacity: .85; }
.money-strip .mine .price { font-family: var(--sans); font-weight: 800; }
.when-card { background: var(--tile-sky); color: var(--tile-ink-on-dark); border-color: transparent; }
.when-card .eyebrow, .when-card small.muted { color: inherit; opacity: .85; }
.when-card .when { font-size: 1.3rem; }
.act-card { border: 2px solid var(--tile-sun); }
.cred-name { display: flex; align-items: center; gap: 10px; }
.cred-name .tool-ic { width: 40px; height: 40px; border-radius: 12px; }
.cred-name .tool-ic svg { width: 20px; height: 20px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 700; border: 1px solid var(--line); background: var(--sunk); color: var(--ink); border-radius: 999px; padding: 6px 14px; margin-right: 10px; cursor: pointer; }
.fmt-row:has(.fmt-toggle input:checked) { border-color: var(--btn); background: var(--surface); }
.fmt-row:not(:has(.fmt-toggle input:checked)) .fmt-fields { opacity: .55; }
.fmt-toggle input { accent-color: var(--btn); }
/* მოსანიშნი ველი: ახსნა და შეცდომა ქვემოთ, ვიწრო სვეტად არ იჭყლიტება */
.field.inline { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.field.inline input[type=checkbox] { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--btn); }
.field.inline > label { flex: 1 1 0; min-width: 0; }
.field.inline > .help, .field.inline > .err { flex-basis: 100%; padding-left: 30px; margin-top: 2px; }
/* კლიენტის ჩაწერები (2026-11-04) */
.ord-list { display: flex; flex-direction: column; gap: 10px; }
.ord { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; color: inherit; text-decoration: none; }
.ord:hover { border-color: var(--accent); }
.ord-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ord-meta { font-size: .86rem; }
.ord-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ord-date { width: 48px; height: 48px; border-radius: 15px; background: var(--tile-peach); color: var(--tile-ink); display: grid; place-content: center; text-align: center; line-height: 1; }
.ord-date b { font-size: 1.15rem; font-weight: 800; }
.ord-date small { font-size: .7rem; opacity: .8; margin-top: 2px; }
.ord-list.past .ord { opacity: .8; }
.ord-list.past .ord-date { background: var(--sunk); color: var(--ink); }
@media (max-width: 560px) {
  .ord { grid-template-columns: auto 1fr; }
  .ord-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
}
.next-card { display: flex; flex-direction: column; gap: 4px; background: var(--tile-sky); color: var(--tile-ink-on-dark); border-radius: 22px; padding: 18px 20px; text-decoration: none; }
.next-card:hover { color: var(--tile-ink-on-dark); filter: brightness(1.06); }
.next-card .eyebrow { color: inherit; opacity: .85; }
.next-card .when { font-size: 1.5rem; font-weight: 800; }
.next-go { margin-top: 6px; font-weight: 700; font-size: .92rem; }
.ord-head { gap: 10px; flex-wrap: wrap; }
.ord-sub .price-pill { margin-left: 6px; }
.ord-sub .price-pill { color: var(--ink); }
.ord-actions { flex-wrap: wrap; }
/* მიმდინარეობა — ნომრიანი ნაბიჯები ხაზით */
.timeline { counter-reset: st; gap: 0; }
.timeline li { counter-increment: st; position: relative; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; padding: 6px 0; min-height: 44px; }
.timeline li::before { content: counter(st); width: 30px; height: 30px; margin: 0; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; font-size: .8rem; font-weight: 800; color: var(--muted); position: relative; z-index: 1; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 36px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li.done::before { content: "✓"; background: var(--pine); border-color: var(--pine); color: #FFFFFF; }
.timeline li.done:not(:last-child)::after { background: var(--pine); }
.timeline li.now { color: var(--ink); font-weight: 700; }
.timeline li.now::before { border-color: var(--btn); background: var(--btn); color: var(--btn-ink); }
.ord-when { margin-bottom: 16px; }
.ord-date small { opacity: 1; font-weight: 700; }
.timeline li.done::before { color: var(--surface); }
/* შეტყობინებები (2026-11-04) */
.note-list { display: flex; flex-direction: column; gap: 8px; }
.note-day { margin-top: 22px; }
.note-row { flex-direction: row; align-items: center; gap: 14px; border-left-width: 1px; padding: 12px 16px; text-decoration: none; }
.note-row.unread { border-left-color: var(--line); background: var(--surface); box-shadow: inset 0 0 0 1px var(--btn); }
.note-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.note-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.note-row:not(.unread) .note-top b { font-weight: 600; }
.note-body { font-size: .88rem; overflow-wrap: anywhere; }
.note-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; align-self: flex-start; margin-top: 2px; }
.note-new { font-size: .72rem; font-weight: 800; background: var(--pop); color: var(--tile-ink); border-radius: 999px; padding: 1px 8px; }
.note-ic { width: 40px; height: 40px; border-radius: 13px; flex: 0 0 auto; }
.note-ic svg { width: 20px; height: 20px; }
.note-ic.tone-ok { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.note-ic.tone-time { background: var(--tile-sun); }
.note-ic.tone-new { background: var(--tile-peach); }
.note-ic.tone-doc { background: var(--tile-sky); color: var(--tile-ink-on-dark); }
.note-ic.tone-off { background: var(--sunk); color: var(--muted); }
.note-ic.tone-alert { background: var(--sunk); color: var(--danger); }
.note-row:not(.unread) .note-ic { opacity: .75; }
/* გაზიარება: ტიპის ხატულა სათაურში */
.share-kind legend { display: flex; align-items: center; gap: 10px; font-weight: 700; padding: 0; margin-bottom: 10px; float: left; width: 100%; }
.share-kind legend + * { clear: both; }
.share-kind .tool-ic { width: 40px; height: 40px; border-radius: 12px; }
.share-kind .tool-ic svg { width: 20px; height: 20px; }
.share-note { margin: 10px 0 18px; }
/* ABC-ის სცენა (learn/scenes/abc.html): მდგომარეობა რადიოთია, :has-ით — სკრიპტის გარეშე */
@property --face { syntax: "<color>"; inherits: true; initial-value: #F2C4A2; }
.abcs { display: flex; flex-direction: column; gap: 10px; }
.abcs > h2 { margin: 0; }
.abcs > p { margin: 0; }
.abcs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 14px; align-items: start; }
@media (max-width: 700px) { .abcs-grid { grid-template-columns: 1fr; } }
.abcs-stage { position: relative; border-radius: 22px; overflow: hidden; background: var(--sunk); border: 1px solid var(--line); transition: background-color .6s ease; }
.abcs-stage svg { display: block; width: 100%; height: auto; --peep-line: #2A1830; --face: #F2C4A2; }
.abcs-cloud { position: absolute; left: 4%; top: 4%; width: 60%; background: var(--surface); color: var(--ink); border-radius: 26px; padding: 8px 12px; font-weight: 600; font-size: .84rem; line-height: 1.4; box-shadow: 0 0 0 2px var(--line); }
.abcs-cloud::before, .abcs-cloud::after { content: ""; position: absolute; background: var(--surface); border-radius: 50%; box-shadow: inherit; }
.abcs-cloud::before { width: 20px; height: 20px; right: -6px; bottom: -20px; }
.abcs-cloud::after { width: 12px; height: 12px; right: -22px; bottom: -36px; }
.abcs-cloud small { display: block; font-size: .68rem; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.abcs-t, .abcs .v { display: none; }
.abcs-floor { fill: var(--line); opacity: .7; }
.abcs-phone rect { fill: #2A1830; } .abcs-phone .scr { fill: #FFFFFF; } .abcs-phone .msg { fill: #BFD3E6; }
.abcs-phone .ticks { fill: none; stroke: #7A5A72; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.abcs-fig { opacity: 0; transform: translateY(30px); transition: opacity .45s ease, transform .6s cubic-bezier(.3,.7,.3,1); }
.abcs-fig .body { --peep-fill: #BFD3E6; }
.abcs-fig .head { --peep-fill: var(--face); transition: --face .8s ease; }
.abcs-steam path { fill: none; stroke: var(--emo-anger); stroke-width: 22; stroke-linecap: round; }
.abcs-drop { fill: #8FB8DE; stroke: #2A1830; stroke-width: 8; }
.abcs-tense path { fill: none; stroke: var(--emo-anx); stroke-width: 18; stroke-linecap: round; stroke-linejoin: round; }
.abcs-steps { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.abcs-step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 14px; margin: 0; min-width: 0; }
.abcs-step h3 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin: 0 0 6px; }
.abcs-step p { margin: 0; }
.abcs-l { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-family: var(--sans); font-weight: 800; font-size: .9rem; }
.abcs-l.la { background: var(--tile-peach); color: var(--tile-ink); } .abcs-l.lb { background: var(--btn); color: var(--btn-ink); } .abcs-l.lc { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.abcs-choices { display: flex; flex-direction: column; gap: 6px; }
.abcs-choices legend { padding: 0; float: left; width: 100%; }
.abcs-choice { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--ground); cursor: pointer; font-weight: 600; font-size: .93rem; margin: 0; }
.abcs-choice input { position: absolute; opacity: 0; pointer-events: none; }
.abcs-choice .abcs-dot { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); margin-top: 2px; }
.abcs-choice:hover { border-color: var(--accent); }
.abcs-choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.abcs-choice:has(input:checked) { border-color: var(--btn); background: var(--surface); }
.abcs-choice:has(input:checked) .abcs-dot { border-color: var(--btn); background: var(--btn); box-shadow: inset 0 0 0 3px var(--surface); }
.abcs-c { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 460px) { .abcs-c { grid-template-columns: 1fr; } }
.abcs-c > div { background: var(--ground); border-radius: 12px; padding: 8px 10px; min-width: 0; font-size: .9rem; font-weight: 600; }
.abcs .k { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.abcs-therm { margin-top: 10px; }
.abcs-therm .row b { font-variant-numeric: tabular-nums; }
.abcs-therm .bar { height: 10px; border-radius: 999px; background: var(--sunk); overflow: hidden; margin-top: 4px; }
.abcs-therm .fill { height: 100%; width: 0; border-radius: inherit; transition: width .7s cubic-bezier(.3,.7,.3,1), background-color .5s; }
.abcs-therm .scale { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); }
.abcs-moral { font-family: var(--serif); font-weight: 600; text-align: center; }
/* მდგომარეობები */
.abcs:has(#abcs-anger:checked) .abcs-stage { background: var(--emo-anger-soft); }
.abcs:has(#abcs-anx:checked) .abcs-stage { background: var(--emo-anx-soft); }
.abcs:has(#abcs-calm:checked) .abcs-stage { background: var(--emo-calm-soft); }
.abcs:has(#abcs-anger:checked) .abcs-cloud { box-shadow: 0 0 0 3px var(--emo-anger); }
.abcs:has(#abcs-anx:checked) .abcs-cloud { box-shadow: 0 0 0 3px var(--emo-anx); }
.abcs:has(#abcs-calm:checked) .abcs-cloud { box-shadow: 0 0 0 3px var(--emo-calm); }
.abcs:has(#abcs-anger:checked) .f-anger, .abcs:has(#abcs-anx:checked) .f-anx, .abcs:has(#abcs-calm:checked) .f-calm { opacity: 1; transform: none; }
.abcs:has(#abcs-anger:checked) .f-anger .head { --face: #EA7457; }
.abcs:has(#abcs-anx:checked) .f-anx .head { --face: #EBD3BE; }
.abcs:has(#abcs-anger:checked) :is(.t-anger, .v-anger), .abcs:has(#abcs-anx:checked) :is(.t-anx, .v-anx), .abcs:has(#abcs-calm:checked) :is(.t-calm, .v-calm) { display: block; }
.abcs-therm b .v { display: none !important; }
.abcs:has(#abcs-anger:checked) .abcs-therm b .v-anger, .abcs:has(#abcs-anx:checked) .abcs-therm b .v-anx, .abcs:has(#abcs-calm:checked) .abcs-therm b .v-calm { display: inline !important; }
.abcs:has(#abcs-anger:checked) .fill { width: 75%; background: var(--emo-anger); }
.abcs:has(#abcs-anx:checked) .fill { width: 70%; background: var(--emo-anx); }
.abcs:has(#abcs-calm:checked) .fill { width: 25%; background: var(--emo-calm); }
@keyframes abcs-rise { from { transform: translateY(6px); opacity: .2; } 50% { opacity: 1; } to { transform: translateY(-8px); opacity: 0; } }
@keyframes abcs-drip { 0%, 60% { transform: translateY(0); } 100% { transform: translateY(10px); opacity: 0; } }
.abcs:has(#abcs-anger:checked) .abcs-steam path { animation: abcs-rise 1.6s ease-in-out infinite; transform-box: fill-box; }
.abcs:has(#abcs-anger:checked) .abcs-steam path:nth-child(2) { animation-delay: .5s; }
.abcs:has(#abcs-anx:checked) .abcs-drop { animation: abcs-drip 2.4s ease-in infinite; transform-box: fill-box; }
@media (prefers-reduced-motion: reduce) {
  .abcs *, .abcs-stage { transition: none !important; animation: none !important; }
}
/* ბრაუზერი :has-ის გარეშე — ცარიელი სცენის ნაცვლად ერთი მდგომარეობა (შფოთვა) */
@supports not selector(:has(a)) {
  .abcs .f-anx { opacity: 1; transform: none; }
  .abcs .t-anx, .abcs .v-anx { display: block; }
  .abcs .fill { width: 70%; background: var(--emo-anx); }
}
/* ABCDE-ის სცენა (learn/scenes/abcde.html): B → D → E, იგივე .abcs-* სახე */
.abcds-tabs { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.abcds-tabs .abcs-choice { align-items: center; flex: 1 1 140px; justify-content: center; }
.abcs-l.ld { background: var(--tile-sky); color: var(--tile-ink-on-dark); } .abcs-l.le { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.abcds-panel { display: none; }
.abcds-q { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.abcds-q li { background: var(--ground); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; font-size: .92rem; }
.abcds-q b { font-size: .8rem; color: var(--muted); }
.abcds-lens circle { fill: rgba(255,255,255,.35); stroke: #2A1830; stroke-width: 22; }
.abcds-lens path { stroke: #2A1830; stroke-width: 30; stroke-linecap: round; }
.abcds-therm .bar { position: relative; }
.abcds-therm .was { position: absolute; left: 70%; top: 0; bottom: 0; width: 3px; background: var(--ink); opacity: 0; }
.abcds-therm .scale { position: relative; }
.abcds-therm .was-l { position: absolute; left: 70%; transform: translateX(-50%); opacity: 0; font-weight: 700; }
.abcds:has(#abcds-b:checked) .abcs-stage { background: var(--emo-anx-soft); }
.abcds:has(#abcds-d:checked) .abcs-stage { background: var(--sunk); }
.abcds:has(#abcds-e:checked) .abcs-stage { background: var(--emo-calm-soft); }
.abcds:has(#abcds-b:checked) .abcs-cloud { box-shadow: 0 0 0 3px var(--emo-anx); }
.abcds:has(#abcds-d:checked) .abcs-cloud { box-shadow: 0 0 0 3px var(--tile-sky); }
.abcds:has(#abcds-e:checked) .abcs-cloud { box-shadow: 0 0 0 3px var(--emo-calm); }
.abcds:has(#abcds-b:checked) .f-b, .abcds:has(#abcds-d:checked) .f-d, .abcds:has(#abcds-e:checked) .f-e { opacity: 1; transform: none; }
.abcds:has(#abcds-b:checked) .f-b .head { --face: #EBD3BE; }
.abcds:has(#abcds-b:checked) :is(.t-b, .p-b), .abcds:has(#abcds-d:checked) :is(.t-d, .p-d), .abcds:has(#abcds-e:checked) :is(.t-e, .p-e) { display: block; }
.abcds:has(#abcds-b:checked) .abcs-therm b .v-b, .abcds:has(#abcds-d:checked) .abcs-therm b .v-d, .abcds:has(#abcds-e:checked) .abcs-therm b .v-e { display: inline !important; }
.abcds:has(#abcds-b:checked) .fill { width: 70%; background: var(--emo-anx); }
.abcds:has(#abcds-d:checked) .fill { width: 55%; background: var(--emo-anx); }
.abcds:has(#abcds-e:checked) .fill { width: 30%; background: var(--emo-calm); }
.abcds:has(#abcds-d:checked, #abcds-e:checked) :is(.was, .was-l) { opacity: 1; }
.abcds:has(#abcds-b:checked) .abcs-drop { animation: abcs-drip 2.4s ease-in infinite; transform-box: fill-box; }
@supports not selector(:has(a)) {
  .abcds .f-b, .abcds .t-b, .abcds .p-b { opacity: 1; transform: none; display: block; }
}
.abcds .abcs-cloud { width: 50%; }
/* სხეულის რუკა (learn/scenes/body.html): ნაწილი რადიოთია, ორი შესასვლელით — წერტილი სილუეტზე და სიის ღილაკი */
.bmap-stage { background: var(--sunk); padding: 16px; }
.bmap-fig { position: relative; width: min(100%, 280px); margin: 0 auto; }
.bmap-fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.bmap-body > * { fill: var(--surface); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.bmap-glow > * { fill: var(--emo-anger); opacity: 0; transition: opacity .4s ease; filter: blur(8px); }
.bmap-heart path { fill: none; stroke: var(--emo-anger); stroke-width: 3; opacity: 0; transition: opacity .3s; }
.bmap-spot { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; cursor: pointer;
  background: color-mix(in srgb, var(--btn) 20%, transparent); border: 2px solid var(--btn); }
.bmap-spot::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--btn); }
.bmap-spot:hover { transform: scale(1.1); }
.bmap-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.bmap-parts legend { float: left; width: 100%; padding: 0; }
.bmap-parts legend h3 { margin: 0 0 4px; font-size: 1rem; }
.bmap-parts .abcs-choice { flex: 1 1 130px; justify-content: center; }
.bmap-p { display: none; }
.bmap-p h3 { margin: 0 0 6px; font-size: 1.05rem; }
.bmap-p p { margin: 0 0 8px; }
.bmap-warn { background: var(--sunk); border-radius: 12px; padding: 8px 10px; font-size: .9rem; }
.bmap-note { font-size: .86rem; margin: 6px 0 10px; }
.bmap-src { margin: 0; }
.bmap:has(#bmap-head:checked) :is(.g-head, .p-head), .bmap:has(#bmap-shoulders:checked) :is(.g-shoulders, .p-shoulders),
.bmap:has(#bmap-chest:checked) :is(.g-chest, .p-chest), .bmap:has(#bmap-belly:checked) :is(.g-belly, .p-belly),
.bmap:has(#bmap-hands:checked) :is(.g-hands, .p-hands), .bmap:has(#bmap-legs:checked) :is(.g-legs, .p-legs) { opacity: .55; display: block; }
.bmap:has(#bmap-chest:checked) .bmap-heart path { opacity: 1; animation: bmap-beat 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.bmap:has(#bmap-head:checked) [for="bmap-head"], .bmap:has(#bmap-shoulders:checked) [for="bmap-shoulders"], .bmap:has(#bmap-chest:checked) [for="bmap-chest"],
.bmap:has(#bmap-belly:checked) [for="bmap-belly"], .bmap:has(#bmap-hands:checked) [for="bmap-hands"], .bmap:has(#bmap-legs:checked) [for="bmap-legs"] { background: var(--btn); box-shadow: 0 0 0 5px color-mix(in srgb, var(--btn) 25%, transparent); }
@keyframes bmap-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .bmap * { animation: none !important; transition: none !important; } }
@supports not selector(:has(a)) { .bmap .p-chest { display: block; } .bmap .g-chest { opacity: .55; } }
/* ცდომილების ხატულა (learn/_error_icon.html) — ფერი რიგით, ფორმა აზრით */
.err-h { display: flex; align-items: center; gap: 12px; }
.err-ic { flex: 0 0 auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tile-peach); color: var(--tile-ink); }
.err-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.err-ic .fill { fill: currentColor; }
.err-ic:is(.ec-jumping, .ec-black-white, .ec-shoulds) { background: var(--tile-sky); color: var(--tile-ink-on-dark); }
.err-ic:is(.ec-overgeneralization, .ec-catastrophizing, .ec-labeling) { background: var(--tile-sun); }
.err-ic:is(.ec-magnifying, .ec-mind-reading) { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.err-ic:is(.ec-personalizing, .ec-emotional) { background: var(--tile-violet); color: #FFFFFF; }
.daily-error .err-ic { width: 52px; height: 52px; }
.quiz label .err-ic, form label .err-ic { width: 30px; height: 30px; border-radius: 9px; margin-right: 6px; vertical-align: middle; }
.quiz label .err-ic svg, form label .err-ic svg { width: 18px; height: 18px; }
/* დიაგრამის სცენები: სამკუთხედი (.tri), ორი წრე (.cyc), შიშის მრუდი (.expo) — რადიო + :has, სკრიპტის გარეშე */
.tri .v, .cyc .v, .expo .v { display: none; }
.tri-board, .cyc-board { position: relative; background: var(--sunk); border-radius: 22px; border: 1px solid var(--line); transition: background-color .5s; }
.tri-board svg, .cyc-board svg { display: block; width: 100%; height: auto; }
.tri-edges path { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linecap: round; marker-start: url(#tri-arrow); marker-end: url(#tri-arrow); }
#tri-arrow path, #cyc-arrow path { fill: var(--muted); }
.tri-node, .cyc-node { position: absolute; transform: translate(-50%, -50%); width: 40%; background: var(--surface); border: 2px solid var(--line);
  border-radius: 18px; padding: 10px 12px; text-align: center; font-weight: 600; font-size: .92rem; line-height: 1.35; transition: border-color .4s; }
.tri-node .k { display: block; font-size: .72rem; letter-spacing: .05em; font-weight: 800; color: var(--muted); margin-bottom: 2px; }
.n-thought { left: 50%; top: 15%; } .n-feel { left: 22%; top: 82%; } .n-act { left: 78%; top: 82%; }
.tri-loop, .cyc-note, .expo-note { margin-top: 10px; }
.tri:has(#tri-a:checked) :is(.v-a), .tri:has(#tri-b:checked) :is(.v-b) { display: block; }
.tri:has(#tri-a:checked) .tri-board { background: var(--emo-anx-soft); }
.tri:has(#tri-b:checked) .tri-board { background: var(--emo-calm-soft); }
.tri:has(#tri-a:checked) .tri-node { border-color: var(--emo-anx); }
.tri:has(#tri-b:checked) .tri-node { border-color: var(--emo-calm); }
.cyc-ring path { fill: none; stroke: var(--muted); stroke-width: 5; stroke-linecap: round; marker-end: url(#cyc-arrow); }
.cyc-mood path { fill: none; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s; }
.cyc-mood .m-down { stroke: var(--emo-anx); } .cyc-mood .m-up { stroke: var(--emo-calm); }
.cyc-node { width: 34%; }
.cyc-node.c1 { left: 50%; top: 13%; } .cyc-node.c2 { left: 79%; top: 50%; } .cyc-node.c3 { left: 50%; top: 87%; } .cyc-node.c4 { left: 21%; top: 50%; }
.cyc:has(#cyc-down:checked) :is(.v-down, .m-down), .cyc:has(#cyc-up:checked) :is(.v-up, .m-up) { display: block; opacity: 1; }
.cyc:has(#cyc-down:checked) .cyc-board { background: var(--emo-anx-soft); }
.cyc:has(#cyc-up:checked) .cyc-board { background: var(--emo-calm-soft); }
.cyc:has(#cyc-up:checked) .cyc-node { border-color: var(--emo-calm); }
@media (max-width: 520px) {
  .tri-node, .cyc-node { font-size: .8rem; padding: 7px 8px; border-radius: 14px; }
  .tri-node { width: 46%; } .cyc-node { width: 40%; } .cyc-node.c2 { left: 78%; } .cyc-node.c4 { left: 22%; }
}
.expo-chart svg { display: block; width: 100%; height: auto; }
.expo .ax path { fill: none; stroke: var(--muted); stroke-width: 2; }
.expo .ax .grid { stroke: var(--line); stroke-dasharray: 4 6; }
.expo .ax text { fill: var(--muted); font-family: var(--sans); font-size: 15px; }
@media (max-width: 520px) { .expo .ax text { font-size: 22px; } }
.expo .ln { opacity: 0; transition: opacity .45s; }
.expo .ln path { fill: none; stroke-width: 5; stroke-linecap: round; }
.expo .ln .now { stroke: var(--emo-anx); }
.expo .ln .next { stroke: var(--emo-calm); stroke-dasharray: 10 10; stroke-width: 4; }
.expo .l-leave .next { stroke: var(--emo-anx); opacity: .55; }
.expo .ln circle { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.expo-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.expo-legend .sw { width: 26px; height: 0; border-top: 4px solid var(--emo-anx); display: inline-block; }
.expo-legend .sw.next { border-top: 4px dashed var(--muted); }
.expo:has(#expo-leave:checked) :is(.l-leave, .v-leave), .expo:has(#expo-stay:checked) :is(.l-stay, .v-stay) { opacity: 1; display: block; }
.expo:has(#expo-leave:checked) .l-leave, .expo:has(#expo-stay:checked) .l-stay { display: inline; }
@supports not selector(:has(a)) {
  .tri .v-a, .cyc .v-down, .expo .v-stay { display: block; } .cyc .m-down, .expo .l-stay { opacity: 1; }
}
.try-tag { font-weight: 700; color: var(--tile-ink-on-dark); background: var(--tile-mint); border-radius: 999px; padding: 0 8px; font-size: .74rem; }
/* ცდომილებების ბარათები (გაკვეთილი cognitive-errors) */
.err-index { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 6px; }
.err-index a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: .86rem; font-weight: 600; text-decoration: none; }
.err-index a:hover { border-color: var(--accent); }
.err-index .err-ic { width: 28px; height: 28px; border-radius: 50%; }
.err-index .err-ic svg { width: 16px; height: 16px; }
.err-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 130px; }
.err-card:target { box-shadow: 0 0 0 3px var(--btn); }
.err-head { display: flex; align-items: center; gap: 14px; }
.err-head .err-ic { width: 52px; height: 52px; border-radius: 16px; }
.err-head .err-ic svg { width: 28px; height: 28px; }
.err-head h2 { margin: 0; font-size: 1.15rem; }
.err-n { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.err-thought { position: relative; margin: 6px 0 4px 12px; padding: 12px 16px; background: var(--ground); border: 2px solid var(--line);
  border-radius: 22px; font-family: var(--serif); font-size: 1.04rem; line-height: 1.45; }
.err-thought::before, .err-thought::after { content: ""; position: absolute; background: var(--ground); border: 2px solid var(--line); border-radius: 50%; }
.err-thought::before { width: 14px; height: 14px; left: -10px; top: -6px; }
.err-thought::after { width: 8px; height: 8px; left: -20px; top: -16px; }
.err-def { margin: 0; }
.err-ex summary { cursor: pointer; font-weight: 600; color: var(--accent); font-size: .9rem; }
.err-ex p { margin: 8px 0 0; color: var(--muted); }
.err-top { align-self: flex-end; font-size: .82rem; color: var(--muted); }
.err-quiz { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--tile-sun); color: var(--tile-ink); border-radius: 22px; padding: 18px 20px; }
.err-quiz > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.err-quiz .muted { color: inherit; opacity: .8; }
/* ვარჯიში (learn/quiz.html) */
.quiz-track { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: 4px 0 16px; }
.quiz-track ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.quiz-track li { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); }
.quiz-track li.ok { background: var(--tile-mint); border-color: var(--tile-mint); }
.quiz-track li.miss { background: var(--tile-sun); border-color: var(--tile-sun); }
.quiz-track li.now { border-color: var(--btn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn) 25%, transparent); }
.quiz .quiz-thought { position: relative; margin: 26px 0 18px 14px; padding: 16px 20px; background: var(--surface); border: 2px solid var(--line);
  border-radius: 26px; font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; }
.quiz .quiz-thought::before, .quiz .quiz-thought::after { content: ""; position: absolute; background: var(--surface); border: 2px solid var(--line); border-radius: 50%; }
.quiz .quiz-thought::before { width: 16px; height: 16px; left: -10px; top: -10px; }
.quiz .quiz-thought::after { width: 9px; height: 9px; left: -22px; top: -22px; }
.quiz-form .quiz-choices { border: 0; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; }
.quiz-form .quiz-choices legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
@media (min-width: 620px) { .quiz-form .quiz-choices { grid-template-columns: 1fr 1fr; } }
.quiz-form .quiz-choices label { position: relative; display: flex; gap: 10px; align-items: center; margin: 0; padding: 8px 12px 8px 8px; font-weight: 600;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; }
.quiz-form .quiz-choices label:hover { border-color: var(--accent); }
.quiz-form .quiz-choices input { position: absolute; opacity: 0; pointer-events: none; }
.quiz-form .quiz-choices label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.quiz-form .quiz-choices label:has(input:checked) { border-color: var(--btn); box-shadow: inset 0 0 0 1px var(--btn); background: var(--ground); }
.quiz-form .quiz-choices .err-ic { margin: 0; }
.quiz-feedback { border-left: 0; margin-bottom: 16px; }
.quiz-feedback .qf-body { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 16px 18px; border-top: 6px solid var(--tile-mint); }
.quiz-feedback.miss .qf-body { border-top-color: var(--tile-sun); }
.qf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.qf-head .err-ic { width: 48px; height: 48px; }
.qf-head > div { display: flex; flex-direction: column; }
.qf-head b { font-size: 1.1rem; }
.qf-verdict { font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--tile-mint); }
.quiz-feedback.miss .qf-verdict { color: var(--warn); }
.qf-choice { background: var(--ground); border-radius: 12px; padding: 8px 10px; }
.quiz-done { display: grid; grid-template-columns: auto 1fr; gap: 14px 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.qd-score { width: 104px; height: 104px; border-radius: 50%; background: var(--tile-mint); color: var(--tile-ink-on-dark); display: grid; place-content: center; text-align: center; line-height: 1; }
.qd-score b { font-size: 2.2rem; font-weight: 800; } .qd-score span { font-size: .9rem; opacity: .85; }
.qd-text h2 { margin: 0 0 4px; }
.qd-text p { margin: 0; }
.qd-missed, .qd-actions { grid-column: 1 / -1; }
.qd-missed { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qd-missed .k { font-size: .76rem; font-weight: 800; color: var(--muted); margin-right: 4px; }
.qd-missed a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); font-size: .86rem; font-weight: 600; text-decoration: none; }
.qd-missed .err-ic { width: 28px; height: 28px; border-radius: 50%; margin: 0; } .qd-missed .err-ic svg { width: 16px; height: 16px; }
.qd-actions { gap: 8px; }
@media (max-width: 460px) { .quiz-done { grid-template-columns: 1fr; justify-items: start; } }
/* სავარჯიშოების გვერდი: სუნთქვის ხატულა, „ჩემი სურათი“, ჩანაწერების არქივი (ჩანართები :has-ით) */
.tool-calm .tool-ic { color: var(--tile-mint); }
.progress-card { display: flex; flex-direction: column; gap: 8px; }
.prog-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.prog-stats > div { background: var(--ground); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.prog-stats b { font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.prog-stats small { color: var(--muted); font-size: .8rem; }
.arch-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.arch-tabs label { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .9rem; cursor: pointer; margin: 0; }
.arch-tabs label span { background: var(--sunk); border-radius: 999px; padding: 0 7px; font-size: .78rem; font-variant-numeric: tabular-nums; }
.arch-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.arch-tabs label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.arch-tabs label:has(input:checked) { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.arch-tabs label:has(input:checked) span { background: color-mix(in srgb, var(--btn-ink) 22%, transparent); }
.arch-list { list-style: none; padding: 0; margin: 0; display: none; flex-direction: column; gap: 8px; }
.archive:has(#arch-t:checked) .al-t, .archive:has(#arch-p:checked) .al-p, .archive:has(#arch-l:checked) .al-l { display: flex; }
@supports not selector(:has(a)) { .arch-list { display: flex; } }
.arch-list a { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.arch-list a:hover { border-color: var(--accent); }
.arch-list .tool-ic { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; }
.arch-list .tool-ic svg { width: 20px; height: 20px; }
.al-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.al-main small { font-size: .8rem; }
.al-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: 18px; padding: 14px 16px; color: var(--muted); }
.intro-private { display: flex; gap: 14px; align-items: flex-start; }
.intro-private p { margin: 0 0 10px; }
.intro-private .tool-ic { flex: 0 0 auto; }
@media (max-width: 520px) {
  .tools { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tool { padding: 14px; gap: 6px; }
  .tool b { font-size: .98rem; }
  .tool > span.muted, .tool-calm > span { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .tool-time { display: none; }
  .tool .tool-ic { width: 40px; height: 40px; border-radius: 12px; }
}
/* განწყობის დღიური (practice/mood.html) */
.week-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 14px 14px 4px; }
.week-head { padding: 0 4px 6px; flex-wrap: wrap; gap: 4px 12px; }
.week-avg { font-size: .88rem; } .week-avg b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.week-card .week-strip { background: none; border: 0; padding: 4px 0 10px; }
.week-strip .wk-dot { width: 38px; height: 38px; max-width: 100%; flex: none; }
.mood-chart .dot[class*=" m"] { fill: var(--mc); stroke: var(--ink); stroke-width: 1.5; }
.mood-chart .line { stroke: var(--muted); stroke-width: 2; opacity: .6; }
.other-day > summary { display: inline-block; cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 2px; }
.mood-rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.mood-rows a { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.mood-rows a:hover { border-color: var(--accent); }
.mr-day { width: 44px; flex: none; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.mr-day b { font-size: 1.1rem; } .mr-day small { font-size: .72rem; color: var(--muted); }
.mr-dot { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--mc); color: var(--tile-ink); font-weight: 800; font-size: .9rem; }
.mr-note { flex: 1; min-width: 0; font-size: .93rem; }
.mr-edit { flex: none; color: var(--muted); } .mr-edit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; display: block; }
.week-strip .wk-dot.empty { padding: 0; margin: 0; min-height: 0; }
/* აქტივობები (practice/activities.html) */
.act-rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.act-rows a { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.act-rows a:hover { border-color: var(--accent); }
.act-rows a.now { border-color: var(--btn); }
.act-rows a.late .mr-day b { color: var(--warn); }
.ar-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ar-main small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; }
.ar-cta { flex: none; font-weight: 700; font-size: .86rem; color: var(--accent); }
.act-rows a.now .ar-cta, .act-rows a.late .ar-cta { background: var(--btn); color: var(--btn-ink); padding: 6px 12px; border-radius: 999px; }
.mini-dot { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mc); color: var(--tile-ink); font-weight: 800; font-size: .78rem; }
.ar-change { flex: none; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; }
.act-sum .as-bar { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 10px; margin-bottom: 6px; font-size: .88rem; }
.act-sum .bar { height: 12px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.act-sum .bar i { display: block; height: 100%; border-radius: inherit; }
.act-sum .bar .exp { background: var(--muted); opacity: .55; }
.act-sum .bar .got { background: var(--tile-mint); }
.act-sum .as-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.act-sum .as-fact { margin: 10px 0 0; }
@media (max-width: 460px) { .act-sum .as-bar { grid-template-columns: 100px 1fr 30px; font-size: .8rem; } .ar-cta { font-size: .8rem; } }
/* შიშის კიბე (practice/ladder.html) */
.ladder-progress { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -4px 0 8px; font-size: .92rem; }
.lp-track { flex: 1 1 160px; height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.lp-track i { display: block; height: 100%; background: var(--tile-mint); border-radius: inherit; }
.stair { position: relative; }
.stair-me { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stair-me circle { fill: var(--ink); }
.stairs { padding-top: 46px; height: 190px; }
.next-step { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; background: var(--tile-peach); color: var(--tile-ink); border-radius: 22px; padding: 18px 20px; }
.next-step .eyebrow { color: inherit; opacity: .8; margin: 0; }
.ns-text { font-size: 1.2rem; }
.ns-meta { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.next-step .btn { margin-top: 6px; }
.next-step.all-done { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.fear-chip { display: inline-grid; place-items: center; min-width: 32px; height: 24px; padding: 0 6px; border-radius: 999px; background: #FFFFFF; color: var(--tile-ink); font-weight: 800; font-size: .82rem; }
.ladder-rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ladder-rows a { display: grid; grid-template-columns: 36px 1fr 90px; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.ladder-rows a:hover { border-color: var(--accent); }
.ladder-rows li.next a { border-color: var(--tile-peach); box-shadow: inset 0 0 0 1px var(--tile-peach); }
.lr-n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); font-weight: 800; font-size: .9rem; }
.ladder-rows li.done .lr-n { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.ladder-rows li.next .lr-n { background: var(--tile-peach); color: var(--tile-ink); }
.lr-n svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lr-main small { font-size: .8rem; }
.lr-fact { color: var(--pine); font-weight: 700; }
.lr-bar { position: relative; height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.lr-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--tile-sky); opacity: .55; }
.ladder-rows li.done .lr-bar i { background: var(--muted); opacity: .35; }
.lr-bar i.peak { background: var(--tile-mint) !important; opacity: 1 !important; height: 4px; top: 2px; }
@media (max-width: 460px) { .ladder-rows a { grid-template-columns: 32px 1fr; } .lr-bar { grid-column: 2; } }
.add-step > summary { display: inline-block; cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 2px; }
.add-step[open] > summary { margin-bottom: 8px; }
.ladder-del { text-align: right; }
.ladder-del .linkish { color: var(--muted); font-size: .86rem; }
.next-step + .ladder-rows { margin-top: 14px; }
/* წრიული დიაგრამის შედეგი (practice/pie_detail.html) */
.pie-page h1 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.pie-start { display: flex; flex-direction: column; gap: 4px; }
.pie-start .eyebrow { margin: 0; }
.pie-thought { position: relative; margin: 10px 0 4px 14px; padding: 14px 18px; background: var(--surface); border: 2px solid var(--line); border-radius: 24px;
  font-family: var(--serif); font-size: 1.12rem; align-self: flex-start; max-width: 100%; }
.pie-thought::before, .pie-thought::after { content: ""; position: absolute; background: var(--surface); border: 2px solid var(--line); border-radius: 50%; }
.pie-thought::before { width: 14px; height: 14px; left: -10px; top: -8px; }
.pie-thought::after { width: 8px; height: 8px; left: -20px; top: -18px; }
.pie-share { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; background: var(--ground); border-radius: 16px; }
.pie-share > b { font-size: 2rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; flex: none; }
.rr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.rr-tile { background: var(--ground); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.rr-tile .k { font-size: .8rem; font-weight: 700; color: var(--muted); }
.rr-nums { display: flex; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.rr-nums .was { color: var(--muted); font-size: 1.1rem; text-decoration: line-through; text-decoration-thickness: 1px; }
.rr-nums b { font-size: 1.7rem; font-weight: 800; }
.rr-bars { display: flex; flex-direction: column; gap: 3px; }
.rr-bars i { display: block; height: 6px; border-radius: 999px; }
.rr-bars .was { background: var(--muted); opacity: .4; }
.rr-bars .now { background: var(--tile-mint); }
.pie-actions .linkish { font-size: .86rem; }
/* ფიქრის ჩანაწერი (practice/thought_detail.html): A→E ნაკადი */
.tr-page h1 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); margin-bottom: 6px; }
.tr-flow { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; position: relative; }
.tr-flow li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; position: relative; padding-bottom: 14px; }
.tr-flow li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 34px; bottom: 0; width: 2px; background: var(--line); }
.tr-flow .abcs-l { width: 32px; height: 32px; }
.tr-flow li > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; min-width: 0; }
.tr-flow .k { display: block; font-size: .74rem; font-weight: 800; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px; }
.tr-flow p { margin: 0 0 6px; } .tr-flow p:last-child { margin-bottom: 0; }
.abcs-l.le { background: var(--tile-mint); color: var(--tile-ink-on-dark); }
.tr-thought { font-family: var(--serif); font-size: 1.08rem; background: var(--ground); border: 2px solid var(--line); border-radius: 18px; padding: 10px 14px; }
.tr-thought.tr-new { border-color: var(--tile-mint); }
.tr-emo { display: inline-flex; align-items: center; gap: 8px; background: var(--emo-anx-soft); border-radius: 999px; padding: 4px 6px 4px 12px; font-weight: 700; }
.tr-emo b { background: var(--surface); border-radius: 999px; padding: 1px 9px; font-variant-numeric: tabular-nums; }
.tr-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.tr-evidence > div { background: var(--ground); border-radius: 12px; padding: 8px 10px; }
@media (max-width: 520px) { .tr-evidence { grid-template-columns: 1fr; } }
.tr-errs { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-errs a { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600; }
.tr-errs .err-ic { width: 28px; height: 28px; border-radius: 50%; margin: 0; } .tr-errs .err-ic svg { width: 16px; height: 16px; }
.tr-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; background: var(--tile-sky); color: var(--tile-ink-on-dark); border-radius: 22px; padding: 16px 20px; }
.tr-next > div { display: flex; flex-direction: column; gap: 2px; flex: 1 1 260px; }
.tr-next .btn.primary { background: #FFFFFF; color: var(--tile-sky); border-color: #FFFFFF; }
.tr-flow.section { margin-top: 18px; }
/* ფიქრის ჩანაწერის ფორმა: ასოები გაკვეთილის ფერებით, ემოცია ჩიპებად */
.tf-letters { list-style: none; padding: 0; margin: 4px 0 14px; display: flex; gap: 6px; }
.tf-letters .abcs-l { width: 30px; height: 30px; }
.steps-form legend .abcs-l, .steps-form summary .abcs-l { width: 28px; height: 28px; margin-right: 6px; vertical-align: middle; }
.emo-chips .field > div { display: flex; flex-wrap: wrap; gap: 6px; }
.emo-chips .field > div > div { margin: 0; }
.emo-chips label { position: relative; display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; margin: 0; }
.emo-chips label:hover { border-color: var(--accent); }
.emo-chips input { position: absolute; opacity: 0; pointer-events: none; }
.emo-chips label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.emo-chips label:has(input:checked) { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.emo-chips .field > label { display: block; padding: 0; border: 0; background: none; cursor: default; margin-bottom: 6px; }

/* --- საფეხურის შიში: მოლოდინი / მწვერვალი / ბოლოს --- */
.fear-bars { display: grid; gap: 10px; }
.fb-row { display: grid; grid-template-columns: 9.5em 1fr 2.5em; gap: 10px; align-items: center; }
.fb-k { font-size: .88rem; color: var(--muted); }
.fb-bar { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; }
.fb-bar i { display: block; height: 100%; border-radius: inherit; }
.fb-exp { background: var(--series-orig); }
.fb-peak { background: var(--emo-anx); }
.fb-end { background: var(--pine); }
.fear-bars b { text-align: right; }
.fb-note { margin: 2px 0 0; font-size: .92rem; }
@media (max-width: 520px) { .fb-row { grid-template-columns: 7.5em 1fr 2.2em; } }

/* --- განწყობის ჩანაწერის შესწორება --- */
.me-head { display: flex; gap: 14px; align-items: center; }
.me-head h1 { margin: 0; }
.me-head p { margin: 4px 0 0; }
.mini-dot.big { width: 52px; height: 52px; font-size: 1.3rem; flex: none; }

/* --- ჩაწერა: დღის ჩიპები (რადიო + :has) --- */
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; margin: 4px 0 8px; scrollbar-width: thin; }
.bk-chip { flex: none; display: grid; justify-items: center; gap: 1px; min-width: 64px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; }
.bk-chip input { position: absolute; opacity: 0; pointer-events: none; }
.bk-chip small { color: var(--muted); font-size: .8rem; }
.bk-chip i { font-style: normal; font-size: .72rem; color: var(--muted); }
.bk-chip:has(input:checked) { background: var(--btn); border-color: var(--btn); color: var(--btn-ink, #fff); }
.bk-chip:has(input:checked) small, .bk-chip:has(input:checked) i { color: inherit; opacity: .85; }
.bk-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.bk-list .day .dh { display: none; }
@supports not selector(:has(a)) { .bk-days { display: none; } .bk-list .day .dh { display: flex; } }
.bk-wrap:has(.bk-chip:nth-child(1) input:checked) .bk-list .day:not(:nth-child(1)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(2) input:checked) .bk-list .day:not(:nth-child(2)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(3) input:checked) .bk-list .day:not(:nth-child(3)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(4) input:checked) .bk-list .day:not(:nth-child(4)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(5) input:checked) .bk-list .day:not(:nth-child(5)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(6) input:checked) .bk-list .day:not(:nth-child(6)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(7) input:checked) .bk-list .day:not(:nth-child(7)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(8) input:checked) .bk-list .day:not(:nth-child(8)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(9) input:checked) .bk-list .day:not(:nth-child(9)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(10) input:checked) .bk-list .day:not(:nth-child(10)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(11) input:checked) .bk-list .day:not(:nth-child(11)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(12) input:checked) .bk-list .day:not(:nth-child(12)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(13) input:checked) .bk-list .day:not(:nth-child(13)) { display: none; }
.bk-wrap:has(.bk-chip:nth-child(14) input:checked) .bk-list .day:not(:nth-child(14)) { display: none; }

/* --- ბავშვების პროფილები --- */
.kid-card { gap: 10px 14px; justify-content: flex-start; flex-wrap: wrap; }
.kid-card > .row { width: 100%; padding-left: 60px; }
.kid-card .kid-main { flex: 1; min-width: 0; }
.kid-av { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--tile-sun); color: var(--tile-ink); font-weight: 800; font-size: 1.15rem; }
.kid-new { border-style: dashed; }
.kid-new-h { font-size: 1.05rem; margin: 0 0 8px; }

.narrow.mid { margin-inline: auto; }

/* --- ონლაინ ოთახი (ადგილის დამჭერი) --- */
.room-wait { min-height: 280px; display: flex; align-items: center; justify-content: center; text-align: center; }
.room-wait p.muted { max-width: 44ch; margin-inline: auto; }
.room-ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--tile-sky); color: #fff; margin-bottom: 6px; }
.room-ic svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* --- კაბინეტი: მთავარი --- */
.cab-stats { grid-template-columns: 1fr 1fr; }
.cab-stats .st-warn { background: var(--warn-soft); }
.cab-stats .st-acc { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); }
.cab-stats .st-pine { background: var(--pine-soft); }
.cab-links { padding: 4px 0; display: grid; }
.cab-links a { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: center; padding: 11px 18px; color: var(--ink); text-decoration: none; border-top: 1px solid var(--line); }
.cab-links a:first-child { border-top: 0; }
.cab-links a::after { content: "›"; grid-row: 1 / span 2; grid-column: 2; color: var(--muted); font-size: 1.3rem; }
.cab-links a span { font-weight: 700; }
.cab-links a small { grid-column: 1; font-size: .8rem; }
.cab-links a:hover span { color: var(--accent); }

/* --- დახმარება: ყველა პასუხი ბარათებად --- */
.qa-grid { display: grid; gap: 10px; align-items: start; }
@media (min-width: 760px) { .qa-grid { grid-template-columns: 1fr 1fr; } }
.qa.card { border-bottom: 1px solid var(--line); padding: 14px 18px; }
.qa.card[open] { grid-column: 1 / -1; }
.qa.card summary { list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.qa.card summary::-webkit-details-marker { display: none; }
.qa.card summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.qa.card[open] summary::after { content: "–"; }

/* --- კითხვარის შედეგი --- */
.card.result { padding: 20px 22px; }
.card.result .score { font-size: 2.8rem; }
.card.result .meter { height: 12px; border-radius: 999px; margin: 16px 0 4px; }
.card.result .meter i { border-radius: inherit; }
.meter-ends { display: flex; justify-content: space-between; font-size: .75rem; margin-bottom: 12px; }
.answers { display: grid; gap: 8px; padding-left: 1.3em; margin: 12px 0 0; }
.answers li span { display: block; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .help-topics { display: none; } }   /* მობილურზე იგივე სია ქვემოთ ბარათებადაა */

/* --- კითხვარი: ინსტრუქცია მთვლელის ხაზზე (assess.js) --- */
.wiz-bar { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 6px 14px; }
.wiz-bar .wiz-track { grid-column: 1 / -1; }
.wiz-stem { color: var(--ink); font-weight: 700; font-size: 1rem; line-height: 1.4; }
.wiz-stem[hidden] { display: none; }
@media (max-width: 560px) { .wiz-bar { grid-template-columns: 1fr; } }
.wiz-track { background: var(--line); }

/* --- სავარჯიშოები: „ჩემი სურათი“ გვერდით სვეტში --- */
.practice-aside .progress-card .prog-stats { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.learn-link { display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.learn-link b::after { content: " →"; color: var(--accent); }

/* --- კითხვარის შედეგი: წინა შედეგები და პასუხები --- */
.res-hist .card-title { font-size: 1.05rem; }
.hist-rows { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 4px; }
.hist-rows a { display: grid; grid-template-columns: 5.6em 1fr 2.2em; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.hist-rows a:hover { background: var(--ground); }
.hist-rows li.now a { background: var(--ground); outline: 1px solid var(--line); }
.hist-rows b { text-align: right; }
.hist-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.hist-bar i { display: block; height: 100%; background: var(--series-orig); border-radius: inherit; }
.hist-rows li.now .hist-bar i { background: var(--series-1); }
.answers li { padding: 8px 0; border-top: 1px solid var(--line); }
.answers li:first-child { border-top: 0; }
.answers li b { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; background: var(--ground); font-size: .88rem; }

/* --- მთავარი: მხოლოდ მიმთითებლები --- */
.abc-try > .abc-more { margin: 16px 0 0; }
.home-more { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.home-link { display: grid; gap: 4px; color: var(--ink); text-decoration: none; }
.home-link b::after { content: " →"; color: var(--accent); }
.home-link:hover b { color: var(--accent); }

/* --- სპეციალისტების სია (ძიება და მიმართულება, catalog/_listing.html) --- */
.sp-dash .sp-list { grid-template-columns: 1fr; }
.sp-topics { margin-top: 16px; }
.sp-topics .eyebrow { margin-bottom: 6px; }
.sp-dash .filters { margin-top: 6px; }
.sp-found { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 12px; font-size: .92rem; }
.sp-found > span { color: var(--muted); }
.sp-found > span b { color: var(--ink); }
.kid-chip { font-size: .82rem; }
.sp-clear { margin-left: auto; }
.sp-topics .chips { flex-wrap: wrap; overflow: visible; }
.sp-dash .filters { display: grid; grid-template-columns: 1fr 1fr; }

/* --- სპეციალისტის პროფილი --- */
.sp-hero { display: grid; grid-template-columns: 96px 1fr; gap: 16px 18px; align-items: start; }
.sp-hero h1 { margin: 0 0 2px; }
.sp-hero-main { min-width: 0; }
.sp-facts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; padding-top: 14px; border-top: 1px solid var(--line); }
.sp-facts > div { display: grid; gap: 2px; }
.sp-facts small { font-size: .76rem; }
.sp-facts .btn { margin-left: auto; }
.sp-fmts { display: flex; gap: 6px; }
.sp-fmts .tool-ic { width: 30px; height: 30px; border-radius: 9px; }
.sp-fmts .tool-ic svg { width: 17px; height: 17px; }
.sp-bio p { max-width: 62ch; margin: 0; }
.offer-format { display: flex; align-items: center; gap: 12px; }
.offer-format .of-main { flex: 1; min-width: 0; display: grid; }
.offer-format > .tool-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.offer-format > .tool-ic svg { width: 18px; height: 18px; }
.rev-sum { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-bottom: 10px; }
.rev-avg { display: grid; justify-items: center; gap: 2px; }
.rev-avg > b { font-size: 2.2rem; line-height: 1; }
.rev-dist { display: grid; gap: 4px; font-size: .82rem; }
.rev-dist > div { display: grid; grid-template-columns: 1em 1fr 2em; gap: 8px; align-items: center; }
.rev-dist i { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rev-dist i b { display: block; height: 100%; background: var(--warn); border-radius: inherit; }
.rev-dist small { text-align: right; }
.sp-stats { grid-template-columns: 1fr 1fr !important; }
@media (max-width: 560px) { .sp-hero { grid-template-columns: 64px 1fr; } .sp-hero .avatar.lg { width: 64px; height: 64px; font-size: 1.5rem; } .sp-facts .btn { margin-left: 0; width: 100%; } }
@media (max-width: 640px) { .offer-format { flex-direction: row; flex-wrap: wrap; align-items: center; } .offer-format > div:last-child { width: 100%; } }

/* --- ჩაწერის გვერდი: ნაბიჯები მთავარ სვეტში, შეჯამება გვერდით --- */
.bk-steps { display: grid; gap: 14px; counter-reset: bk; margin-top: 10px; }
.bk-step { margin: 0; }
.bk-h { display: flex; align-items: baseline; gap: 10px; font-family: var(--sans); font-size: 1.05rem; font-weight: 800; margin: 0 0 12px; padding: 0; }
.bk-h::before { counter-increment: bk; content: counter(bk); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--btn); color: var(--btn-ink); font-size: .85rem; flex: none; }
.bk-h small { font-weight: 400; font-size: .8rem; }
.bk-h label { font: inherit; }
.bk-sum { display: grid; gap: 12px; }
.bk-who { display: flex; gap: 12px; align-items: center; }
.bk-who > div { display: grid; }
.bk-lines { margin: 0; display: grid; gap: 8px; }
.bk-lines > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: .92rem; }
.bk-lines dt { color: var(--muted); }
.bk-lines dd { margin: 0; text-align: right; display: inline-flex; align-items: center; gap: 6px; }
.bk-lines dd .tool-ic { width: 24px; height: 24px; border-radius: 7px; }
.bk-lines dd .tool-ic svg { width: 14px; height: 14px; }
.bk-total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }
.bk-aside .help-cards { margin-top: 16px; }
.bk-page > div, .bk-steps, .bk-steps > * { min-width: 0; }

/* --- გადახდა (სატესტო) --- */
.pay-grid { display: grid; gap: 16px; margin-top: 8px; align-items: start; }
@media (min-width: 760px) { .pay-grid { grid-template-columns: 1.2fr 1fr; } }
.pay-order .card-title { margin: 0 0 12px; }
.pay-flow { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; counter-reset: pf; }
.pay-flow li { display: grid; grid-template-columns: 26px 1fr; gap: 2px 10px; font-size: .88rem; }
.pay-flow li::before { counter-increment: pf; content: counter(pf); grid-row: span 2; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); color: var(--muted); font-weight: 700; font-size: .78rem; }
.pay-flow li.on::before { background: var(--pine); border-color: var(--pine); color: #fff; }
.pay-flow span { color: var(--muted); }
.pay-bank { display: grid; gap: 14px; }
.pay-test { justify-self: start; }
.pay-amount { font-family: var(--sans); font-size: 2.2rem; font-weight: 800; margin: 0; }
.pay-stmt { display: grid; gap: 6px; padding: 12px; border-radius: 12px; background: var(--ground); border: 1px dashed var(--line); }
.pay-stmt-row { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }

/* --- შეკვეთის ქვე-გვერდები: გაუქმება, გადატანა, საჩივარი, შეფასება --- */
.ord-mini { display: flex; align-items: center; gap: 12px; }
.ord-mini-main { flex: 1; min-width: 0; display: grid; }
.ord-mini > .tool-ic { width: 38px; height: 38px; border-radius: 11px; flex: none; }
.ord-mini > .tool-ic svg { width: 20px; height: 20px; }
.flow-alt { border-style: dashed; }
.refund-note { padding: 10px 14px; border-radius: 12px; background: var(--pine-soft); color: var(--ink); margin-bottom: 14px; }
.refund-note b { color: var(--pine); }
.resched-cmp { display: flex; align-items: center; gap: 16px; }
.resched-cmp > div { display: grid; }
.resched-cmp > span { color: var(--muted); font-size: 1.3rem; }
.rating-radios label { border-radius: 12px; font-size: 1.05rem; padding: 10px 4px; }
.card fieldset.field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.card fieldset.field > legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.cancel-reasons .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* --- ავტორიზაცია: ფორმის ბარათი + დისკრეციის ზოლი (accounts/_auth_side.html) --- */
.auth { display: grid; gap: 20px; max-width: 900px; margin: 8px auto 0; align-items: start; }
@media (min-width: 820px) { .auth { grid-template-columns: minmax(0, 1fr) 320px; } .auth.one { grid-template-columns: minmax(0, 440px); justify-content: center; } }
.auth-card { padding: 26px; }
.auth-card h1 { font-size: 1.6rem; margin: 6px 0 8px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--ground); margin-bottom: 14px; }
.auth-tabs a { text-align: center; padding: 8px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .92rem; text-decoration: none; }
.auth-tabs a.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; margin: 14px 0 0; font-size: .9rem; }
.auth-foot span { color: var(--muted); }
.auth-side { background: var(--tile-mint); color: var(--tile-ink-on-dark); border-radius: 22px; padding: 22px; display: grid; gap: 14px; }
.auth-side-h { font-family: var(--serif); font-size: 1.15rem; }
.auth-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.auth-side li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: .92rem; line-height: 1.45; }
.auth-side svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.auth-side a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.auth-card .msg.small { font-size: .85rem; }

/* --- კაბინეტი: პროფილი ნაწილებად, სერვისის ფორმა, სერტიფიკატის ნაბიჯები --- */
.prof-form { display: grid; gap: 14px; }
.prof-sec { margin: 0; border: 0; min-width: 0; }
fieldset.prof-sec { border: 1px solid var(--line); }
.prof-h { display: flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 1.02rem; font-weight: 800; margin: 0 0 12px; padding: 0; }
legend.prof-h { float: left; width: 100%; }
legend.prof-h + * { clear: both; }
.prof-two { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .prof-two { grid-template-columns: 1fr; } }
.prof-private { padding-left: 10px; border-left: 2px solid var(--line); }
.prof-preview .sp { pointer-events: none; }
.fmt-toggle .tool-ic { width: 26px; height: 26px; border-radius: 8px; }
.fmt-toggle .tool-ic svg { width: 15px; height: 15px; }
.cred-steps { list-style: none; padding: 0; margin: 16px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; counter-reset: cs; }
.cred-steps li { display: grid; gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: .85rem; }
.cred-steps li::before { counter-increment: cs; content: counter(cs); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line); font-weight: 800; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.cred-steps li span { color: var(--muted); }
.cred-steps li.done::before { content: "✓"; background: var(--pine); border-color: var(--pine); color: #fff; }
.cred-steps li.now { border-color: var(--warn); background: var(--warn-soft); }
.cred-steps li.now::before { border-color: var(--warn); color: var(--ink); }
@media (max-width: 560px) { .cred-steps { grid-template-columns: 1fr; } }

/* --- სპეციალისტის მხარე: გაზიარებული ჩანაწერები (sharing/_base.html) --- */
.sh-head { display: flex; gap: 12px; align-items: center; }
.sh-head h1 { margin: 0; }
.sh-head p { margin: 2px 0 0; }
.sh-head > .tool-ic { width: 44px; height: 44px; border-radius: 13px; flex: none; }
.sh-head > .tool-ic svg { width: 22px; height: 22px; }
.sh-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .86rem; color: var(--muted); margin: 12px 0 0; }
.shared-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.shared-list a { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.shared-list a:hover { background: var(--ground); }
.shared-list a[aria-current="page"] { background: var(--ground); outline: 1px solid var(--line); font-weight: 700; }
.shared-list .tool-ic { width: 30px; height: 30px; border-radius: 9px; }
.shared-list .tool-ic svg { width: 16px; height: 16px; }
.shared-list small { color: var(--muted); font-size: .78rem; }
.mood-rows .mr-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.sh-steps { list-style: none; padding: 0; display: grid; gap: 10px; }
.sh-steps li { display: grid; gap: 10px; }
.sh-steps li.done { border-color: color-mix(in srgb, var(--pine) 40%, var(--line)); }
.sh-score { font-size: 2.4rem; }
.tool-ic.tq { background: var(--tile-sun); color: var(--tile-ink); }

/* --- გაზიარების მართვა (კლიენტი) --- */
.share-form { display: grid; gap: 12px; margin-top: 12px; }
.share-kind { margin: 0; min-width: 0; }
.share-items > div { display: grid; gap: 6px; }
.share-items label { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-size: .92rem; }
.share-items label:has(input:checked) { border-color: var(--btn); background: var(--ground); }
.share-items input { width: 18px; height: 18px; flex: none; accent-color: var(--btn); }
.win-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.win-chip { position: relative; }
.win-chip input { position: absolute; opacity: 0; pointer-events: none; }
.win-chip span { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; cursor: pointer; }
.win-chip input:checked + span { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.win-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.share-status .share-none { margin: 6px 0 0; }
.share-sum { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.share-sum li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; }
.share-sum .tool-ic { width: 28px; height: 28px; border-radius: 8px; }
.share-sum .tool-ic svg { width: 15px; height: 15px; }
.share-facts { list-style: none; margin: 12px 0 0; display: grid; gap: 8px; font-size: .88rem; color: var(--muted); }
.share-facts li { padding-left: 16px; position: relative; }
.share-facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--pine); }

/* --- ბავშვები: სია, პროფილი, წაშლა --- */
.kid-list { display: grid; gap: 10px; }
.kid-card .kid-main { display: grid; gap: 1px; }
.kid-stats { color: var(--muted); font-size: .82rem; }
.kid-head { display: flex; gap: 14px; align-items: center; }
.kid-head h1 { margin: 0; }
.kid-head p { margin: 2px 0 0; }
.kid-danger { border-style: dashed; display: grid; gap: 4px; justify-items: start; }
.kid-facts { margin-top: 0; }
.kid-list .kid-card { display: flex; align-items: center; }

/* --- პაროლის შეცვლა --- */
.pw-new { padding: 12px 14px 2px; margin: 4px 0 12px; border-radius: 14px; background: var(--ground); }
.pw-rule { margin: -8px 0 12px; }
.pw-show { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin: 0 0 14px; cursor: pointer; }
.pw-show input { width: 18px; height: 18px; accent-color: var(--btn); }
.pw-side { background: var(--tile-sky); }

/* --- შეტყობინებები: ფილტრი (რადიო + :has) და გვერდითი ზოლი --- */
.nf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 4px; }
.nf .nf-none { display: none; margin-top: 16px; }
.nf:has(#nf-unread:checked) .note-row:not(.unread) { display: none; }
.nf:has(#nf-unread:checked) .note-group:not(:has(.unread)) { display: none; }
.nf:has(#nf-att:checked) .note-row:not(.unread.t-time):not(.unread.t-alert) { display: none; }
.nf:has(#nf-att:checked) .note-group:not(:has(.unread.t-time, .unread.t-alert)) { display: none; }
.nf:has(#nf-unread:checked):not(:has(.note-row.unread)) .nf-none-unread { display: block; }
.nf:has(#nf-att:checked):not(:has(.note-row.unread.t-time, .note-row.unread.t-alert)) .nf-none-att { display: block; }
.nf-side { display: grid; gap: 10px; }
.nf-bubble { padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: var(--ink); color: var(--ground); font-size: .88rem; line-height: 1.4; }

/* --- სამუშაო დრო: კვირის შეჯამება, საათების კოპირება, წინასწარი ხედი ჩიპებით --- */
.hr-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 16px; }
.hr-sum > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.hr-sum b { font-size: 1.35rem; }
.hr-sum small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
@media (max-width: 640px) { .hr-sum { grid-template-columns: 1fr 1fr; } }
.hr-copy { margin-top: 12px; font-size: .88rem; }
.preview-card .bk-days { margin-top: 6px; }
.preview-card > a.small { display: inline-block; margin-top: 10px; }

/* --- სერვისები: თემით დაჯგუფებული --- */
.svc-group { display: grid; gap: 0; padding: 6px 18px; }
.svc-group-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 0; }
.svc-group-h b { font-size: 1.05rem; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.svc-row.off { opacity: .6; }
.svc-row > .tool-ic { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.svc-row > .tool-ic svg { width: 19px; height: 19px; }
.svc-row .svc-main { flex: 1 1 160px; min-width: 0; display: grid; }
.svc-row .svc-act { display: flex; gap: 6px; }
@media (max-width: 560px) { .svc-row .svc-act { width: 100%; padding-left: 48px; } }
.aside > .btn.block + .help-cards { margin-top: 18px; }

/* --- კაბინეტის შეკვეთა: მთავარ სვეტში შემდეგი ნაბიჯი, გვერდით ფული და მიმდინარეობა --- */
.co-next { border: 2px solid var(--btn); }
.co-money { display: grid; gap: 8px; font-size: .95rem; }
.co-money .co-mine { border-top: 1px solid var(--line); padding-top: 8px; font-weight: 700; }
.co-links { display: grid; gap: 8px; }
.assign-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.assign-row select { flex: 1 1 auto; min-width: 0; margin: 0; }
.assign-row .btn { flex: 0 0 auto; }
.ord-todo { color: var(--accent); font-weight: 700; font-size: .9rem; margin-top: 4px; }
.ord.has-todo { border-color: var(--btn); box-shadow: inset 3px 0 0 var(--btn); }
.ord-todo-sum { margin: -6px 0 0; }
.ord-todo-sum b { color: var(--accent); }
.mo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: center; }
.mo-stats b { display: block; font-size: 1.6rem; }
.mo-rules { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .95rem; }
.cab-setup { border: 2px dashed var(--warn); }
.cab-steps { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.cab-steps li { display: flex; gap: 8px; align-items: center; }
.cab-steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.cab-steps li.done { color: var(--muted); text-decoration: line-through; }
.cab-steps li.done::before { background: var(--pine); border-color: var(--pine); }
@media (max-width: 560px) { .cab-steps { grid-template-columns: 1fr; } }
.room-stage { margin-top: 16px; min-height: 300px; border-radius: 22px; background: var(--tile-sky); color: var(--tile-ink-on-dark); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 28px 20px; }
.room-stage p { margin: 0; max-width: 44ch; }
.room-stage .room-ic { background: rgba(255,255,255,.14); }
.room-stage .room-sub { opacity: .8; font-size: .92rem; }
.room-stage .btn { margin-top: 10px; }
.room-big { font-size: 2rem; line-height: 1.2; }
.room-ended { background: var(--sunk); color: var(--ink); }
.room-ended .room-ic { background: var(--tile-sky); }
.room-check { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.room-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.room-facts dt { color: var(--muted); }
.room-facts dd { margin: 0; font-weight: 600; text-align: right; }
.ds-flow { margin-top: 8px; padding-top: 0; border-top: 0; }
.ds-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.ds-chip { position: relative; cursor: pointer; }
.ds-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ds-chip span { display: inline-block; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: .92rem; }
.ds-chip:has(input:checked) span { border-color: var(--btn); background: var(--btn); color: var(--btn-ink, #fff); }
.ds-chip:has(input:focus-visible) span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- შეფასების ფორმა --- */
.card fieldset.rv-field { border: 0; padding: 0; margin: 0 0 14px; }
.rv-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rv-stars label { cursor: pointer; position: relative; }
.rv-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rv-stars span[aria-hidden] { font-size: 2.4rem; line-height: 1; color: color-mix(in srgb, var(--muted) 40%, transparent); transition: color .12s; }
.rv-stars label:has(input:checked) span, .rv-stars label:has(input:checked) ~ label span,
.rv-stars:hover label span { color: var(--line); }
.rv-stars label:has(input:checked) span[aria-hidden], .rv-stars label:has(input:checked) ~ label span[aria-hidden],
.rv-stars label:hover span[aria-hidden], .rv-stars label:hover ~ label span[aria-hidden] { color: var(--warn); }
.rv-stars label:has(input:focus-visible) span[aria-hidden] { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rv-say { margin: 4px 0 0; font-weight: 600; }
.rv-say span { display: none; }
.rv-say .say-0 { display: inline; }
.rv-field:has(input[value="1"]:checked) .say-1 { display: inline; color: var(--ink); }
.rv-field:has(input[value="1"]:checked) .say-0 { display: none; }
.rv-page:has(input[name=rating][value="1"]:checked) .pv-stars b { width: 20%; }
.rv-field:has(input[value="2"]:checked) .say-2 { display: inline; color: var(--ink); }
.rv-field:has(input[value="2"]:checked) .say-0 { display: none; }
.rv-page:has(input[name=rating][value="2"]:checked) .pv-stars b { width: 40%; }
.rv-field:has(input[value="3"]:checked) .say-3 { display: inline; color: var(--ink); }
.rv-field:has(input[value="3"]:checked) .say-0 { display: none; }
.rv-page:has(input[name=rating][value="3"]:checked) .pv-stars b { width: 60%; }
.rv-field:has(input[value="4"]:checked) .say-4 { display: inline; color: var(--ink); }
.rv-field:has(input[value="4"]:checked) .say-0 { display: none; }
.rv-page:has(input[name=rating][value="4"]:checked) .pv-stars b { width: 80%; }
.rv-field:has(input[value="5"]:checked) .say-5 { display: inline; color: var(--ink); }
.rv-field:has(input[value="5"]:checked) .say-0 { display: none; }
.rv-page:has(input[name=rating][value="5"]:checked) .pv-stars b { width: 100%; }
.pv-stars { position: relative; display: inline-block; letter-spacing: 2px; }
.pv-stars i { font-style: normal; color: var(--line); }
.pv-stars b { position: absolute; inset: 0 auto 0 0; width: 0; overflow: hidden; white-space: nowrap; color: var(--warn); font-weight: 400; }
.rv-preview { margin: 0 0 10px; }
.pv-nick { display: none; }
.rv-page:has(#id_show_nickname:checked) .pv-nick { display: inline; }
.rv-page:has(#id_show_nickname:checked) .pv-anon { display: none; }
.pv-text.filled { color: var(--ink); }
.rv-verified { font-size: .72rem; margin-left: 4px; vertical-align: middle; }
/* --- კონტაქტი --- */
.ct-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 8px; }
.ct-tile { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.ct-tile:hover { border-color: var(--btn); }
.ct-tile b { font-size: 1.02rem; }
.ct-tile .muted { font-size: .9rem; }
.ct-ic { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--tile-sky); color: #fff; margin-bottom: 4px; }
.ct-tile:nth-child(2) .ct-ic { background: var(--tile-mint); }
.ct-tile:nth-child(3) .ct-ic { background: var(--tile-peach); color: var(--tile-ink); }
.ct-tile:nth-child(4) .ct-ic { background: var(--tile-sun); color: var(--tile-ink); }
.ct-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ct-channel p { margin: 0 0 10px; }
@media (max-width: 560px) { .ct-tiles { grid-template-columns: 1fr; } }
.btn.danger { background: var(--danger); border-color: var(--danger); color: var(--danger-ink, #fff); }
.btn.danger:hover { filter: brightness(1.08); }
.del-stop { border: 2px dashed var(--warn); }
.del-form .del-ok { display: flex !important; gap: 10px; align-items: flex-start; margin: 0 0 16px; font-weight: 600; }
.del-form .del-ok input { flex: 0 0 auto; margin-top: 3px; width: auto; }
/* --- კონფიდენციალურობა --- */
.pv-key { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 8px; }
.pv-key div { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--pine); }
.pv-key b { font-size: .98rem; }
.pv-key span { color: var(--muted); font-size: .9rem; }
.pv-links { display: grid; gap: 8px; }
.aside .toc:empty { display: none; }
@media (max-width: 560px) { .pv-key { grid-template-columns: 1fr; } }
.help-more-m { margin-top: 16px; }
@media (min-width: 761px) { .help-more-m { display: none; } }
.help-topics .topic-link { text-decoration: none; color: var(--ink); font-size: .9rem; }
.help-topics .topic-link:hover { color: var(--accent); text-decoration: underline; }

/* --- სწავლის გვერდი (გვერდითი სვეტი) --- */
.lp-num { margin: 0; font-size: 1.25rem; font-weight: 800; }
.aside .daily-error { display: block; padding: 18px 20px; border-radius: 22px; }
.aside .daily-error h2 { font-size: 1.1rem; display: flex; align-items: center; gap: 10px; }
.aside .daily-error .err-ic { width: 40px; height: 40px; flex: 0 0 auto; }
.aside .daily-error .daily-ex { font-size: .9rem; }
.aside .quiz-band { display: grid; gap: 6px; }
.aside .quiz-band .btn { justify-self: start; margin-top: 6px; }
.learn-next { display: grid; gap: 0; padding: 4px 0; }
.learn-next a { display: grid; gap: 2px; padding: 12px 18px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.learn-next a:first-child { border-top: 0; }
.learn-next a:hover b { color: var(--accent); }
.learn-next small { font-size: .85rem; }
.lp-mobile { display: none; }
@media (max-width: 999px) { .lp-mobile { display: block; margin: 0 0 12px; font-weight: 600; } }
/* --- გაკვეთილის გვერდი --- */
.lesson-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lesson-nav .card { display: grid; gap: 2px; padding: 14px 16px; color: inherit; text-decoration: none; }
.lesson-nav .card:hover { border-color: var(--btn); }
.lesson-nav .ln-next { text-align: right; }
@media (max-width: 560px) { .lesson-nav { grid-template-columns: 1fr; } .lesson-nav .ln-next { text-align: left; } }
.ls-tool { display: grid; gap: 4px; color: inherit; text-decoration: none; background: var(--tile-mint); color: var(--tile-ink-on-dark); border-color: transparent; }
.ls-tool .eyebrow, .ls-tool .muted { color: var(--tile-ink-on-dark); opacity: .85; }
.ls-tool:hover { filter: brightness(1.05); }
.ls-toc .learn-track { margin: 8px 0 10px; height: 6px; }
.ls-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ls-toc a { display: flex; gap: 10px; align-items: flex-start; padding: 6px 8px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .9rem; line-height: 1.35; }
.ls-toc a:hover { background: var(--sunk); }
.ls-toc a[aria-current] { background: var(--sunk); font-weight: 700; }
.ls-n { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700; background: var(--sunk); color: var(--muted); }
.ls-toc a.is-read .ls-n { background: var(--pine); color: #fff; }
.ls-toc a[aria-current] .ls-n { background: var(--btn); color: var(--btn-ink); }
/* --- ძილის დღიური --- */
.sleep-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sleep-axis { display: flex; justify-content: space-between; margin: 0 92px 4px 62px; font-size: .72rem; color: var(--muted); }
.sleep-rows { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.sleep-rows a { display: grid; grid-template-columns: 44px 1fr 84px 32px; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sleep-rows a:hover { border-color: var(--accent); }
.sl-track { position: relative; height: 12px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.sl-track i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--tile-sky); }
.sl-meta { display: grid; line-height: 1.2; font-size: .9rem; }
.sl-meta small { font-size: .75rem; }
@media (max-width: 560px) {
  .sleep-axis { margin: 0 0 4px; }
  .sleep-rows a { grid-template-columns: 40px 1fr 32px; }
  .sl-meta { grid-column: 2; grid-row: 2; }
  .sleep-rows .mr-dot { grid-row: 1 / span 2; grid-column: 3; }
  .sleep-rows .mr-day { grid-row: 1 / span 2; }
}
/* --- ვარჯიში: გვერდითი სვეტი --- */
.quiz-hints summary { cursor: pointer; font-weight: 700; }
.quiz-hints dl { margin: 12px 0 0; display: grid; gap: 4px; }
.quiz-hints dt { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 8px; }
.quiz-hints dt .err-ic { width: 26px; height: 26px; }
.quiz-hints dd { margin: 0 0 0 34px; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.sleep-form input[type="time"], .sleep-form input[type="number"] { width: 100%; font-size: 1.05rem; padding: 10px 12px; }
.sleep-rows .sl-row { display: grid; grid-template-columns: 50px 1fr 170px 32px; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.sl-note { margin: 4px 0 4px 54px; font-size: .9rem; }
@media (max-width: 560px) { .sleep-rows .sl-row { grid-template-columns: 40px 1fr 32px; } .sleep-rows .sl-row .sl-meta { grid-column: 2; grid-row: 2; } .sl-note { margin-left: 8px; } }
