/* Zachkana — ilova joylashuvi va sahifa uslublari (Zachkana UI ustiga) */

/* ---------- Joylashuv: telefon (wap) birinchi ---------- */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--z-primary); color: var(--z-on-primary); border-radius: var(--z-radius-sm); font-weight: 700; }
.skip-link:focus { top: 8px; }

.app-sidebar { display: none; }
.app-main { min-height: 100vh; min-height: 100dvh; }
.view {
  width: 100%;
  max-width: var(--z-content-max);
  margin: 0 auto;
  padding: var(--z-space-4) var(--z-space-4) calc(var(--z-tabbar-h) + var(--z-safe-bottom) + var(--z-space-8));
  outline: none;
}
.view-enter { animation: view-in var(--z-dur-3) var(--z-ease); }
@keyframes view-in { from { opacity: 0; transform: translateY(6px); } }
body.is-locked { overflow: hidden; }

.appbar-logo .z-logo__mark { width: 32px; height: 32px; }
.appbar-logo .z-logo__text { font-size: 1.15rem; }
.z-appbar__title { display: none; }
body:not(.is-home) .appbar-logo { display: none; }
body:not(.is-home) .z-appbar__title { display: block; }
body.has-back .z-appbar__title { padding-left: 0; }
.appbar-actions { display: flex; gap: 2px; margin-left: auto; }
.bell { position: relative; }
.bell .z-dot { position: absolute; top: 11px; right: 12px; box-shadow: 0 0 0 2px var(--z-bg); }

/* Toʻliq ekranli rejim (chat suhbati) — tab panel yashiriladi */
body.is-immersive .app-tabbar { display: none; }
body.is-immersive .view { padding-bottom: 0; }
body.is-immersive .z-toast-region { bottom: calc(96px + var(--z-safe-bottom)); }

.net-banner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px; font-size: var(--z-text-sm); font-weight: 700;
  background: var(--z-loy-800); color: var(--z-loy-50);
}
.net-banner.is-ok { background: var(--z-success); color: #fff; }
.net-banner[hidden] { display: none; }

/* ---------- Katta ekran (web) ---------- */
@media (min-width: 1024px) {
  .app-sidebar { display: flex; gap: var(--z-space-4); }
  .app-sidebar > .z-logo { padding: 4px 8px 12px; }
  .app-main { margin-left: var(--z-sidebar-w); }
  .app-tabbar { display: none; }
  .appbar-logo { display: none !important; }
  .z-appbar__title { display: block !important; }
  .z-appbar { padding-left: var(--z-space-8); padding-right: var(--z-space-6); }
  .view { padding: var(--z-space-6) var(--z-space-8) var(--z-space-16); }
  body.is-immersive .view { padding-bottom: 0; }
  .z-toast-region { bottom: 24px; }
  body.is-immersive .z-toast-region { bottom: 110px; }
  body.is-home .z-appbar__title { visibility: hidden; }
}
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--z-space-3); padding-top: var(--z-space-4); }
.sidebar-user { border-top: 1px solid var(--z-border); padding-top: var(--z-space-3); display: flex; flex-direction: column; gap: 2px; }
.sidebar-user .z-list-item { padding: 8px 10px; min-height: 48px; }
.sidebar-user .z-icon { color: var(--z-text-2); margin: 0 8px; }

/* ---------- Umumiy sahifa bloklari ---------- */
.section { margin-top: var(--z-space-10); }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: var(--z-space-3); margin-bottom: var(--z-space-4); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--z-space-4); margin: var(--z-space-2) 0 var(--z-space-6); }
.page-head > div { max-width: 640px; }
.page-head .z-h2 { margin: 6px 0 8px; }
.page-head p { margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--z-space-3); align-items: center; margin-bottom: var(--z-space-4); }
.toolbar__search { flex: 1 1 260px; }
/* Tor ekranda koʻrinish tugmalari (Daraxt / Roʻyxat / Butun qishloq) butun enga teng boʻlinadi */
@media (max-width: 520px) {
  .toolbar .z-segment { display: flex; width: 100%; }
  .toolbar .z-segment button { flex: 1 1 0; min-width: 0; justify-content: center; padding: 2px 6px; gap: 4px; white-space: normal; line-height: 1.15; text-align: center; }
  .toolbar .z-segment .z-icon { flex: none; }
}
.linkish { background: none; border: 0; padding: 0; color: var(--z-primary-text); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--z-success); margin-right: 6px; box-shadow: 0 0 0 3px var(--z-success-soft); vertical-align: 1px; }
.site-foot { margin-top: var(--z-space-12); text-align: center; }
.site-foot p { margin: 4px 0; }
.site-foot__contacts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.site-foot__contacts > * { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.site-foot__contacts svg { width: 16px; height: 16px; opacity: .7; }
.sheet .site-foot__contacts, #sheet .site-foot__contacts { margin: 8px 0 12px; }
.home-side { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.news-card--pinned { border-color: var(--z-accent, var(--z-border-strong)); }
.maint-note { margin-bottom: 16px; }
.maint { min-height: 60vh; }

/* ---------- Bosh sahifa ---------- */
.hero {
  --hero-sky: linear-gradient(180deg, #fdf1dc 0%, #f8e2c1 55%, #f2d7b0 100%);
  position: relative; overflow: hidden;
  border-radius: var(--z-radius-xl);
  background: var(--hero-sky);
  min-height: 460px;
  display: flex; flex-direction: column;
  box-shadow: var(--z-shadow-2);
  --z-ornament: rgba(168, 103, 15, .09);
}
.hero__content { position: relative; z-index: 1; padding: var(--z-space-8) var(--z-space-6) 0; max-width: 620px; }
.hero__content .z-h1 { margin: 10px 0 12px; color: #241e17; }
.hero__content .z-lead { color: #574a36; }
.hero__content .z-overline { color: #a8670f; }
.hero__cta { margin-top: var(--z-space-6); }
.hero__btn2 { --_bg: rgba(255, 253, 248, .75); --_fg: #241e17; --_bd: rgba(87, 74, 54, .2); backdrop-filter: blur(6px); }
.hero__art { margin-top: auto; height: 200px; position: relative; }
.village-art { width: 100%; height: 100%; }
@media (min-width: 720px) {
  .hero { min-height: 480px; }
  .hero__content { padding: var(--z-space-12) var(--z-space-12) 0; }
  .hero__art { height: 240px; }
}
@media (min-width: 1200px) {
  .hero__art { position: absolute; inset: auto 0 0 0; height: 300px; }
  .hero__content { padding-bottom: 260px; }
}
/* Manzara ranglari — yorugʻ */
.va-star { fill: #fff; opacity: 0; }
.va-sun { fill: #f4c374; }
.va-m1 { fill: #c5d3ea; }
.va-snow { fill: #fffdf8; opacity: .9; }
.va-m2 { fill: #a9c196; }
.va-tree ellipse { fill: #5f8a57; }
.va-trunk { fill: #7d6a4c; }
.va-house { fill: #efe2c9; }
.va-roof { fill: #c98f55; }
.va-win { fill: #7d6a4c; opacity: .55; }
.va-m3 { fill: #86a674; }
.va-river { fill: #9fc0f0; opacity: .8; }
.va--sepia { filter: sepia(.55) saturate(.8); }

/* Manzara — qorongʻi (tungi qishloq) */
:root[data-theme="dark"] .hero { --hero-sky: linear-gradient(180deg, #0c1629 0%, #16233d 60%, #22304a 100%); --z-ornament: rgba(159, 192, 240, .07); }
:root[data-theme="dark"] .hero__content .z-h1 { color: #f4ecdf; }
:root[data-theme="dark"] .hero__content .z-lead { color: #cfc2ad; }
:root[data-theme="dark"] .hero__content .z-overline { color: #f4c374; }
:root[data-theme="dark"] .hero__btn2 { --_bg: rgba(30, 26, 21, .6); --_fg: #f4ecdf; --_bd: rgba(244, 236, 223, .2); }
:root[data-theme="dark"] .va-star { opacity: .85; }
:root[data-theme="dark"] .va-sun { fill: #f4ecdf; opacity: .9; }
:root[data-theme="dark"] .va-m1 { fill: #2b3a57; }
:root[data-theme="dark"] .va-snow { fill: #c9d6ea; opacity: .5; }
:root[data-theme="dark"] .va-m2 { fill: #1f3026; }
:root[data-theme="dark"] .va-tree ellipse { fill: #1a2a1f; }
:root[data-theme="dark"] .va-trunk { fill: #2a241c; }
:root[data-theme="dark"] .va-house { fill: #3a3126; }
:root[data-theme="dark"] .va-roof { fill: #57432c; }
:root[data-theme="dark"] .va-win { fill: #f0b458; opacity: 1; }
:root[data-theme="dark"] .va-m3 { fill: #16211a; }
:root[data-theme="dark"] .va-river { fill: #2a5ea8; opacity: .6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero { --hero-sky: linear-gradient(180deg, #0c1629 0%, #16233d 60%, #22304a 100%); --z-ornament: rgba(159, 192, 240, .07); }
  :root:not([data-theme="light"]) .hero__content .z-h1 { color: #f4ecdf; }
  :root:not([data-theme="light"]) .hero__content .z-lead { color: #cfc2ad; }
  :root:not([data-theme="light"]) .hero__content .z-overline { color: #f4c374; }
  :root:not([data-theme="light"]) .hero__btn2 { --_bg: rgba(30, 26, 21, .6); --_fg: #f4ecdf; --_bd: rgba(244, 236, 223, .2); }
  :root:not([data-theme="light"]) .va-star { opacity: .85; }
  :root:not([data-theme="light"]) .va-sun { fill: #f4ecdf; opacity: .9; }
  :root:not([data-theme="light"]) .va-m1 { fill: #2b3a57; }
  :root:not([data-theme="light"]) .va-snow { fill: #c9d6ea; opacity: .5; }
  :root:not([data-theme="light"]) .va-m2 { fill: #1f3026; }
  :root:not([data-theme="light"]) .va-tree ellipse { fill: #1a2a1f; }
  :root:not([data-theme="light"]) .va-trunk { fill: #2a241c; }
  :root:not([data-theme="light"]) .va-house { fill: #3a3126; }
  :root:not([data-theme="light"]) .va-roof { fill: #57432c; }
  :root:not([data-theme="light"]) .va-win { fill: #f0b458; opacity: 1; }
  :root:not([data-theme="light"]) .va-m3 { fill: #16211a; }
  :root:not([data-theme="light"]) .va-river { fill: #2a5ea8; opacity: .6; }
}

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--z-space-3); margin-top: var(--z-space-4); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); gap: var(--z-space-4); } }
.stat-card { padding: var(--z-space-4); display: flex; flex-direction: column; gap: var(--z-space-3); }
.stat-card__icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--z-primary-soft); color: var(--z-primary-text); }
.stat-card:nth-child(2) .stat-card__icon { background: var(--z-accent-soft); color: var(--z-accent-text); }
.stat-card:nth-child(3) .stat-card__icon { background: var(--z-success-soft); color: var(--z-success); }
.stat-card:nth-child(4) .stat-card__icon { background: var(--z-danger-soft); color: var(--z-danger); }
.stat-card .z-stat__value { font-size: var(--z-text-2xl); }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--z-space-3); }
:root[data-font="xl"] .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .tiles, :root[data-font="xl"] .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  padding: var(--z-space-4) var(--z-space-2);
  border-radius: var(--z-radius-lg);
  background: var(--z-surface); border: 1px solid var(--z-border);
  color: var(--z-text); text-decoration: none;
  transition: transform var(--z-dur-2) var(--z-ease), box-shadow var(--z-dur-2), border-color var(--z-dur-2);
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--z-shadow-2); border-color: var(--z-border-strong); }
.tile__icon { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 4px; background: var(--z-primary-soft); color: var(--z-primary-text); }
.tile__icon .z-icon { width: 24px; height: 24px; }
.tile--2 .tile__icon, .tile--5 .tile__icon { background: var(--z-accent-soft); color: var(--z-accent-text); }
.tile--3 .tile__icon, .tile--6 .tile__icon { background: var(--z-info-soft); color: var(--z-info); }
.tile--4 .tile__icon { background: var(--z-danger-soft); color: var(--z-danger); }
.tile__title { font-weight: 800; font-size: var(--z-text-sm); overflow-wrap: anywhere; }
.tile__sub { font-size: calc(11px * var(--z-fs)); color: var(--z-text-3); }

.home-cols { display: grid; gap: var(--z-space-8); }
@media (min-width: 900px) { .home-cols { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.news-card__title { font-size: var(--z-text-md); font-weight: 800; margin: 10px 0 4px; line-height: 1.35; }
.news-card p { margin: 0; }
.today-card p { color: rgba(255, 255, 255, .8); font-size: var(--z-text-sm); margin: 0 0 16px; }
.today-card { --z-ornament: rgba(255, 255, 255, .07); }
.today-card__year { font-family: var(--z-font-display); font-size: 3rem; font-weight: 700; line-height: 1; margin: 8px 0 4px; color: var(--z-orik-300); }
.today-card__title { margin: 0 0 6px; font-size: var(--z-text-lg); }

.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); gap: var(--z-space-3); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; margin: 0 -2px; scrollbar-width: thin; }
@media (max-width: 719px) { .carousel { margin: 0 calc(var(--z-space-4) * -1); padding-left: var(--z-space-4); padding-right: var(--z-space-4); scroll-padding: var(--z-space-4); } }
.vet-mini { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: var(--z-space-5) var(--z-space-3); }
.vet-mini strong { font-size: var(--z-text-sm); line-height: 1.3; margin-top: 6px; }
.chat-promo .z-card__body { flex-wrap: wrap; }

/* ---------- Shajara ---------- */
.clan-summary { margin: var(--z-space-3) 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tree-wrap { position: relative; }
.tree-viewport {
  position: relative; overflow: hidden;
  height: min(68vh, 640px); min-height: 380px;
  border-radius: var(--z-radius-lg);
  border: 1px solid var(--z-border);
  background: var(--z-surface-2);
  touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.tree-viewport.is-dragging { cursor: grabbing; }
.tree-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; width: max-content; padding: 24px; will-change: transform; }
.tree-canvas.is-animating { transition: transform .35s var(--z-ease); }
.tree-controls { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.tree-controls .z-btn { box-shadow: var(--z-shadow-2); }
.tree-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.tree-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 10px; border-radius: 3px; display: inline-block; border: 1px solid var(--z-border-strong); }
.lg-m { border-top: 3px solid var(--z-lojuvard-500); }
.lg-f { border-top: 3px solid var(--z-anor-500); }
.lg-d { background: var(--z-bg-sunken); }
.lg-me { box-shadow: 0 0 0 2px var(--z-accent); border-color: transparent; }
.z-person.is-match { box-shadow: 0 0 0 3px var(--z-info), var(--z-shadow-2); }
.z-list-item.is-match { background: var(--z-info-soft); }

.gen-list { display: grid; gap: var(--z-space-4); }
@media (min-width: 900px) { .gen-list { grid-template-columns: repeat(2, 1fr); align-items: start; } }
.gen-card { padding: var(--z-space-2); }
.gen-card__head { display: flex; align-items: center; gap: 10px; padding: var(--z-space-3); }
.gen-card__head .z-caption { margin-left: auto; }
.gen-card__num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--z-accent-soft); color: var(--z-accent-text); font-family: var(--z-font-display); font-weight: 700; font-size: 14px; }

/* Varaq ichidagi shaxs */
.sheet-close { position: absolute; right: 14px; top: 14px; }
.person-head { display: flex; gap: var(--z-space-4); align-items: center; margin: 8px 40px 16px 0; }
.person-head .is-deceased { filter: grayscale(.5); }
.person-head .z-h3 { margin-bottom: 2px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; margin: 16px 0; background: var(--z-surface); border: 1px solid var(--z-border); border-radius: var(--z-radius-md); overflow: hidden; }
.facts > div { background: var(--z-surface); padding: 10px 14px; box-shadow: 1px 1px 0 var(--z-border); }
.facts dt { font-size: var(--z-text-xs); color: var(--z-text-3); font-weight: 700; }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.facts--compact { grid-template-columns: 1fr 1fr; margin: 0; }
.sheet-sub { font-size: var(--z-text-sm); font-weight: 800; margin: 20px 0 10px; color: var(--z-text-2); text-transform: uppercase; letter-spacing: .08em; }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.sheet-actions .z-btn { flex: 1 1 180px; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; padding-block: 8px; }
.z-sheet .z-h3 { padding-right: 40px; }
.form { margin-top: 16px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.upload { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px dashed var(--z-border-strong); border-radius: var(--z-radius-md); cursor: pointer; background: var(--z-surface-2); }
.upload:hover { border-color: var(--z-primary); }
.upload > .z-icon { width: 28px; height: 28px; color: var(--z-primary-text); }
.install-steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.install-steps li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--z-radius-md); background: var(--z-surface-2); flex-wrap: wrap; }
.install-steps li > span { width: 28px; height: 28px; border-radius: 50%; background: var(--z-primary); color: var(--z-on-primary); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }

/* ---------- Tarix ---------- */
.article-hero { padding: var(--z-space-8) var(--z-space-6); border-radius: var(--z-radius-xl); background: var(--z-surface); border: 1px solid var(--z-border); margin-bottom: var(--z-space-8); }
.article-hero .z-h1 { margin: 10px 0 12px; }
.article-meta { margin-top: var(--z-space-5); --z-gap: 18px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article { display: grid; gap: var(--z-space-8); }
@media (min-width: 1100px) { .article { grid-template-columns: 240px 1fr; } .toc { position: sticky; top: calc(var(--z-appbar-h) + 16px); align-self: start; } }
.toc ol { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.toc button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: var(--z-radius-sm); color: var(--z-text-2); font-weight: 600; font-size: var(--z-text-sm); }
.toc button:hover { background: var(--z-bg-sunken); color: var(--z-text); }
.toc button span { font-family: var(--z-font-display); color: var(--z-accent-text); font-weight: 700; }
@media (max-width: 1099px) { .toc { padding: var(--z-space-4); border-radius: var(--z-radius-lg); background: var(--z-surface); border: 1px solid var(--z-border); } }
.chapter { scroll-margin-top: calc(var(--z-appbar-h) + 16px); }
.chapter h2 { display: flex; align-items: baseline; gap: 12px; }
.chapter__num { font-size: var(--z-text-md); color: var(--z-accent-text); font-family: var(--z-font-ui); font-weight: 800; }
.figure { margin: 1.6em 0; }
.figure svg { border-radius: var(--z-radius-lg); aspect-ratio: 16 / 7; width: 100%; height: auto; background: linear-gradient(#f6e6cc, #efd9b4); }
.figure figcaption { font-size: var(--z-text-sm); color: var(--z-text-3); margin-top: 8px; }
.memory-cta { margin-top: var(--z-space-10); }
.memory-cta .z-h4 { margin-bottom: 6px; }

/* ---------- Xronologiya ---------- */
.timeline-page { margin-top: var(--z-space-8); }

/* ---------- Faxriylar ---------- */
.vet-grid { display: grid; gap: var(--z-space-4); margin-top: var(--z-space-5); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.vet-card { text-align: center; }
.vet-card__band { height: 64px; background: linear-gradient(135deg, var(--z-lojuvard-500), var(--z-lojuvard-800)); --z-ornament: rgba(255, 255, 255, .12); }
.vet-card__body { padding: 0 var(--z-space-5) var(--z-space-5); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vet-card__body > .z-avatar { margin-top: -32px; }
.vet-card__name { font-family: var(--z-font-display); font-size: var(--z-text-lg); font-weight: 600; margin: 8px 0 0; line-height: 1.25; }
.vet-card p { margin: 4px 0 8px; }
.vet-hero { display: flex; flex-wrap: wrap; gap: var(--z-space-6); align-items: center; padding: var(--z-space-8) var(--z-space-6); border-radius: var(--z-radius-xl); background: var(--z-surface); border: 1px solid var(--z-border); }
.vet-hero .z-h2 { margin: 8px 0 4px; }
.vet-hero p { margin: 0 0 12px; }
.vet-body { display: grid; gap: var(--z-space-8); margin-top: var(--z-space-8); }
@media (min-width: 900px) { .vet-body { grid-template-columns: 1fr 300px; } }
.memories { margin-top: var(--z-space-10); }

/* ---------- Suhbat ---------- */
.chat-layout { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Uzun matn (oxirgi xabar) ustunni kengaytirib, sahifani ekrandan chiqarib yubormasin */
.chat-list, .chat-pane, .channel .z-list-item__main { min-width: 0; }
.chat-layout[data-mode="list"] .chat-pane { display: none; }
.chat-layout[data-mode="pane"] .chat-list { display: none; }
.chat-list__head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.channel { position: relative; }
.channel.is-active { background: var(--z-primary-soft); }
.channel__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--z-accent-soft); color: var(--z-accent-text); flex: none; }
.channel__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.chat-note { margin-top: var(--z-space-4); }
.chat-pane { display: flex; flex-direction: column; min-height: 0; }
.chat-pane__head { display: none; }
.chat-scroll { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: var(--z-space-2) 0 var(--z-space-4); }
.chat-scroll .z-msg--grouped { margin-top: -2px; }
.chat-compose { position: sticky; bottom: 0; padding: var(--z-space-2) 0 calc(var(--z-space-3) + var(--z-safe-bottom)); background: linear-gradient(transparent, var(--z-bg) 30%); }
.chat-empty { margin: auto; }
body[data-route="chat"].is-immersive .view { display: flex; flex-direction: column; min-height: calc(100dvh - var(--z-appbar-h) - var(--z-safe-top)); }
body[data-route="chat"].is-immersive .chat-layout, body[data-route="chat"].is-immersive .chat-pane { flex: 1; }

@media (min-width: 1024px) {
  body[data-route="chat"] .view { max-width: none; padding: 0; }
  body[data-route="chat"] .site-foot { display: none; }
  .chat-layout, .chat-layout[data-mode] { grid-template-columns: 340px minmax(0, 1fr); height: calc(100dvh - var(--z-appbar-h)); }
  .chat-layout .chat-list, .chat-layout .chat-pane { display: flex !important; }
  .chat-list { flex-direction: column; padding: var(--z-space-5) var(--z-space-4); border-right: 1px solid var(--z-border); overflow-y: auto; background: var(--z-surface); }
  .chat-list .chat-note { margin-top: auto; }
  .chat-pane { height: 100%; overflow: hidden; }
  .chat-pane__head { display: flex; align-items: center; gap: 12px; padding: 12px var(--z-space-6); border-bottom: 1px solid var(--z-border); background: var(--z-surface); }
  .chat-pane__head > div { flex: 1; }
  .chat-scroll { overflow-y: auto; padding: var(--z-space-4) var(--z-space-8); }
  .chat-compose { padding: var(--z-space-3) var(--z-space-8) var(--z-space-5); }
  body[data-route="chat"] .z-appbar { border-bottom-color: var(--z-border); }
}

/* ---------- Menyu, profil ---------- */
.profile-card { margin-bottom: var(--z-space-6); }
.menu-group { margin-bottom: var(--z-space-5); }
.menu-group .z-nav-label { padding-left: 4px; padding-top: 0; }
.menu-group .z-card { padding: 4px 0; }
.menu-group .z-list-item { border-radius: 0; cursor: pointer; }
.menu-group li:last-child .z-list-item { border-bottom: 0; }
.menu-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--z-primary-soft); color: var(--z-primary-text); flex: none; }

.auth { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--z-space-8); max-width: 960px; margin: var(--z-space-4) auto 0; align-items: center; }
@media (min-width: 900px) { .auth { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Uzun izoh matni ekranni kengaytirmasin — qatorga boʻlinadi */
.auth .z-list-item__main { min-width: 0; }
.z-list-item__sub.is-wrap, .z-list-item__title.is-wrap { white-space: normal; overflow-wrap: anywhere; }
.auth-card__top { height: 120px; display: grid; place-items: center; background: linear-gradient(135deg, var(--z-lojuvard-500), var(--z-lojuvard-800)); --z-ornament: rgba(255, 255, 255, .12); }
.auth-card__top img { width: 64px; height: 64px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.25)); }
.auth-card .z-h3 { margin-bottom: 6px; }
.phone-input { display: flex; align-items: stretch; }
.phone-input span { display: grid; place-items: center; padding: 0 14px; border: 1px solid var(--z-border); border-right: 0; border-radius: var(--z-radius-sm) 0 0 var(--z-radius-sm); background: var(--z-bg-sunken); font-weight: 700; }
.phone-input .z-input { border-radius: 0 var(--z-radius-sm) var(--z-radius-sm) 0; }
.perk-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--z-accent-soft); color: var(--z-accent-text); flex: none; }
.auth-perks .z-h4 { margin-bottom: 16px; }
.sidebar-user .z-list-item__sub, .z-list-item__main > .z-list-item__title, .z-list-item__main > .z-list-item__sub { display: block; }
@media (min-width: 1024px) { body[data-route="chat"] .appbar-back { display: none !important; } }
.form-error { color: var(--z-danger); font-size: var(--z-text-sm); font-weight: 600; margin: 0; }
.auth-card__top .z-avatar { box-shadow: 0 0 0 4px rgba(255,255,255,.25); }

/* Google / Telegram orqali kirish */
.social-login { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.social-btn { gap: 10px; }
.social-logo { width: 20px; height: 20px; flex: none; }
.tg-login { display: flex; justify-content: center; min-height: 44px; align-items: center; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--z-text-3); font-size: var(--z-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--z-border); }
.menu-icon .social-logo { width: 18px; height: 18px; }

/* Qoʻngʻiroqcha va bildirishnomalar */
.bell__count { position: absolute; top: 4px; right: 2px; height: 18px; min-width: 18px; font-size: 10px; box-shadow: 0 0 0 2px var(--z-bg); }
.notif-head { margin: 0 0 6px; }
.notif-list .z-list-item { align-items: flex-start; padding: 12px 8px; }
.notif .z-list-item__main { display: flex; flex-direction: column; gap: 2px; }
.notif__title { font-weight: 700; line-height: 1.35; white-space: normal; }
.notif__text { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif.is-unread { background: var(--z-primary-soft); }
.notif .z-dot { margin-top: 8px; flex: none; }
.notif > .z-icon { margin-top: 8px; }
.news-card { display: block; }
.announcement__body { font-size: var(--z-text-md); }

/* Chat: javob berish va oʻchirish */
.z-msg__body { display: flex; flex-direction: column; min-width: 0; }
.z-msg--me .z-msg__body { align-items: flex-end; }
.z-bubble { cursor: pointer; }
.z-bubble__reply {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%;
  margin: 2px 0 6px; padding: 6px 10px; border: 0; border-left: 3px solid var(--z-accent);
  border-radius: 8px; background: var(--z-bg-sunken); color: inherit; text-align: left; font-size: var(--z-text-sm);
}
.z-bubble__reply strong { font-size: var(--z-text-xs); color: var(--z-accent-text); }
.z-bubble__reply span { opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.z-msg--me .z-bubble__reply { background: rgba(255, 255, 255, .16); border-left-color: rgba(255, 255, 255, .7); }
.z-msg--me .z-bubble__reply strong { color: inherit; }
.msg-actions { display: none; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.z-msg.is-selected .msg-actions { display: flex; }
.z-msg.is-selected .z-bubble { box-shadow: 0 0 0 2px var(--z-primary); }
.msg-act .z-icon { width: 14px; height: 14px; }
.msg-act--danger { --_fg: var(--z-danger); }
@media (hover: hover) { .z-msg:hover .msg-actions { display: flex; } }
.z-msg.is-flash .z-bubble { animation: msg-flash 2s var(--z-ease); }
@keyframes msg-flash { 0%, 60% { box-shadow: 0 0 0 3px var(--z-accent); } 100% { box-shadow: var(--z-shadow-1); } }
.reply-bar {
  display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 8px 8px 8px 12px;
  background: var(--z-surface-raised); border: 1px solid var(--z-border); border-left: 3px solid var(--z-accent);
  border-radius: var(--z-radius-md); box-shadow: var(--z-shadow-1);
}
.reply-bar > .z-icon { color: var(--z-accent-text); }
.reply-bar__main { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: var(--z-text-sm); }
.reply-bar__main span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--z-text-2); }
.reply-bar[hidden] { display: none; }

/* Shajara: qishloq / oilaviy boʻlimlari */
.shajara-tabs { display: flex; width: 100%; margin: 0 0 var(--z-space-4); }
.shajara-tabs a {
  flex: 1 1 0; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 4px var(--z-space-3); border-radius: var(--z-radius-pill);
  color: var(--z-text-2); font-weight: 700; font-size: var(--z-text-sm); text-decoration: none; text-align: center; line-height: 1.15;
}
.shajara-tabs .z-icon { flex: none; }
:root[data-font="xl"] .shajara-tabs .z-icon { display: none; }
.shajara-tabs a[aria-selected="true"] { background: var(--z-surface-raised); color: var(--z-text); box-shadow: var(--z-shadow-1); }
.shajara-tabs .z-icon { width: 18px; height: 18px; }
@media (min-width: 720px) { .shajara-tabs { width: auto; display: inline-flex; } .shajara-tabs a { flex: none; padding: 0 var(--z-space-5); } }
.fam-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fam-actions .z-btn { flex: 1 1 140px; }
.fam-delete { --_fg: var(--z-danger); }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--z-text-sm); }
.check-row input { width: 20px; height: 20px; accent-color: var(--z-primary); }
.fam-start .z-empty { padding-top: var(--z-space-10); padding-bottom: var(--z-space-10); }

/* ---------- Chat: reaksiyalar ---------- */
.msg-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.z-msg--me .msg-reacts, .z-msg--me .msg-actions { justify-content: flex-end; }
.react-chip {
  display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 9px;
  border: 1px solid var(--z-border); border-radius: 999px; background: var(--z-surface);
  color: var(--z-text-2); font: inherit; font-size: var(--z-text-sm); line-height: 1; cursor: pointer;
  transition: background var(--z-dur-1) var(--z-ease), border-color var(--z-dur-1) var(--z-ease);
}
.react-chip span { font-size: var(--z-text-xs); font-weight: 700; font-variant-numeric: tabular-nums; }
.react-chip.is-mine { border-color: var(--z-primary); background: var(--z-accent-soft); color: var(--z-accent-text); }
.react-pick { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--z-surface); border: 1px solid var(--z-border); box-shadow: var(--z-shadow-1); }
.react-pick__btn {
  width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1;
  cursor: pointer; transition: transform var(--z-dur-1) var(--z-ease), background var(--z-dur-1);
}
.react-pick__btn:hover, .react-pick__btn:focus-visible { background: var(--z-bg-sunken); transform: scale(1.15); }

/* ---------- Menyu: matn oʻlchami ---------- */
.font-size-row { flex-wrap: wrap; row-gap: 8px; }
.font-size-row .z-segment button { min-width: 44px; justify-content: center; padding: 0 12px; }
.font-size-a { font-family: var(--z-font-display); font-weight: 700; line-height: 1; }

/* ---------- Shajara: surat va qarindoshlik yoʻli ---------- */
.z-person--deceased .z-avatar--photo img { filter: grayscale(.7); }
.z-person--deceased { border-left-color: var(--z-text-3); border-right-color: var(--z-text-3); border-bottom-color: var(--z-text-3); border-bottom-style: dashed; }
.lg-path { box-shadow: 0 0 0 2px var(--z-success); border-color: transparent; }
.z-person.is-path { box-shadow: 0 0 0 3px var(--z-success), var(--z-shadow-2); }
.z-person--me.is-path { box-shadow: 0 0 0 3px var(--z-accent), 0 0 0 6px var(--z-success); }
.photo-edit { position: relative; flex: none; }
.photo-edit__btn { position: absolute; right: -6px; bottom: -6px; --_bg: var(--z-surface-raised); box-shadow: var(--z-shadow-2); cursor: pointer; }
.kin { margin: 4px 0 14px; padding: 12px 14px; border-radius: var(--z-radius-lg, 14px); background: var(--z-success-soft); }
.kin__term { display: flex; align-items: center; gap: 10px; color: var(--z-success); }
.kin__term > span { display: flex; flex-direction: column; }
.kin__term strong { font-size: var(--z-text-lg); color: var(--z-text); }
.kin__path { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.kin__path li { display: flex; align-items: center; gap: 4px; }
.kin__path li + li::before { content: "→"; color: var(--z-text-3); font-size: var(--z-text-sm); }
.kin__step { border: 1px solid var(--z-border); background: var(--z-surface); color: var(--z-text); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: var(--z-text-sm); font-weight: 600; cursor: pointer; }
.kin__step.is-me { border-color: var(--z-accent); background: var(--z-accent-soft); color: var(--z-accent-text); }
:root[data-theme="dark"] .kin { background: rgba(90, 160, 110, .14); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .kin { background: rgba(90, 160, 110, .14); } }
.z-list-item.is-path { background: var(--z-success-soft); box-shadow: inset 3px 0 0 var(--z-success); }
/* Katta shriftda roʻyxat matnlari kesilmasin — qatorga koʻchadi */
:root[data-font] .z-list-item__title, :root[data-font] .z-list-item__sub { white-space: normal; overflow-wrap: anywhere; }
.font-size-row .z-list-item__main { min-width: 7em; }

/* ---------- Qishloq shajarasi: qidiruv, urugʻ, qarindosh orqali qoʻshish ---------- */
.global-hits { margin: 10px 0 4px; padding: 8px; border: 1px solid var(--z-border); border-radius: var(--z-radius-lg); background: var(--z-surface); display: grid; gap: 2px; }
.global-hits__title { padding: 4px 8px; }
.hit {
  display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 8px; border: 0; border-radius: 12px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.hit:hover, .hit:focus-visible { background: var(--z-bg-sunken); }
.hit__main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.hit__main strong { overflow-wrap: anywhere; }
.hit .z-badge { flex: none; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rel-step { display: grid; gap: 10px; }
.rel-hits { display: grid; gap: 2px; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.rel-hits:empty { display: none; }
.rel-root-btn { justify-self: start; }
.rel-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border: 2px solid var(--z-primary); border-radius: 14px; background: var(--z-primary-soft); }
.rel-seg { justify-self: start; }
.tribe-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 2px; }
.z-chip--sm { min-height: 30px; padding: 0 12px; font-size: var(--z-text-xs); }
.chip-tribe { font-size: var(--z-text-xs); font-weight: 600; opacity: .7; }

/* ---------- Alifbo almashtirgich (Кирилл / Lotin) ---------- */
.script-toggle {
  min-height: 36px; padding: 0 12px; border: 1.5px solid var(--z-border-strong, var(--z-border)); border-radius: 999px;
  background: var(--z-surface); color: var(--z-text); font: inherit; font-weight: 800; font-size: var(--z-text-sm);
  line-height: 1; white-space: nowrap; cursor: pointer; flex: none;
  transition: border-color var(--z-dur-1) var(--z-ease), background var(--z-dur-1) var(--z-ease);
}
.script-toggle:hover, .script-toggle:focus-visible { border-color: var(--z-primary); background: var(--z-primary-soft); }
.appbar-actions { align-items: center; gap: 4px; }

/* ---------- Bosh sahifa: bosiladigan raqam kartalari ---------- */
.stat-card--link { position: relative; color: inherit; text-decoration: none; transition: border-color var(--z-dur-1) var(--z-ease), box-shadow var(--z-dur-1) var(--z-ease); }
.stat-card--link:hover, .stat-card--link:focus-visible { border-color: var(--z-primary); box-shadow: var(--z-shadow-2); }
.stat-card__go { position: absolute; top: 14px; right: 12px; color: var(--z-text-3); }
.stat-card__go .z-icon { width: 18px; height: 18px; }

/* ---------- Mening xonadonim ---------- */
.hh-note { margin: 8px 4px 0; }
.hh-dead-title { margin: 24px 0 2px; }
.hh-stats-link { margin-top: 16px; }
.hh-row .z-avatar.is-deceased { filter: grayscale(.7); opacity: .8; }
.hh-deceased { margin: 4px 0 14px; background: var(--z-bg-sunken); }
.date-3 { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; }

/* ---------- Aholi statistikasi ---------- */
.pop-kpis .z-caption { display: block; margin-top: 2px; }
.pop-grid { display: grid; gap: var(--z-space-4); margin-top: var(--z-space-4); }
@media (min-width: 1024px) { .pop-grid { grid-template-columns: 1fr 1fr; } .pop-grid > :last-child { grid-column: 1 / -1; } }
.pop-list { list-style: none; margin: 12px 0 0; padding: 0; }
.pop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--z-border); }
.pop-row:last-child { border-bottom: 0; }
.pop-row > span { display: flex; flex-direction: column; min-width: 0; }
.pop-row strong { font-size: var(--z-text-lg); font-variant-numeric: tabular-nums; }
.pop-note { margin: 16px 4px; }
.pyramid { display: grid; gap: 6px; margin-top: 12px; }
.pyramid__head, .pyramid__row { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr); align-items: center; gap: 8px; }
.pyramid__head { font-size: var(--z-text-xs); font-weight: 700; color: var(--z-text-3); }
.pyramid__head span:first-child { text-align: right; }
.pyramid__head span:nth-child(2), .pyramid__label { text-align: center; }
.pyramid__label { font-size: var(--z-text-xs); font-weight: 700; color: var(--z-text-2); font-variant-numeric: tabular-nums; }
.pyramid__bar { display: flex; align-items: center; gap: 6px; height: 22px; }
.pyramid__bar i { display: block; height: 100%; min-width: 2px; border-radius: 6px; }
.pyramid__bar b { font-size: var(--z-text-xs); font-variant-numeric: tabular-nums; color: var(--z-text-2); }
.pyramid__bar--m { flex-direction: row-reverse; }
.pyramid__bar--m i { background: var(--z-lojuvard-500, #2a5ea8); }
.pyramid__bar--f i { background: var(--z-anor-500, #b8323a); }

/* ---------- Fotoalbom ---------- */
.album-tabs { margin-bottom: var(--z-space-5); flex-wrap: wrap; overflow: visible; }
.album-tabs .z-chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.album-tabs .z-chip .z-icon { width: 16px; height: 16px; }
.album-tabs .z-counter { position: static; }
.section--tight { margin-top: 0; }
.albums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--z-space-4); margin-bottom: var(--z-space-6); }
@media (min-width: 700px) { .albums { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .albums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.album-card { display: flex; flex-direction: column; gap: 2px; color: var(--z-text); text-decoration: none; min-width: 0; }
.album-card__cover { aspect-ratio: 4 / 3; border-radius: var(--z-radius-lg); overflow: hidden; background: var(--z-surface-2); border: 1px solid var(--z-border); display: grid; place-items: center; margin-bottom: 6px; transition: transform var(--z-dur-2) var(--z-ease), box-shadow var(--z-dur-2); }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.album-card__cover .z-icon { width: 36px; height: 36px; color: var(--z-text-3); }
.album-card:hover .album-card__cover { transform: translateY(-2px); box-shadow: var(--z-shadow-2); }
.album-card__title { font-weight: 800; overflow-wrap: anywhere; }
.who-card { margin: var(--z-space-4) 0; border-color: var(--z-accent, var(--z-border-strong)); }
.who-card .z-row > .z-icon { width: 28px; height: 28px; color: var(--z-accent-text); flex: none; }

.pgrid { columns: 2 150px; column-gap: 8px; }
@media (min-width: 700px) { .pgrid { columns: 3 180px; } }
@media (min-width: 1200px) { .pgrid { columns: 5 180px; } }
.pgrid__item { position: relative; display: block; break-inside: avoid; margin-bottom: 8px; border-radius: var(--z-radius-md); overflow: hidden; background: var(--z-surface-2); }
.pgrid__item img { display: block; width: 100%; height: auto; transition: transform .3s var(--z-ease); }
.pgrid__item:hover img { transform: scale(1.03); }
.pgrid__year, .pstrip a span { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 11px; font-weight: 700; }
.pgrid__pending { position: absolute; right: 6px; top: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--z-surface); color: var(--z-text-2); font-size: 11px; font-weight: 700; }
.pgrid__pending .z-icon { width: 12px; height: 12px; }
.pstrip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
.pstrip a { position: relative; flex: none; width: 112px; height: 112px; border-radius: var(--z-radius-md); overflow: hidden; background: var(--z-surface-2); scroll-snap-align: start; }
.pstrip img { width: 100%; height: 100%; object-fit: cover; }
.pstrip__more { display: grid !important; place-content: center; justify-items: center; gap: 4px; color: var(--z-primary-text); font-weight: 700; font-size: var(--z-text-sm); text-decoration: none; border: 1px dashed var(--z-border-strong); background: transparent !important; }
.pstrip__more span { position: static !important; background: none !important; color: inherit !important; padding: 0 !important; }
.z-timeline-item .pstrip { margin-top: 10px; }
.z-timeline-item .pstrip a { width: 84px; height: 84px; }
.vet-photos { margin: var(--z-space-6) 0; }
.decades { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--z-space-3); }
.decade { display: flex; flex-direction: column; gap: 2px; padding: var(--z-space-4); text-decoration: none; color: var(--z-text); }
.decade strong { font-family: var(--z-font-display); font-size: var(--z-text-xl); }

/* Surat yuklash */
.up-previews { display: flex; flex-wrap: wrap; gap: 6px; }
.up-previews:empty { display: none; }
.up-previews img, .up-previews span { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; display: grid; place-items: center; background: var(--z-surface-2); font-weight: 700; }
.up-year { display: grid; gap: 8px; }
.up-progress { display: grid; gap: 6px; }
.up-progress__bar { height: 8px; border-radius: 999px; background: var(--z-surface-2); overflow: hidden; }
.up-progress__bar span { display: block; height: 100%; width: 0; background: var(--z-primary); transition: width .3s; }
.tp-or { display: flex; align-items: center; gap: 10px; color: var(--z-text-3); font-size: var(--z-text-sm); margin: 14px 0 10px; }
.tp-or::before, .tp-or::after { content: ""; flex: 1; height: 1px; background: var(--z-border); }
.tp-name { flex-wrap: nowrap; margin-bottom: 10px; }
.tp-name .z-input { flex: 1; min-width: 0; }
#tpHits { margin-top: 8px; display: grid; gap: 4px; max-height: 40vh; overflow-y: auto; }

/* Surat koʻruvchi */
body[data-route="albom"].is-immersive .view { padding: 0; max-width: none; }
.pv { display: grid; min-height: calc(100dvh - var(--z-appbar-h) - var(--z-safe-top)); }
.pv-stage { position: relative; background: #0d0b09; display: grid; place-items: center; overflow: hidden; min-height: 52vh; max-height: 72vh; touch-action: pan-y pinch-zoom; user-select: none; }
.pv-frame { position: relative; display: inline-block; line-height: 0; transition: transform .25s var(--z-ease); cursor: zoom-in; }
.pv-frame.is-zoomed { transform: scale(2.2); cursor: zoom-out; }
.pv-frame img { max-width: 100%; max-height: 72vh; width: auto; height: auto; display: block; }
.pv-stage.is-tagging .pv-frame { cursor: crosshair; outline: 2px dashed rgba(255, 255, 255, .6); outline-offset: 4px; }
.pv-mark { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .4); opacity: 0; transition: opacity .2s; pointer-events: none; }
.pv-mark b { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: rgba(0, 0, 0, .72); color: #fff; font: 600 12px/1.4 var(--z-font-sans, sans-serif); padding: 2px 8px; border-radius: 8px; }
.pv-mark.is-unknown { border-color: var(--z-orik-300, #f3c06a); }
.pv-stage:hover .pv-mark, .pv-mark.is-on { opacity: 1; }
.pv-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; backdrop-filter: blur(6px); }
.pv-nav:hover { background: rgba(255, 255, 255, .26); }
.pv-nav--prev { left: 10px; } .pv-nav--next { right: 10px; }
.pv-count { position: absolute; top: 10px; right: 12px; color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 700; background: rgba(0, 0, 0, .4); padding: 2px 8px; border-radius: 999px; }
.pv-taghint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; background: rgba(0, 0, 0, .78); color: #fff; border-radius: 999px; font-weight: 600; font-size: var(--z-text-sm); white-space: nowrap; }
.pv-taghint .z-icon { width: 18px; height: 18px; }
.pv-info { padding: var(--z-space-5) var(--z-space-4) calc(var(--z-space-8) + var(--z-safe-bottom)); display: grid; gap: var(--z-space-4); align-content: start; background: var(--z-surface); }
.pv-title { margin: 10px 0 4px; }
.pv-desc { margin: 0; color: var(--z-text-2); white-space: pre-line; }
.pv-people strong { display: inline-flex; align-items: center; gap: 6px; }
.pv-people strong .z-icon { width: 18px; height: 18px; }
.pv-people p { margin: 6px 0 0; line-height: 1.7; }
.pv-unknown { display: grid; gap: 6px; margin-top: 8px; padding: 10px 12px; border-radius: var(--z-radius-md); background: var(--z-accent-soft); }
.pv-x { border: 0; background: none; color: var(--z-text-3); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
.pv-x:hover { color: var(--z-danger); }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-comments { display: grid; gap: 12px; border-top: 1px solid var(--z-border); padding-top: var(--z-space-4); }
.pv-comments h2 { margin: 0; }
.pv-comment { display: flex; gap: 10px; align-items: flex-start; }
.pv-comment p { margin: 2px 0 0; white-space: pre-line; }
.pv-cform { display: grid; gap: 8px; justify-items: end; }
.pv-cform textarea { width: 100%; }
@media (min-width: 1024px) {
  .pv { grid-template-columns: minmax(0, 1fr) 380px; }
  .pv-stage { max-height: none; min-height: 0; }
  .pv-frame img { max-height: calc(100dvh - var(--z-appbar-h) - 32px); }
  .pv-info { border-left: 1px solid var(--z-border); max-height: calc(100dvh - var(--z-appbar-h)); overflow-y: auto; }
}
.pv-comments h2 { font-size: var(--z-text-lg); }

/* ---------- Videolar ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--z-space-5) var(--z-space-4); margin-top: var(--z-space-4); }
.vgrid--home { margin-top: 0; }
@media (max-width: 599px) { .vgrid { grid-template-columns: 1fr; } .vgrid--home { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; } .vgrid--home .vcard { scroll-snap-align: start; } }
.vcard { display: flex; flex-direction: column; gap: 4px; color: var(--z-text); text-decoration: none; min-width: 0; }
.vcard__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--z-radius-lg); overflow: hidden; background: #15120e; margin-bottom: 6px; box-shadow: var(--z-shadow-1); }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--z-ease); }
.vcard:hover .vcard__thumb img { transform: scale(1.04); }
.vcard__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .45), transparent 55%); }
.vcard__play { position: absolute; left: 12px; bottom: 12px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--z-primary); color: var(--z-on-primary); box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); transition: transform var(--z-dur-2) var(--z-ease); }
.vcard__play .z-icon { width: 18px; height: 18px; margin-left: 2px; }
.vcard:hover .vcard__play { transform: scale(1.08); }
.vcard__lock { position: absolute; right: 10px; top: 10px; z-index: 1; font-size: 14px; }
.vcard__title { font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-featured { display: grid; gap: var(--z-space-4); margin: var(--z-space-4) 0 var(--z-space-6); }
@media (min-width: 1024px) { .video-featured { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: center; gap: var(--z-space-8); } }
.video-featured__info h2 { margin: 6px 0; }
.video-featured__info h2 a { color: inherit; text-decoration: none; }
.video-page { max-width: 1040px; margin: 0 auto; }
.video-page__info { display: grid; gap: 10px; margin-top: var(--z-space-4); }
.video-page__info h1 { margin: 0; }
.video-page__desc { margin: 0; color: var(--z-text-2); white-space: pre-line; }

/* Zachkana pleyer */
.zv { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--z-radius-xl, 20px); overflow: hidden; background: #0d0b09; color: #fff; box-shadow: var(--z-shadow-2); outline: none; isolation: isolate; user-select: none; -webkit-user-select: none; }
.zv:focus-visible { box-shadow: 0 0 0 3px var(--z-primary), var(--z-shadow-2); }
.zv__media, .zv__frame, .zv__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zv__shield { position: absolute; inset: 0; z-index: 2; cursor: pointer; }
.zv:not(.is-started) .zv__shield { display: none; }
.zv__poster { position: absolute; inset: 0; z-index: 4; background: #15120e center / cover no-repeat; display: grid; place-items: center; transition: opacity .35s; }
.zv__poster::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0, 0, 0, .05), rgba(0, 0, 0, .55)), linear-gradient(to top, rgba(0, 0, 0, .7), transparent 45%); }
.zv.is-started:not(.is-ended) .zv__poster { opacity: 0; pointer-events: none; }
.zv.is-ended .zv__poster { opacity: 1; }
.zv__ptitle { position: absolute; left: 20px; right: 20px; bottom: 18px; font-family: var(--z-font-display); font-size: clamp(16px, 2.6vw, 24px); font-weight: 700; line-height: 1.25; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zv__big { position: relative; width: clamp(64px, 11vw, 92px); height: clamp(64px, 11vw, 92px); border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff; background: var(--z-primary); box-shadow: 0 0 0 8px rgba(255, 255, 255, .16), 0 0 0 16px rgba(255, 255, 255, .07), 0 18px 40px -12px rgba(0, 0, 0, .7); transition: transform var(--z-dur-2) var(--z-ease), background var(--z-dur-2); }
.zv__big::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px dashed rgba(244, 195, 116, .75); animation: zv-spin 18s linear infinite; }
.zv__big:hover { transform: scale(1.06); background: var(--z-primary-hover); }
.zv__big .z-icon { width: 42%; height: 42%; margin-left: 6%; }
.zv.is-ended .zv__big .z-icon { margin-left: 0; }
.zv__next { position: absolute; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; text-decoration: none; font-size: var(--z-text-sm); backdrop-filter: blur(6px); max-width: calc(100% - 32px); }
.zv__next b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zv__next .z-icon { width: 16px; height: 16px; flex: none; }
.zv__spin { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; pointer-events: none; }
/* Yuklanish: ikki qavat girih yulduz, ichida logotip */
.zv__girih { position: relative; width: 84px; height: 84px; display: block; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .5)); }
.zv__girih > span { position: absolute; inset: 0; }
.zv__girih svg { width: 100%; height: 100%; fill: none; stroke-width: 1.8; }
.zv__g1 svg { stroke: var(--z-orik-300, #f4c374); }
.zv__g2 { transform: scale(1.18); }
.zv__g2 svg { stroke: rgba(122, 166, 230, .85); stroke-width: 1.1; }
.zv__g1 { animation: zv-spin 2.4s linear infinite; }
.zv__g2 { animation: zv-spin-r 3.6s linear infinite; }
.zv__girih img { position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 10px; background: #fffdf8; padding: 3px; }
@keyframes zv-spin-r { from { transform: scale(1.18) rotate(0); } to { transform: scale(1.18) rotate(-360deg); } }
.zv.is-still .zv__g1, .zv.is-still .zv__g2 { animation: none; }
.zv__flash { position: absolute; left: 50%; top: 50%; z-index: 3; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: rgba(0, 0, 0, .5); display: grid; place-items: center; opacity: 0; pointer-events: none; }
.zv__flash .z-icon { width: 30px; height: 30px; }
.zv__flash.is-on { animation: zv-flash .6s ease-out; }
.zv__error { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; background: rgba(13, 11, 9, .92); }
.zv__error .z-icon { width: 34px; height: 34px; color: var(--z-orik-300, #f4c374); }
.zv__error p { margin: 0; max-width: 420px; line-height: 1.5; }
.zv__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; padding: 28px 12px 8px; background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, .35) 60%, transparent); transition: opacity .3s, transform .3s; }
.zv:not(.is-started) .zv__bar, .zv.is-ended .zv__bar, .zv.is-error .zv__bar { display: none; }
.zv.is-playing:not(.is-active) .zv__bar { opacity: 0; transform: translateY(8px); pointer-events: none; }
.zv.is-playing:not(.is-active) { cursor: none; }
.zv__seek { position: relative; height: 22px; display: flex; align-items: center; margin: 0 4px; }
.zv__track { position: absolute; left: 0; right: 0; height: 7px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; transition: height .15s; }
.zv__seek:hover .zv__track { height: 9px; }
.zv__buf, .zv__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; }
.zv__buf { background: rgba(255, 255, 255, .35); }
.zv__fill { background: linear-gradient(90deg, var(--z-orik-300, #f4c374), var(--z-orik-500, #e19a2a)); }
/* Toʻlgan qism ichida naqsh — sayt ajratgichidagi kabi */
.zv__fill::after { content: ""; position: absolute; inset: 0; background: rgba(120, 60, 0, .32); -webkit-mask: var(--z-border-naqsh) left center / 14px 7px repeat-x; mask: var(--z-border-naqsh) left center / 14px 7px repeat-x; }
/* Surgich — logotipdagi sakkiz qirrali yulduz */
.zv__star { position: absolute; top: 50%; left: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; pointer-events: none; z-index: 1; transition: transform .15s; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }
.zv__star svg { width: 100%; height: 100%; fill: var(--z-orik-500, #e19a2a); }
.zv__star svg circle { fill: #fffdf8; }
.zv__seek:hover .zv__star { transform: scale(1.18) rotate(22deg); }
.zv__seek input::-webkit-slider-thumb { opacity: 0; }
.zv__seek input::-moz-range-thumb { opacity: 0; }
/* Bob belgilari (romb) */
.zv__marks { position: absolute; left: 0; right: 0; top: 50%; height: 0; pointer-events: none; }
.zv__marks i { position: absolute; top: -4px; width: 8px; height: 8px; margin-left: -4px; transform: rotate(45deg); border-radius: 1px; background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.zv__tip { position: absolute; bottom: 30px; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; padding: 7px 11px; border-radius: 12px; background: rgba(13, 11, 9, .9); border: 1.5px solid var(--z-orik-300, #f4c374); font-size: 12.5px; font-weight: 700; white-space: nowrap; pointer-events: none; z-index: 2; font-variant-numeric: tabular-nums; }
.zv__tip b { font-size: 13px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.zv__tip span { color: var(--z-orik-300, #f4c374); }
.zv__chap { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; opacity: .9; }
@media (max-width: 480px) { .zv__chap { display: none; } }
.zv__menu { position: absolute; right: 12px; bottom: 76px; z-index: 7; width: min(280px, calc(100% - 24px)); max-height: calc(100% - 96px); overflow: auto; padding: 6px; border-radius: 16px; background: rgba(13, 11, 9, .94); border: 1px solid rgba(244, 195, 116, .45); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }
.zv__menu button { display: flex; width: 100%; gap: 10px; align-items: baseline; padding: 9px 10px; border: 0; border-radius: 10px; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.zv__menu button span { flex: none; min-width: 42px; color: var(--z-orik-300, #f4c374); font-weight: 800; font-variant-numeric: tabular-nums; }
.zv__menu button:hover, .zv__menu button.is-current { background: rgba(255, 255, 255, .12); }
.zv__menu button.is-current { box-shadow: inset 3px 0 0 var(--z-orik-500, #e19a2a); }
/* Burchakdagi kichik belgi */
.zv__bug { position: absolute; left: 14px; top: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; border-radius: 999px; background: rgba(0, 0, 0, .34); backdrop-filter: blur(4px); font-size: 12.5px; font-weight: 800; pointer-events: none; transition: opacity .3s; }
.zv__bug img { width: 22px; height: 22px; border-radius: 7px; background: #fffdf8; padding: 2px; }
.zv:not(.is-started) .zv__bug, .zv.is-intro .zv__bug, .zv.is-ended .zv__bug, .zv.is-playing:not(.is-active) .zv__bug { opacity: 0; }

/* Yakuniy ekran */
.zv__end { position: absolute; inset: 0; z-index: 6; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: clamp(14px, 4%, 30px); background: rgba(10, 18, 36, .88); isolation: isolate; }
.zv__end[hidden] { display: none; }
.zv__end::before { content: ""; position: absolute; inset: 0; z-index: -1; background-color: rgba(255, 255, 255, .05); -webkit-mask: var(--z-girih) center / 46px 46px repeat; mask: var(--z-girih) center / 46px 46px repeat; }
.zv__end:not(:has(.zv__nx)) { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.zv__nx { display: block; border-radius: 16px; overflow: hidden; border: 2px solid var(--z-orik-300, #f4c374); color: #fff; text-decoration: none; background: #0f1a33; }
.zv__nxth { position: relative; display: block; aspect-ratio: 16 / 9; background: #1c2f52 center / cover no-repeat; }
.zv__nxl { display: block; padding: 9px 12px 11px; }
.zv__nxl small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--z-orik-300, #f4c374); }
.zv__nxl b { display: block; margin-top: 3px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zv__ring { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.zv__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.zv__ring circle { fill: rgba(0, 0, 0, .45); stroke: rgba(255, 255, 255, .25); stroke-width: 3; }
.zv__ring .zv__ringfg { fill: none; stroke: var(--z-orik-300, #f4c374); stroke-linecap: round; stroke-dasharray: 106.8; stroke-dashoffset: 106.8; }
.zv__nx.is-counting .zv__ringfg { animation: zv-ring 5s linear forwards; }
.zv__ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 24px; font-weight: 800; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.zv__nx.is-stopped .zv__ring b { font-size: 0; }
.zv__nx.is-stopped .zv__ring b::after { content: "▶"; font-size: 22px; margin-left: 4px; }
@keyframes zv-ring { to { stroke-dashoffset: 0; } }
.zv__eside { display: grid; gap: 10px; min-width: 0; }
.zv__q { font-family: var(--z-font-display); font-size: clamp(16px, 2.4vw, 21px); font-weight: 700; line-height: 1.25; }
.zv__eside .rx { color: var(--z-text); }
.zv__eacts { display: flex; flex-wrap: wrap; gap: 8px; }
.zv__end:not(:has(.zv__nx)) .zv__eacts, .zv__end:not(:has(.zv__nx)) .rx { justify-content: center; }
.zv__eacts .zv__ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.zv.is-ended .zv__big, .zv.is-ended .zv__ptitle { display: none; }
@media (max-width: 560px) {
  .zv__end { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px; }
  .zv__q { display: none; }
  .zv__eside .rx { display: none; }
  .zv__nxl b { font-size: 12.5px; }
  .zv__ring { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .zv__ring b { font-size: 18px; }
}
.zv__seek input, .zv__vol { -webkit-appearance: none; appearance: none; background: transparent; margin: 0; cursor: pointer; }
.zv__seek input { position: relative; width: 100%; height: 22px; }
.zv__seek input::-webkit-slider-thumb, .zv__vol::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--z-orik-500, #e19a2a); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.zv__seek input::-moz-range-thumb, .zv__vol::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 3px solid var(--z-orik-500, #e19a2a); }
.zv__vol { width: 80px; height: 22px; }
.zv__vol::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .4); }
.zv__vol::-webkit-slider-thumb { margin-top: -5.5px; }
.zv__vol::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .4); }
.zv__row { display: flex; align-items: center; gap: 2px; }
.zv__gap { flex: 1; }
.zv__btn { min-width: 40px; height: 40px; padding: 0 8px; border: 0; border-radius: 12px; background: transparent; color: #fff; display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; transition: background var(--z-dur-1, .15s); }
.zv__btn:hover, .zv__btn:focus-visible { background: rgba(255, 255, 255, .16); outline: none; }
.zv__btn .z-icon { width: 22px; height: 22px; }
.zv__btn--txt { font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.zv__time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; opacity: .92; }
.zv__volwrap { display: inline-flex; align-items: center; }
@media (hover: none) { .zv__vol { display: none; } }
@media (max-width: 480px) { .zv__btn--txt[data-zv="back"], .zv__btn--txt[data-zv="fwd"] { display: none; } .zv__btn { min-width: 38px; padding: 0 6px; } .zv { border-radius: var(--z-radius-lg); } }
.zv.is-fs, .zv.is-pseudo-fs { border-radius: 0; aspect-ratio: auto; }
.zv.is-pseudo-fs { position: fixed; inset: 0; z-index: 1000; width: 100vw; height: 100dvh; }
body.zv-lock { overflow: hidden; }
.zv.is-fs .zv__btn .z-icon, .zv.is-pseudo-fs .zv__btn .z-icon { width: 26px; height: 26px; }
@keyframes zv-spin { to { transform: rotate(360deg); } }
@keyframes zv-flash { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.4); } }
@media (prefers-reduced-motion: reduce) { .zv__big::after { animation: none; } }
:root[data-motion="reduce"] .zv__big::after { animation: none; }
/* Kirish videosi (zachkana.uz) */
.zv__intro { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; object-fit: contain; background: #000; }
.zv__skip { position: absolute; right: 14px; bottom: 14px; z-index: 6; display: inline-flex; align-items: center; gap: 4px; padding: 9px 14px 9px 16px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: rgba(0, 0, 0, .55); color: #fff; font: 700 14px/1 var(--z-font-sans, sans-serif); cursor: pointer; backdrop-filter: blur(6px); }
.zv__skip:hover { background: rgba(0, 0, 0, .75); }
.zv__skip .z-icon { width: 16px; height: 16px; }
.zv.is-intro .zv__bar, .zv.is-intro .zv__spin, .zv.is-intro .zv__shield { display: none; }
.zv__tap { display: none; position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%); }
.zv__tap:hover { transform: translate(-50%, -50%) scale(1.06); }
.zv.needs-tap .zv__tap { display: grid; }

/* ---------- Kelin-kuyov bogʻlanishi va "Butun qishloq" ---------- */
.z-person.is-linked { position: relative; box-shadow: 0 0 0 2.5px var(--lc), 0 6px 16px -8px var(--lc); }
.link-tag { position: absolute; left: 50%; top: -20px; transform: translateX(-50%); z-index: 2; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px 2px 7px; border-radius: 999px; background: var(--lc); color: #fff; font: 800 10.5px/1.5 var(--z-font-sans); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); cursor: pointer; max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.link-tag:hover { filter: brightness(1.08); }
.link-tag .z-icon { width: 11px; height: 11px; flex: none; }
.z-tree .z-couple .z-person.is-linked { margin-top: 16px; }
.z-person.is-flash { animation: zk-flash 2.2s ease-out; }
@keyframes zk-flash { 0%, 40% { box-shadow: 0 0 0 4px var(--lc, var(--z-orik-500)), 0 0 0 12px rgba(227, 154, 45, .35); } 100% { box-shadow: 0 0 0 2.5px var(--lc, transparent); } }
.origin-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin: 14px 0; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--lc) 45%, transparent); background: color-mix(in srgb, var(--lc) 12%, var(--z-surface)); color: var(--z-text); cursor: pointer; font: inherit; }
.origin-card__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--lc); color: #fff; flex: none; }
.origin-card__ic .z-icon { width: 20px; height: 20px; }
.origin-card__main { display: grid; min-width: 0; }
.origin-card__main strong { font-size: var(--z-text-md); overflow-wrap: anywhere; }
.origin-card__go { margin-left: auto; display: inline-flex; align-items: center; font-weight: 800; font-size: var(--z-text-sm); color: var(--lc); white-space: nowrap; }
.origin-card__go .z-icon { width: 16px; height: 16px; }
.rel-link { display: grid; gap: 8px; }
.rel-link .check-row span { font-size: var(--z-text-sm); }
.link-count { display: inline-flex; align-items: center; gap: 4px; color: var(--z-accent-text); font-weight: 700; }
.link-count .z-icon { width: 14px; height: 14px; }
.lg-link { display: inline-block; width: 26px; height: 0; border-top: 3px dashed var(--z-orik-500, #e39a2d); vertical-align: middle; margin-right: 6px; }
.tree-viewport--village { height: min(78vh, 900px); }
.vall { display: grid; column-gap: 110px; row-gap: 120px; align-items: start; position: relative; padding: 6px 4px 70px; }
.vall__clan { background: var(--z-surface); border: 1px solid var(--z-border); border-radius: 22px; padding: 14px 10px 20px; }
.vall__clan h3 { margin: 0 0 12px; text-align: center; font: 700 22px/1.2 var(--z-font-display); }
.vall__clan h3 small { display: block; font: 700 10.5px var(--z-font-sans); letter-spacing: 2.5px; text-transform: uppercase; color: var(--z-accent-text); margin-bottom: 2px; }
.vall__clan .z-person { position: relative; z-index: 2; }
.vall__links { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; overflow: visible; }
.vall__clan { position: relative; }
.vall__lbl { position: absolute; z-index: 3; transform: translate(-50%, -50%); white-space: nowrap; padding: 5px 13px; border-radius: 999px; background: var(--lc); color: #fff; font: 800 12px/1.2 var(--z-font-sans); border: 2px solid var(--z-bg, #fff); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); text-align: center; pointer-events: none; }
.vall__lbl small { display: block; font-weight: 600; font-size: 10.5px; opacity: .92; }
.banner-out { display: grid; gap: 10px; }
.banner-size { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--z-primary-soft); }
.banner-size strong { font: 700 22px var(--z-font-display); color: var(--z-primary-text); }
.banner-preview { border: 1px solid var(--z-border); border-radius: 12px; overflow: hidden; background: #fbf8f2; }
.banner-preview svg { display: block; width: 100%; height: auto; }

/* ---------- Bildirishnoma animatsiyalari ---------- */
.bell.is-ring .z-icon { animation: zk-ring .9s ease-in-out; transform-origin: 50% 8%; }
.bell.is-ring .bell__count { animation: zk-pop .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes zk-ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 75% { transform: rotate(4deg); } }
@keyframes zk-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
/* Pastki paneldagi "Suhbat" — yangi xabar boʻlsa yumshoq yonib turadi */
.app-tabbar a .z-counter { animation: zk-glow 2.4s ease-in-out infinite; }
@keyframes zk-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(184, 50, 58, .45); } 50% { box-shadow: 0 0 0 6px rgba(184, 50, 58, 0); } }
/* Bildirishnomalar oynasi: yozuvlar birin-ketin tushib chiqadi */
#sheet .notif { animation: zk-drop .4s var(--z-ease) both; }
#sheet .notif-list li:nth-child(2) .notif { animation-delay: .04s; } #sheet .notif-list li:nth-child(3) .notif { animation-delay: .08s; } #sheet .notif-list li:nth-child(4) .notif { animation-delay: .12s; }
#sheet .notif-list li:nth-child(5) .notif { animation-delay: .16s; } #sheet .notif-list li:nth-child(6) .notif { animation-delay: .2s; } #sheet .notif-list li:nth-child(n+7) .notif { animation-delay: .24s; }
@keyframes zk-drop { from { opacity: 0; transform: translateY(-10px); } }
/* Chatda yangi xabar — pastdan suzib chiqadi va bir lahza yorishadi */
.z-msg.is-new { animation: zk-msg-in .45s var(--z-ease) both; }
.z-msg.is-new .z-bubble { animation: zk-msg-glow 1.6s ease-out; }
@keyframes zk-msg-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes zk-msg-glow { 0% { box-shadow: 0 0 0 3px rgba(227, 154, 45, .55); } 100% { box-shadow: 0 0 0 0 rgba(227, 154, 45, 0); } }
/* Qalqib chiquvchi xabarlar: ✓ chiziladi, xato belgisi chayqaladi */
.z-toast--check .z-icon path { stroke-dasharray: 24; animation: zk-draw .5s .1s ease-out both; }
@keyframes zk-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.z-toast--info .z-icon, .z-toast--offline .z-icon { animation: zk-shake .45s ease-in-out; }
@keyframes zk-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
/* Quvonch uchqunlari */
.sparks { position: fixed; inset: 0; pointer-events: none; z-index: 1000; }
.sparks i { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--c); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: zk-spark 1.1s cubic-bezier(.15, .7, .3, 1) both; }
@keyframes zk-spark { 0% { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 40px)) scale(1.2) rotate(var(--r)); } }
.sound-row .z-list-item__main input[type="range"] { width: 100%; accent-color: var(--z-primary); }

/* ---------- Yordam ---------- */
.help { display: grid; gap: 14px; max-width: 760px; }
.help__hero { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--z-radius-lg); background: var(--z-surface); border: 1px solid var(--z-border); }
.help__hero p { margin: 4px 0 0; }
.help__hero-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--z-primary); color: #fff; flex: none; }
.help__hero-ic .z-icon { width: 26px; height: 26px; }
.help__list { display: grid; gap: 10px; }
.help__item { overflow: hidden; animation: zk-help-in .35s calc(var(--i, 0) * 40ms) both ease-out; }
.help__item summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.help__item summary::-webkit-details-marker { display: none; }
.help__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--z-accent-soft); color: var(--z-accent-text); flex: none; }
.help__ic .z-icon { width: 20px; height: 20px; }
.help__item summary strong { flex: 1; }
.help__chev { transition: transform .2s; color: var(--z-text-2); }
.help__item[open] .help__chev { transform: rotate(180deg); }
.help__steps { margin: 0; padding: 0 16px 16px 66px; display: grid; gap: 10px; counter-reset: st; list-style: none; }
.help__steps li { position: relative; line-height: 1.5; counter-increment: st; }
.help__steps li::before { content: counter(st); position: absolute; left: -36px; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--z-primary); color: #fff; font: 800 12px/1 var(--z-font-sans); }
@keyframes zk-help-in { from { opacity: 0; transform: translateY(6px); } }
:root[data-motion="reduce"] .help__item { animation: none; }

/* ---------- Surat va videolarga reaksiyalar ---------- */
.rx { display: flex; flex-wrap: wrap; gap: 6px; }
.rx__btn { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--z-border); background: var(--z-surface); color: var(--z-text); cursor: pointer; font: inherit; transition: transform .15s, background .15s, border-color .15s; }
.rx__btn:hover, .rx__btn:focus-visible { background: var(--z-bg-sunken); }
.rx__btn:active { transform: scale(.92); }
.rx__e { font-size: 18px; line-height: 1; }
.rx__n { font-size: var(--z-text-sm); font-weight: 800; font-variant-numeric: tabular-nums; }
.rx__btn.is-mine { border-color: var(--z-primary); background: var(--z-accent-soft); color: var(--z-accent-text); }
.rx__btn.is-pop .rx__e { animation: zk-rx-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes zk-rx-pop { 0% { transform: scale(1); } 40% { transform: scale(1.6) rotate(-8deg); } 100% { transform: scale(1); } }
.pv-info > .rx { margin: 2px 0; }
.video-page__acts { align-items: center; }
.vcard__rx { white-space: nowrap; }

/* Admin: boshqalar uchun yopiq boʻlim belgisi */
.sec-lock { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 9px; border-radius: 999px; background: var(--z-accent-soft); color: var(--z-accent-text); font-size: var(--z-text-xs); font-weight: 800; white-space: nowrap; flex: none; }
.sec-lock + .z-icon, .sec-lock + .z-counter { margin-left: 8px; }
#sideNav a .sec-lock { margin-left: auto; }
.z-tabbar__icon { position: relative; }
.tab-lock { position: absolute; top: -6px; right: -10px; font-size: 11px; line-height: 1; }

/* Video sahifasi: boblar roʻyxati */
.vchap { margin-top: 6px; }
.vchap h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.vchap h2 .z-icon { width: 20px; height: 20px; color: var(--z-accent-text); }
.vchap ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.vchap button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--z-border); background: var(--z-surface); color: var(--z-text); font: inherit; text-align: left; cursor: pointer; transition: background .15s, border-color .15s; }
.vchap button:hover { background: var(--z-bg-sunken); }
.vchap button[aria-current] { border-color: var(--z-orik-500, #e19a2a); background: var(--z-accent-soft); }
.vchap__t { flex: none; min-width: 52px; padding: 4px 8px; border-radius: 999px; background: var(--z-orik-500, #e19a2a); color: #fff; font-size: 12.5px; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.vchap__n { font-weight: 700; }

/* ---------- Dizayn tanlash (Menyu) ---------- */
.skin-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skin-opt { display: grid; gap: 8px; padding: 8px 8px 10px; border-radius: var(--z-radius-lg); border: 1.5px solid var(--z-border); background: var(--z-surface); color: var(--z-text); font: inherit; text-align: left; cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s; }
.skin-opt[aria-checked="true"] { border-color: var(--z-primary); box-shadow: 0 0 0 3px var(--z-primary-soft); }
.skin-opt__l { padding: 0 4px; display: grid; gap: 2px; }
.skin-opt__l b { font-size: var(--z-text-sm); font-weight: 800; }
.skin-opt__l small { font-size: var(--z-text-xs); color: var(--z-text-3); }
.skin-opt__r { position: absolute; right: 12px; bottom: 14px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--z-border-strong); }
.skin-opt[aria-checked="true"] .skin-opt__r { border: 5px solid var(--z-primary); }
/* Kichik koʻrinishlar — har dizaynning oʻz ranglari (mavzudan qatʼi nazar) */
.skin-mini { position: relative; display: block; height: 86px; border-radius: 10px; overflow: hidden; }
.skin-mini i { position: absolute; display: block; }
.skin-mini--naqsh { background: #faf5ec; }
.skin-mini--naqsh::before { content: ""; position: absolute; inset: 0; background-color: rgba(42, 94, 168, .1); -webkit-mask: var(--z-girih) center / 22px 22px repeat; mask: var(--z-girih) center / 22px 22px repeat; }
.skin-mini--naqsh i:nth-child(1) { left: 8px; right: 8px; top: 8px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #f8e2c1, #f2d7b0); }
.skin-mini--naqsh i:nth-child(2) { left: 14px; top: 16px; width: 54%; height: 7px; border-radius: 4px; background: #241e17; font-family: serif; }
.skin-mini--naqsh i:nth-child(3) { left: 8px; top: 46px; width: 46px; height: 14px; border-radius: 7px; background: #2a5ea8; }
.skin-mini--naqsh i:nth-child(4) { left: 8px; right: 8px; top: 66px; height: 12px; border-radius: 6px; background: #fffdf8; border: 1px solid #e7dcc8; }
.skin-mini--zamonaviy { background: #f6f7f9; }
.skin-mini--zamonaviy i:nth-child(1) { left: 10px; top: 10px; width: 52%; height: 8px; border-radius: 4px; background: #111827; }
.skin-mini--zamonaviy i:nth-child(2) { left: 10px; right: 10px; top: 26px; height: 14px; border-radius: 6px; background: #fff; border: 1px solid #e5e7eb; }
.skin-mini--zamonaviy i:nth-child(3) { left: 10px; right: 10px; top: 46px; height: 30px; border-radius: 8px; background: #fff; border: 1px solid #e5e7eb; }
.skin-mini--zamonaviy i:nth-child(4) { right: 18px; top: 56px; width: 24px; height: 10px; border-radius: 5px; background: #0f766e; }

/* Uzun yozuvli butun enli tugmalar tor ekranda ikki qatorga oʻtadi (kesilib qolmaydi) */
.z-btn--block { white-space: normal; text-align: center; line-height: 1.25; padding-block: 8px; }

/* Ariza: tasdiq kutilmoqda */
.pending-card { border-color: var(--z-accent); background: var(--z-accent-soft); }
.pending-card__ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--z-accent); color: #fff; }
.pending-card__ic .z-icon { width: 22px; height: 22px; }

/* Suhbat: reaksiyalar xabar kartasi ichida — chapda reaksiyalar, oʻngda vaqt */
.z-bubble__foot { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; }
.z-bubble__foot .z-bubble__time { margin: 0 0 0 auto; }
.z-bubble__foot .msg-reacts { margin: 0; justify-content: flex-start; }
.z-bubble .react-chip { min-height: 24px; padding: 0 7px; background: var(--z-bg-sunken); border-color: transparent; color: var(--z-text); }
.z-bubble .react-chip.is-mine { background: var(--z-primary-soft); border-color: var(--z-primary); color: var(--z-primary-text); }
.z-msg--me .z-bubble .react-chip { background: rgba(255, 255, 255, .18); color: inherit; }
.z-msg--me .z-bubble .react-chip.is-mine { background: rgba(255, 255, 255, .32); border-color: rgba(255, 255, 255, .7); color: inherit; }
.z-msg--me .z-bubble__foot .msg-reacts { justify-content: flex-start; }

/* Video ostidagi izohlar */
.vcomments { display: grid; gap: 12px; margin-top: 18px; border-top: 1px solid var(--z-border); padding-top: var(--z-space-4); }
.vcomments .z-h4 { display: flex; align-items: center; gap: 8px; margin: 0; }

/* Suhbat: rasm va surib javob berish */
.z-bubble__img { display: block; margin: 2px 0 6px; padding: 0; border: 0; background: none; border-radius: 10px; overflow: hidden; cursor: zoom-in; max-width: min(280px, 100%); }
.z-bubble__img img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: cover; }
.compose-attach { flex: none; cursor: pointer; }
.img-bar img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.img-view { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .88); cursor: zoom-out; animation: zk-fade .18s ease-out; }
.img-view img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.img-view__x { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; --_bg: rgba(255, 255, 255, .14); --_fg: #fff; --_bd: transparent; }
@keyframes zk-fade { from { opacity: 0; } }
.z-msg { position: relative; touch-action: pan-y; }
.z-msg.is-swiping .z-msg__body { transition: none; }
.z-msg__body { transition: transform .22s var(--z-ease); }
.msg-swipe {
  position: absolute; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px;
  border-radius: 50%; background: var(--z-surface-raised); color: var(--z-primary-text); box-shadow: var(--z-shadow-1);
  opacity: var(--sw, 0); transform: scale(calc(.6 + var(--sw, 0) * .4)); pointer-events: none; transition: background .15s, color .15s;
}
.msg-swipe .z-icon { width: 17px; height: 17px; }
.msg-swipe.is-hit { background: var(--z-primary); color: var(--z-on-primary); }
.z-msg[data-sw-dir="l"] .msg-swipe { right: 4px; }
.z-msg[data-sw-dir="r"] .msg-swipe { left: 4px; }

/* ==========================================================================
   Qishloq maktabi
   ========================================================================== */
.sch-cover { position: relative; min-height: 220px; border-radius: var(--z-radius-lg); overflow: hidden; display: flex; align-items: flex-end;
  background: linear-gradient(140deg, var(--z-lojuvard-700), var(--z-primary) 60%, var(--z-firuza-500)); color: #fff; }
.sch-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sch-cover__ov { position: relative; width: 100%; padding: var(--z-space-6) var(--z-space-5) var(--z-space-5);
  background: linear-gradient(180deg, transparent, rgba(13, 33, 64, .55) 35%, rgba(13, 33, 64, .9)); }
.sch-cover:not(:has(> img)) .sch-cover__ov { background: none; }
.sch-cover__since { font: 800 11px/1 var(--z-font-ui); letter-spacing: .18em; color: var(--z-orik-300); }
.sch-cover h1 { font: 700 clamp(22px, 5vw, 32px)/1.2 var(--z-font-display); margin: 6px 0 4px; color: #fff; }
.sch-cover p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--z-text-sm); opacity: .9; }
.sch-cover p .z-icon { width: 16px; height: 16px; }
.sch-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)); gap: 8px; margin-top: var(--z-space-3); }
.sch-stats div { background: var(--z-surface); border: 1px solid var(--z-border); border-radius: var(--z-radius-md); padding: 10px 4px; text-align: center; }
.sch-stats b { display: block; font: 700 22px/1.1 var(--z-font-display); color: var(--z-primary-text); }
.sch-stats span { font-size: var(--z-text-xs); color: var(--z-text-3); font-weight: 700; }
.sch-about { color: var(--z-text-2); margin: var(--z-space-4) 2px 0; max-width: 70ch; }
.sch-h { margin: var(--z-space-6) 2px var(--z-space-3); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sch-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
@media (min-width: 720px) { .sch-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; } }
.sch-tile { display: grid; gap: 6px; align-content: start; padding: 12px 10px; border-radius: var(--z-radius-md); background: var(--z-surface); border: 1px solid var(--z-border);
  color: var(--z-text); text-decoration: none; font-weight: 700; font-size: var(--z-text-sm); line-height: 1.25; transition: transform .15s var(--z-ease), border-color .15s; }
.sch-tile:hover { border-color: var(--z-border-strong); transform: translateY(-1px); }
.sch-tile__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--z-primary-soft); color: var(--z-primary); }
.sch-tile__icon .z-icon { width: 19px; height: 19px; }
.sch-tile--o .sch-tile__icon { background: var(--z-accent-soft); color: var(--z-accent-text); }
.sch-tile--g .sch-tile__icon { background: var(--z-success-soft); color: var(--z-success); }
.sch-tile--r .sch-tile__icon { background: var(--z-anor-100); color: var(--z-anor-700); }
.sch-tile .z-caption { font-weight: 600; }
.sch-meet-promo { display: flex; align-items: center; gap: 12px; margin-top: var(--z-space-4); padding: 12px; border-radius: var(--z-radius-md); background: var(--z-accent-soft);
  border: 1px solid color-mix(in srgb, var(--z-accent) 30%, transparent); color: var(--z-text); text-decoration: none; }
.sch-meet-promo > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.sch-date { flex: none; width: 52px; text-align: center; border-radius: 12px; background: var(--z-accent); color: #fff; padding: 6px 0; }
.sch-date b { display: block; font: 700 22px/1 var(--z-font-display); }
.sch-date span { font: 800 10px/1.4 var(--z-font-ui); letter-spacing: .06em; }

.sch-seg { display: flex; gap: 2px; padding: 4px; margin-bottom: var(--z-space-5); background: var(--z-bg-sunken); border-radius: var(--z-radius-pill); overflow-x: auto; scrollbar-width: none; }
.sch-seg a { flex: 1 0 auto; text-align: center; padding: 8px 12px; border-radius: var(--z-radius-pill); color: var(--z-text-2); text-decoration: none; font-weight: 700; font-size: var(--z-text-sm); white-space: nowrap; }
.sch-seg a[aria-current] { background: var(--z-surface-raised); color: var(--z-text); box-shadow: var(--z-shadow-1); }
.sch-seg .tab-lock, .sch-tile .tab-lock { position: static; margin-left: 4px; font-size: 11px; }

/* Tarix */
.sch-tline { list-style: none; margin: 0; padding: 0 0 0 30px; position: relative; max-width: 760px; }
.sch-tline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--z-border-strong) 0 6px, transparent 6px 11px); }
.sch-tline li { position: relative; margin-bottom: var(--z-space-5); }
.sch-tline li::before { content: ""; position: absolute; left: -25px; top: 3px; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 2px; background: var(--z-surface); border: 2px solid var(--z-accent); }
.sch-tline li.is-major::before { background: var(--z-accent); width: 14px; height: 14px; left: -26px; }
.sch-tline__y { font: 800 var(--z-text-sm)/1 var(--z-font-ui); color: var(--z-accent-text); }
.sch-tline h3 { font: 700 var(--z-text-md)/1.3 var(--z-font-ui); margin: 4px 0; }
.sch-tline li.is-major h3 { font: 600 var(--z-text-lg)/1.3 var(--z-font-display); }
.sch-tline p { margin: 0; color: var(--z-text-2); font-size: var(--z-text-sm); }
.sch-strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.sch-strip button { flex: none; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--z-bg-sunken); }
.sch-strip img { display: block; height: 76px; width: auto; max-width: 140px; object-fit: cover; }
.sch-dirs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sch-dir { position: relative; display: grid; justify-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: var(--z-radius-md); background: var(--z-surface);
  border: 1px solid var(--z-border); color: var(--z-text); text-align: center; cursor: pointer; font: inherit; }
.sch-dir strong { font-size: var(--z-text-sm); margin-top: 6px; }
.sch-dir__n { position: absolute; top: 8px; left: 10px; font: 800 11px var(--z-font-ui); color: var(--z-text-3); }
img.sch-face { border-radius: 50%; object-fit: cover; flex: none; background: var(--z-bg-sunken); }
img.sch-face--lg { width: 52px; height: 52px; }
img.sch-face--xl { width: 96px; height: 96px; }
img.sch-face--sm { width: 32px; height: 32px; }
img.sch-face-- { width: 40px; height: 40px; }

/* Roʻyxat qatori */
.sch-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.sch-li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--z-radius-md); background: var(--z-surface); border: 1px solid var(--z-border);
  color: var(--z-text); text-align: left; font: inherit; cursor: pointer; width: 100%; }
.sch-li:hover { border-color: var(--z-border-strong); }
.sch-li__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sch-li__main strong { font-size: var(--z-text-md); }
.sch-pill { font: 800 11px var(--z-font-ui); padding: 3px 9px; border-radius: var(--z-radius-pill); background: var(--z-primary-soft); color: var(--z-primary-text); white-space: nowrap; }
.sch-pill--o { background: var(--z-accent-soft); color: var(--z-accent-text); }

/* «Ustozlarimiz» */
.sch-memo-intro { color: var(--z-text-2); margin: 0 0 var(--z-space-4); }
.sch-memos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.sch-memo { position: relative; text-align: center; padding: 22px 18px 18px; border-radius: var(--z-radius-lg); color: #f4ead6;
  background: radial-gradient(circle at 50% 0%, #4a3a26, #2a2116 72%); overflow: hidden; }
.sch-memo::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(244, 195, 116, .35); border-radius: 14px; pointer-events: none; }
.sch-memo .sch-face, .sch-memo .z-avatar { margin: 10px auto; border: 2px solid rgba(244, 195, 116, .6); filter: grayscale(.5); }
.sch-memo h3 { font: 700 var(--z-text-xl)/1.2 var(--z-font-display); margin: 0 0 4px; color: #fff; }
.sch-memo p { font-size: var(--z-text-sm); margin: 0 0 8px; opacity: .85; }
.sch-memo q { display: block; font: italic 500 var(--z-text-md)/1.5 var(--z-font-display); color: #fff; margin: 10px 4px 14px; }
.sch-memo__k { font: 800 10px var(--z-font-ui); letter-spacing: .22em; color: var(--z-orik-300); }
.sch-memo__btn { position: relative; --_bg: rgba(244, 195, 116, .16); --_fg: #f4c374; --_bd: rgba(244, 195, 116, .45); }
.sch-flame { display: inline-block; width: 10px; height: 16px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff3c4, #f4c374 45%, #e39a2d 70%, transparent 72%); animation: sch-flick 1.6s ease-in-out infinite alternate; }
@keyframes sch-flick { to { transform: scaleY(1.12) translateY(-1px); opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .sch-flame { animation: none; } }

/* Bitiruvchilar */
.sch-years { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; margin: var(--z-space-3) 0 var(--z-space-5); }
.sch-years a { display: grid; justify-items: center; padding: 8px 0; border-radius: 12px; background: var(--z-surface); border: 1px solid var(--z-border); color: var(--z-text); text-decoration: none; }
.sch-years b { font: 800 var(--z-text-md) var(--z-font-ui); }
.sch-years span { font-size: 10.5px; color: var(--z-text-3); font-weight: 600; }
.sch-years a[aria-current] { background: var(--z-primary); border-color: var(--z-primary); color: #fff; }
.sch-years a[aria-current] span { color: rgba(255, 255, 255, .8); }
.sch-class { border-radius: var(--z-radius-lg); background: var(--z-surface); border: 1px solid var(--z-border); overflow: hidden; margin-bottom: var(--z-space-4); }
.sch-class__photo { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--z-bg-sunken); }
.sch-class__photo img { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.sch-yr { position: absolute; left: 10px; bottom: 10px; background: rgba(36, 30, 23, .75); color: #fff; font: 800 11px var(--z-font-ui); padding: 4px 9px; border-radius: 7px; }
.sch-class__in { padding: var(--z-space-4); }
.sch-class__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sch-class__head .z-h4 { margin: 0; }
.sch-names { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 4px 12px; margin-bottom: 6px; }
.sch-names > span { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: var(--z-text-sm); }
.sch-name { display: inline-flex; align-items: center; gap: 5px; padding: 2px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.sch-name.is-linked { color: var(--z-primary-text); cursor: pointer; }
.sch-name .z-icon, .sch-class .z-caption .z-icon { width: 14px; height: 14px; color: var(--z-success); vertical-align: -2px; }
.sch-names .is-me .sch-name { font-weight: 800; }

/* Faxrlilar */
.sch-star { position: relative; display: block; width: 100%; text-align: left; padding: 18px; border: 0; border-radius: var(--z-radius-lg); color: #fff; cursor: pointer; font: inherit;
  background: linear-gradient(140deg, var(--z-lojuvard-600), var(--z-primary) 55%, var(--z-firuza-500)); overflow: hidden; }
.sch-star::after { content: ""; position: absolute; right: -36px; top: -36px; width: 150px; height: 150px; border: 1.5px solid rgba(244, 195, 116, .45); transform: rotate(22deg); border-radius: 8px; box-shadow: 0 0 0 18px rgba(244, 195, 116, .08); }
.sch-star__row { display: flex; gap: 14px; align-items: center; }
.sch-star__row > span:last-child { display: grid; gap: 3px; }
.sch-star__row strong { font: 700 var(--z-text-xl)/1.2 var(--z-font-display); }
.sch-star__k { font: 800 10px var(--z-font-ui); letter-spacing: .18em; color: var(--z-orik-300); }
.sch-star .sch-face, .sch-star .z-avatar { border: 2px solid var(--z-orik-300); }
.sch-star q { display: block; margin-top: 12px; font: italic 500 var(--z-text-md)/1.5 var(--z-font-display); opacity: .95; max-width: 65ch; }
.sch-med { display: inline-flex; align-items: center; gap: 5px; font: 800 12px var(--z-font-ui); padding: 4px 10px 4px 5px; border-radius: var(--z-radius-pill); background: var(--z-orik-100); color: var(--z-orik-700); }
.sch-med i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe9a8, #e39a2d 60%, #a8670f); }
.sch-med--silver { background: #eceff3; color: #545c69; } .sch-med--silver i { background: radial-gradient(circle at 35% 30%, #fff, #b9c0cb 60%, #7d8592); }
.sch-med--bronze { background: #f3e1d2; color: #8a4f22; } .sch-med--bronze i { background: radial-gradient(circle at 35% 30%, #ffd9b8, #c47a3e 60%, #8a4f22); }
.sch-med--olympiad { background: var(--z-primary-soft); color: var(--z-primary-text); } .sch-med--olympiad i { background: radial-gradient(circle at 35% 30%, #d7e3f5, #4f7fc4 60%, #1f4b8a); }

/* Oldin va hozir */
.sch-cmps { display: grid; gap: var(--z-space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.sch-cmp { margin: 0; }
.sch-ba { position: relative; aspect-ratio: 4 / 3; border-radius: var(--z-radius-lg); overflow: hidden; background: var(--z-bg-sunken); touch-action: pan-y; }
.sch-ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sch-ba__old { clip-path: inset(0 calc(100% - var(--pos)) 0 0); filter: sepia(.25); }
.sch-ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 8px rgba(0, 0, 0, .3); pointer-events: none; }
.sch-ba__line::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; background: #fff;
  display: grid; place-items: center; font: 800 17px/1 var(--z-font-ui); color: var(--z-primary); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.sch-ba__lb { position: absolute; top: 10px; font: 800 11px var(--z-font-ui); padding: 4px 9px; border-radius: var(--z-radius-pill); background: rgba(36, 30, 23, .7); color: #fff; pointer-events: none; }
.sch-ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.sch-cmp figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 2px 0; }
.sch-cmp figcaption strong { font: 600 var(--z-text-md) var(--z-font-display); }

/* Jamoa */
.sch-wall-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: var(--z-space-4); }
.sch-wall-head p { margin: 0; flex: 1 1 260px; }
.sch-wall { columns: 2 150px; column-gap: 10px; }
.sch-note { break-inside: avoid; margin: 0 0 10px; padding: 14px; border-radius: var(--z-radius-md); font: 500 var(--z-text-md)/1.55 var(--z-font-display);
  background: #fff8e8; border: 1px solid #f0dfb5; color: var(--z-loy-900); }
.sch-note:nth-child(4n+2) { background: #eef3fb; border-color: #d7e3f5; }
.sch-note:nth-child(4n+3) { background: #edf6ed; border-color: #c4e0c4; }
.sch-note:nth-child(4n+4) { background: #fbeee9; border-color: #f2d6cc; }
.sch-note footer { margin-top: 8px; font: 800 12px var(--z-font-ui); color: var(--z-loy-700); }
.sch-ev { border-radius: var(--z-radius-lg); background: var(--z-surface); border: 1px solid var(--z-border); overflow: hidden; margin-bottom: var(--z-space-4); }
.sch-ev__top { display: flex; gap: 14px; padding: 14px; align-items: center; }
.sch-ev__top h3 { margin: 0 0 2px; font: 700 var(--z-text-md)/1.3 var(--z-font-ui); }
.sch-ev__n { font: 800 12px var(--z-font-ui); color: var(--z-success); margin-top: 2px; }
.sch-ev__text { margin: 0; padding: 0 14px 12px; color: var(--z-text-2); font-size: var(--z-text-sm); }
.sch-ev__rs { display: flex; gap: 6px; padding: 0 14px 14px; }
.sch-ev__rs button { flex: 1; padding: 10px 4px; border: 0; border-radius: 10px; background: var(--z-bg-sunken); color: var(--z-text); font: 800 var(--z-text-sm) var(--z-font-ui); cursor: pointer; }
.sch-ev__rs button[aria-pressed="true"] { background: var(--z-primary); color: var(--z-on-primary); }
.sch-ev.is-past { opacity: .7; }
.sch-ev.is-past .sch-date { background: var(--z-text-3); }
.sch-ev__past { padding: 0 14px 14px; font-size: var(--z-text-sm); color: var(--z-text-3); font-weight: 700; }
.sch-need { padding: 14px; border-radius: var(--z-radius-lg); background: var(--z-surface); border: 1px solid var(--z-border); margin-bottom: var(--z-space-3); }
.sch-need__head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.sch-need h3 { margin: 0; font: 700 var(--z-text-md)/1.3 var(--z-font-ui); }
.sch-need p { margin: 8px 0 0; color: var(--z-text-2); font-size: var(--z-text-sm); }
.sch-need.is-done { opacity: .75; }
.sch-bar { height: 9px; border-radius: var(--z-radius-pill); background: var(--z-bg-sunken); overflow: hidden; margin: 10px 0 6px; }
.sch-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--z-success), #6fb07c); }
.sch-thx { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.sch-thx span { font: 700 12px var(--z-font-ui); padding: 4px 9px; border-radius: var(--z-radius-pill); background: var(--z-success-soft); color: var(--z-success); }
.sch-news { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.sch-newsc { border-radius: var(--z-radius-lg); background: var(--z-surface); border: 1px solid var(--z-border); overflow: hidden; }
.sch-newsc > div { padding: 12px 14px 14px; }
.sch-newsc h3 { margin: 4px 0 6px; font: 600 var(--z-text-lg)/1.3 var(--z-font-display); }
.sch-newsc p { margin: 0 0 6px; color: var(--z-text-2); font-size: var(--z-text-sm); }
.sch-newsc__ph { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.sch-newsc__ph img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Odam varagʻi */
.sch-ps { display: grid; justify-items: center; text-align: center; gap: 4px; margin-bottom: 8px; }
.sch-ps h2 { margin: 6px 0 0; }
.sch-ps p { margin: 0; }
.sch-ps.is-memo .sch-face, .sch-ps.is-memo .z-avatar { filter: grayscale(.5); }
.sch-quote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--z-accent); background: var(--z-accent-soft); border-radius: 8px; font: italic 500 var(--z-text-md)/1.5 var(--z-font-display); }
.sch-mlist { display: grid; gap: 12px; margin-bottom: 12px; }
.sch-mlist__i { display: flex; gap: 10px; }
.sch-mlist__i p { margin: 4px 0 0; font-size: var(--z-text-sm); color: var(--z-text-2); }

/* Pastki panelni sozlash */
.app-tabbar a { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
@media (min-width: 1024px) { .tabs-row { display: none; } }
.tabs-prev { display: flex; justify-content: space-around; gap: 4px; padding: 10px 4px 8px; margin-bottom: 14px; background: var(--z-bg); border: 1px dashed var(--z-border-strong); border-radius: var(--z-radius-md); }
.tabs-prev__i { position: relative; flex: 1; min-width: 0; display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--z-text-2); font: 700 10.5px var(--z-font-ui); text-align: center; white-space: nowrap; overflow: visible; }
.tabs-prev__ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--z-surface); border: 2px solid var(--z-primary); color: var(--z-primary); font-size: 18px; }
.tabs-prev__ic .z-icon { width: 20px; height: 20px; }
.tabs-prev__i.is-fixed .tabs-prev__ic { border: 1px dashed var(--z-border-strong); background: transparent; color: var(--z-text-3); }
.tabs-prev__i.is-empty { color: var(--z-text-3); }
.tabs-prev__i.is-empty .tabs-prev__ic { border: 1px dashed var(--z-border-strong); color: var(--z-text-3); background: transparent; }
button.tabs-prev__i { cursor: pointer; }
.tabs-prev__x { position: absolute; top: -6px; right: calc(50% - 28px); width: 18px; height: 18px; border-radius: 50%; background: var(--z-danger); color: #fff; font: 800 12px/18px var(--z-font-ui); }
.tabs-opts { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.tabs-opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--z-border); background: var(--z-surface); color: var(--z-text); font: 700 var(--z-text-sm) var(--z-font-ui); text-align: left; cursor: pointer; }
.tabs-opt__ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--z-bg-sunken); color: var(--z-text-2); }
.tabs-opt__ic .z-icon { width: 18px; height: 18px; }
.tabs-opt__l { flex: 1; min-width: 0; }
.tabs-opt__n { font: 800 11px var(--z-font-ui); color: var(--z-primary-text); }
.tabs-opt__c { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--z-border-strong); color: #fff; font: 800 13px var(--z-font-ui); }
.tabs-opt.is-on { border-color: var(--z-primary); background: var(--z-primary-soft); }
.tabs-opt.is-on .tabs-opt__ic { background: var(--z-primary); color: var(--z-on-primary); }
.tabs-opt.is-on .tabs-opt__c { background: var(--z-primary); border-color: var(--z-primary); }
.tabs-opt.is-off { opacity: .5; }
.tabs-acts { display: flex; gap: 8px; margin-top: 14px; position: sticky; bottom: 0; padding: 10px 0 4px; background: var(--z-surface); }
.tabs-acts .z-btn { flex: 1; }

/* Yigʻim kanali */
.led-tag { margin-right: 6px; font: 800 9.5px/1 var(--z-font-ui); letter-spacing: .04em; padding: 3px 7px; border-radius: var(--z-radius-pill); background: var(--z-success); color: #fff; vertical-align: 2px; }
.led-tag.is-closed { background: var(--z-text-3); }
.led-mini { display: block; height: 5px; margin-top: 5px; border-radius: 9px; background: var(--z-bg-sunken); overflow: hidden; }
.led-mini i { display: block; height: 100%; background: var(--z-success); border-radius: inherit; }
.led-scroll { padding: var(--z-space-2) 0 90px; }
@media (min-width: 1024px) { .led-scroll { flex: 1; overflow-y: auto; padding: var(--z-space-4) var(--z-space-8) 90px; } .chat-pane { position: relative; } }
.led-goal { position: relative; overflow: hidden; border-radius: var(--z-radius-lg); padding: 16px; color: #fff; background: linear-gradient(140deg, var(--z-bog-700), var(--z-bog-500) 55%, var(--z-firuza-500)); }
.led-goal.is-closed { background: linear-gradient(140deg, #4a4237, #6d6253); }
.led-goal::after { content: ""; position: absolute; right: -34px; top: -34px; width: 130px; height: 130px; border: 1.5px solid rgba(244, 195, 116, .4); transform: rotate(22deg); border-radius: 8px; pointer-events: none; }
.led-goal__k { font: 800 10.5px var(--z-font-ui); letter-spacing: .14em; color: var(--z-orik-300); }
.led-goal__t { margin: 6px 0 0; font: 600 var(--z-text-md)/1.4 var(--z-font-display); max-width: 60ch; }
.led-goal__big { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 10px 0 6px; }
.led-goal__big b { font: 800 28px/1 var(--z-font-ui); font-variant-numeric: tabular-nums; }
.led-goal__big span { font-size: var(--z-text-sm); opacity: .9; }
.led-bar { height: 10px; border-radius: var(--z-radius-pill); background: rgba(255, 255, 255, .22); overflow: hidden; }
.led-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--z-orik-300), var(--z-orik-500)); transition: width .5s var(--z-ease); }
.led-goal__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; margin-top: 6px; opacity: .92; }
.led-sums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.led-sums div { background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 8px 6px; text-align: center; }
.led-sums b { display: block; font: 800 15px var(--z-font-ui); font-variant-numeric: tabular-nums; }
.led-sums span { font-size: 11px; font-weight: 700; opacity: .88; }
.led-goal__acts { display: flex; gap: 8px; margin-top: 12px; position: relative; z-index: 1; }
.led-goal__acts .z-btn { --_bg: rgba(255, 255, 255, .16); --_fg: #fff; --_bd: rgba(255, 255, 255, .3); }
.led-seg { display: flex; gap: 2px; padding: 4px; margin: 14px 0 10px; background: var(--z-bg-sunken); border-radius: var(--z-radius-pill); overflow-x: auto; scrollbar-width: none; }
.led-seg button { flex: 1 0 auto; padding: 8px 12px; border: 0; border-radius: var(--z-radius-pill); background: transparent; color: var(--z-text-2); font: 800 12.5px var(--z-font-ui); white-space: nowrap; cursor: pointer; }
.led-seg button[aria-current] { background: var(--z-surface-raised); color: var(--z-text); box-shadow: var(--z-shadow-1); }
.led-search { margin-bottom: 8px; }
.led-list { background: var(--z-surface); border: 1px solid var(--z-border); border-radius: var(--z-radius-md); overflow: hidden; }
.led-day { padding: 5px 12px; background: var(--z-bg); font: 800 11px var(--z-font-ui); color: var(--z-text-3); letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--z-border); }
.led-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--z-border); background: none; color: var(--z-text); font: inherit; text-align: left; cursor: pointer; }
.led-list > :last-child { border-bottom: 0; }
.led-row__n { width: 26px; flex: none; text-align: right; font: 800 11.5px var(--z-font-ui); color: var(--z-text-3); }
.led-row__n .z-icon { width: 18px; height: 18px; }
.led-row__ph { width: 38px; height: 38px; flex: none; border-radius: 8px; overflow: hidden; background: var(--z-bg-sunken); cursor: zoom-in; }
.led-row__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.led-row__m { flex: 1; min-width: 0; display: grid; gap: 2px; }
.led-row__m strong { font-size: var(--z-text-sm); }
.led-row__s { font: 800 var(--z-text-md) var(--z-font-ui); color: var(--z-success); white-space: nowrap; font-variant-numeric: tabular-nums; }
.led-row__s.is-out { color: var(--z-danger); }
.led-row.is-deleted .led-row__m strong, .led-row.is-deleted .led-row__s { text-decoration: line-through; opacity: .55; }
.led-row__del { font-size: 11.5px; color: var(--z-danger); font-weight: 700; }
.led-row.is-pending { background: var(--z-accent-soft); }
.led-row__pend { font-size: 11.5px; color: var(--z-accent-text); font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.led-row__acts { display: inline-flex; gap: 6px; }
.led-person { border-bottom: 1px solid var(--z-border); }
.led-person summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; list-style: none; }
.led-person summary::-webkit-details-marker { display: none; }
.led-person ul { list-style: none; margin: 0; padding: 0 12px 10px 24px; font-size: var(--z-text-sm); color: var(--z-text-2); }
.led-person li { display: flex; justify-content: space-between; padding: 3px 0; border-top: 1px dashed var(--z-border); }
.led-person li b { color: var(--z-success); font-variant-numeric: tabular-nums; }
.led-chip { font: 800 11px var(--z-font-ui); padding: 3px 8px; border-radius: var(--z-radius-pill); white-space: nowrap; }
.led-chip--full { background: var(--z-success-soft); color: var(--z-success); }
.led-chip--part { background: var(--z-accent-soft); color: var(--z-accent-text); }
.led-foot { font-size: 11.5px; color: var(--z-text-3); text-align: center; margin: 12px 8px 0; }
.led-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; box-shadow: 0 10px 24px -8px rgba(42, 94, 168, .7); }
@media (min-width: 1024px) { .led-fab { position: absolute; right: 24px; bottom: 24px; } }
.led-kind { display: flex; gap: 6px; }
.led-kind button { flex: 1; padding: 11px 0; border-radius: 12px; border: 2px solid var(--z-border); background: var(--z-surface); color: var(--z-text-2); font: 800 var(--z-text-sm) var(--z-font-ui); cursor: pointer; }
.led-kind button[aria-checked="true"]:first-child { border-color: var(--z-success); background: var(--z-success-soft); color: var(--z-success); }
.led-kind button[aria-checked="true"]:last-child { border-color: var(--z-danger); background: var(--z-danger-soft); color: var(--z-danger); }
.led-name { position: relative; }
.led-sugg { margin-top: 4px; border: 1px solid var(--z-border); border-radius: 12px; overflow: hidden; background: var(--z-surface-raised); box-shadow: var(--z-shadow-2); }
.led-sugg button { display: flex; width: 100%; gap: 8px; align-items: center; justify-content: space-between; padding: 9px 12px; border: 0; border-bottom: 1px solid var(--z-border); background: none; color: var(--z-text); font: 600 var(--z-text-sm) var(--z-font-ui); text-align: left; cursor: pointer; }
.led-sugg button:last-child { border-bottom: 0; }
.led-sugg small { color: var(--z-text-3); font-size: 11.5px; white-space: nowrap; }
.led-sugg small.is-given { color: var(--z-accent-text); font-weight: 800; }
.led-warn { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--z-accent-soft); color: var(--z-text); font-size: var(--z-text-sm); }
.led-warn .z-icon { width: 18px; height: 18px; flex: none; color: var(--z-accent-text); margin-top: 1px; }
.led-money { display: flex; align-items: center; gap: 8px; }
.led-money .z-input { font: 800 22px var(--z-font-ui); font-variant-numeric: tabular-nums; }
.led-money span { font-weight: 700; color: var(--z-text-3); }
.led-chips { margin-top: 8px; }
.led-acts { display: flex; gap: 8px; }
.led-acts .z-btn { flex: 1; }

/* Yigʻim: sahifalash, tartib, filtr */
.led-sticky { position: sticky; top: calc(var(--z-appbar-h) + var(--z-safe-top, 0px)); z-index: 6; display: flex; align-items: center; gap: 8px; margin: 0 0 -46px; height: 46px; padding: 0 12px;
  border-radius: 0 0 14px 14px; color: #fff; background: linear-gradient(140deg, var(--z-bog-700), var(--z-bog-500) 60%, var(--z-firuza-500)); font-size: 12px;
  opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--z-shadow-2); }
.led-sticky.is-on { opacity: 1; transform: none; }
.led-sticky b { font: 800 16px var(--z-font-ui); font-variant-numeric: tabular-nums; }
.led-sticky span { opacity: .92; white-space: nowrap; }
.led-sticky .led-bar { flex: 1; height: 7px; min-width: 40px; }
@media (min-width: 1024px) { .led-sticky { top: 0; } }
.led-tools { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.led-tools .led-search { flex: 1; margin: 0; }
.led-tbtn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--z-border); background: var(--z-surface); color: var(--z-text-2); font: 800 12.5px var(--z-font-ui); cursor: pointer; white-space: nowrap; }
.led-tbtn.is-on { border-color: var(--z-primary); color: var(--z-primary-text); background: var(--z-primary-soft); }
.led-tbtn .z-icon { width: 16px; height: 16px; }
.led-tbtn__n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--z-primary); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 5px; }
.led-chips2 { margin-bottom: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.led-chips2 .z-chip { flex: none; }
.led-count { display: flex; justify-content: space-between; gap: 8px; margin: 2px 4px 6px; font: 700 12px var(--z-font-ui); color: var(--z-text-3); font-variant-numeric: tabular-nums; }
.led-more { display: block; width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--z-border-strong); background: var(--z-surface); color: var(--z-primary-text); font: 800 var(--z-text-sm) var(--z-font-ui); cursor: pointer; }
.led-more:disabled { opacity: .6; cursor: progress; }
.led-letter { padding: 4px 12px; background: var(--z-bg); border-bottom: 1px solid var(--z-border); font: 800 12px var(--z-font-ui); color: var(--z-primary-text); scroll-margin-top: calc(var(--z-appbar-h) + 56px); }
.led-az { position: fixed; right: 2px; top: 50%; transform: translateY(-50%); z-index: 15; display: flex; flex-direction: column; align-items: center; padding: 4px 1px; border-radius: 12px; background: color-mix(in srgb, var(--z-surface) 85%, transparent); max-height: 70vh; overflow-y: auto; scrollbar-width: none; }
.led-az button { border: 0; background: none; padding: 2px 4px; font: 800 10.5px/1.25 var(--z-font-ui); color: var(--z-primary-text); cursor: pointer; }
@media (min-width: 1024px) { .led-az { position: absolute; right: 6px; } }
.led-pend { width: 100%; margin-top: 10px; border: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.led-fs { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.led-radio-chip { cursor: pointer; }
.led-radio-chip[aria-pressed="true"] { background: var(--z-text); color: var(--z-bg); border-color: var(--z-text); }
.led-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
#ledList:has(.led-az) .led-list { margin-right: 20px; }
@media (min-width: 1024px) { #ledList:has(.led-az) .led-list { margin-right: 28px; } }

/* Yigʻim: muddat va qilingan ishlar hisoboti */
.led-goal.is-working { background: linear-gradient(140deg, var(--z-lojuvard-700), var(--z-primary) 55%, var(--z-firuza-500)); }
.led-dl { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .14); font-size: 12.5px; line-height: 1.35; }
.led-dl b { font-size: 14px; }
.led-dl__cal { flex: none; width: 42px; text-align: center; padding: 3px 0; border-radius: 9px; background: #fff; color: var(--z-lojuvard-600); }
.led-dl__cal b { display: block; font: 800 17px/1 var(--z-font-ui); }
.led-dl__cal span { font: 800 9px var(--z-font-ui); letter-spacing: .06em; }
.led-stamp { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 11px; border-radius: var(--z-radius-pill); background: var(--z-orik-300); color: #3a2a10; font: 800 11.5px var(--z-font-ui); }
.led-reps { position: relative; display: grid; gap: 10px; padding-left: 18px; }
.led-reps::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--z-border); }
.led-rep { position: relative; padding: 12px 14px; border-radius: var(--z-radius-md); background: var(--z-surface); border: 1px solid var(--z-border); }
.led-rep::before { content: ""; position: absolute; left: -16px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--z-success); border: 2px solid var(--z-bg); }
.led-rep.is-final { border: 2px solid var(--z-success); background: var(--z-success-soft); }
.led-rep__hd { display: flex; align-items: center; gap: 8px; font: 700 12px var(--z-font-ui); color: var(--z-text-3); }
.led-rep__hd .pv-x { margin-left: auto; }
.led-rep__dot { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--z-success); color: #fff; }
.led-rep__dot .z-icon { width: 14px; height: 14px; }
.led-rep h3 { margin: 8px 0 4px; font: 600 var(--z-text-lg)/1.3 var(--z-font-display); }
.led-rep p { margin: 0 0 8px; font-size: var(--z-text-sm); color: var(--z-text-2); }
.led-rep__pics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.led-rep__pics button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; cursor: zoom-in; background: var(--z-bg-sunken); }
.led-rep__pics img { width: 100%; height: 100%; object-fit: cover; display: block; }
.led-rep__spent { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--z-border); font-size: var(--z-text-sm); }
.led-rep__spent summary { display: flex; justify-content: space-between; cursor: pointer; list-style: none; font-weight: 700; color: var(--z-text-2); }
.led-rep__spent summary::-webkit-details-marker { display: none; }
.led-rep__spent summary b { color: var(--z-danger); }
.led-rep__spent ul { list-style: none; margin: 6px 0 0; padding: 0; color: var(--z-text-3); }
.led-rep__spent li { display: flex; justify-content: space-between; padding: 2px 0; }
.led-repouts { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; }
.led-repouts .check-row b { margin-left: auto; color: var(--z-danger); font-variant-numeric: tabular-nums; white-space: nowrap; }
.led-final { padding: 10px 12px; border-radius: 12px; background: var(--z-success-soft); }
.led-kind button:disabled { opacity: .45; cursor: not-allowed; }

/* «Oʻzimni kiritish» — profildagi maʼlumot formaga yoziladi */
.me-fill { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin: 4px 0 2px; border-radius: var(--z-radius-md); border: 1.5px dashed color-mix(in srgb, var(--z-primary) 45%, transparent); background: var(--z-primary-soft); color: var(--z-text); text-align: left; font: inherit; cursor: pointer; transition: background var(--z-dur-1); }
.me-fill:hover { background: color-mix(in srgb, var(--z-primary) 16%, transparent); }
.me-fill__t { flex: 1; min-width: 0; display: grid; }
.me-fill__t b { font-size: var(--z-text-sm); color: var(--z-primary-text); }
.me-fill__t small { font-size: var(--z-text-xs); color: var(--z-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-fill > .z-icon { color: var(--z-primary-text); flex: none; }
.me-fill.is-done { border-style: solid; border-color: var(--z-success); background: var(--z-success-soft); }
.me-fill.is-done .me-fill__t b { color: var(--z-success); }

/* Telegram bot orqali kirish — kutish oynasi */
.tg-wait { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 8px 0 4px; }
.tg-wait__ic .social-logo { width: 56px; height: 56px; }
.tg-wait__spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--z-primary-soft); border-top-color: var(--z-primary); animation: tgSpin .9s linear infinite; }
@keyframes tgSpin { to { transform: rotate(360deg); } }

/* Ariza: shajaradan oʻzini tanlash */
.claim-hit { display: grid; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--z-border); }
.claim-hit .hit { pointer-events: none; }
.claim-hit__b { display: flex; gap: 6px; flex-wrap: wrap; padding-left: 46px; }

/* Oilamni taklif qilish */
.invite-new { display: grid; gap: 8px; padding: 10px 12px; border-radius: var(--z-radius-md); background: var(--z-success-soft); }
.invite-new code { font-size: 12px; word-break: break-all; }
.invite-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.invite-list li > span { display: grid; }

/* ---------- Shajara raqamlari ---------- */
.stats-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
@media (min-width: 720px) { .stats-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; min-width: 0; }
.stat-tile__ic { color: var(--z-accent); display: inline-flex; }
.stat-tile__ic svg { width: 22px; height: 22px; }
.stat-tile strong { font-size: var(--z-text-2xl, 1.6rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-tile > span:last-child { color: var(--z-text-2); font-size: var(--z-text-sm); }
.stats-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 12px; }
@media (min-width: 720px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stats-grid + .z-card, .stats-grid ~ .z-card { margin-bottom: 12px; }
.stats-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: var(--z-text-lg); line-height: 1.3; }
.stats-h svg { width: 18px; height: 18px; color: var(--z-accent); }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stats-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.stats-list__n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: var(--z-text-xs); font-weight: 700; background: var(--z-accent-soft); color: var(--z-accent-text); }
.stats-list__name { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--z-text); cursor: pointer; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-list__name:hover { color: var(--z-primary); text-decoration: underline; }
.decades { display: flex; align-items: flex-end; gap: 4px; height: 150px; overflow-x: auto; padding-top: 4px; }
.decades__col { flex: 1 0 22px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 22px; }
.decades__bar { width: 100%; max-width: 34px; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--z-accent), color-mix(in srgb, var(--z-accent) 55%, transparent)); }
.decades__n, .decades__d { font-size: var(--z-text-xs); color: var(--z-text-2); font-variant-numeric: tabular-nums; }
/* ---------- Odam varagʻi: hayot yoʻli ---------- */
#lifeBox { margin: 14px 0 4px; }
.life { list-style: none; margin: 0; padding: 0; position: relative; }
.life::before { content: ""; position: absolute; left: 61px; top: 6px; bottom: 6px; width: 2px; background: var(--z-border); }
.life li { display: grid; grid-template-columns: 44px 36px minmax(0, 1fr); align-items: center; gap: 0 4px; padding: 5px 0; position: relative; }
.life__y { font-size: var(--z-text-sm); font-weight: 700; color: var(--z-text-2); text-align: right; font-variant-numeric: tabular-nums; padding-right: 4px; }
.life__ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--z-surface); border: 2px solid var(--z-border); color: var(--z-accent); justify-self: center; z-index: 1; }
.life__ic svg { width: 14px; height: 14px; }
.life a { color: var(--z-primary); font-weight: 600; text-decoration: none; }
.life a:hover { text-decoration: underline; }
/* Profil (kirgan): chap karta tepada turadi, oʻng ustun uzun boʻlsa ham */
.auth--me { align-items: start; }
@media (min-width: 900px) { .auth--me > .auth-card { position: sticky; top: calc(var(--appbar-h, 64px) + 16px); } }
.person-born { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.person-born svg { width: 14px; height: 14px; flex: none; }
