/* AI Slides — yagona slayd-partial (templates/slides/_slide.html) uslublari. Bosqich 1b «Vizual + dizayn» (2026-10-22).
   Bitta markup uchta yuzada: thumbnail (.is-thumb), ko'ruvchi, taqdim-rejimi (reveal.js). O'lcham faqat container-
   query birligida (cqw) — konteyner kengligi qancha bo'lsa, slayd shunga mos masshtablanadi (16:9).
   Tema-ranglari inline CSS-o'zgaruvchilar (`themes.css_vars`), dekor `data-theme` bo'yicha. Tailwind'siz, build'siz. */

.sl-frame {
  container-type: inline-size;
  container-name: slide;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
  background: var(--sl-bg);
  color: var(--sl-fg);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.28;
  border-radius: 1.4cqw;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 32px -16px rgba(15, 23, 42, .25);
  -webkit-font-smoothing: antialiased;
}
.sl-frame *, .sl-frame *::before, .sl-frame *::after { box-sizing: border-box; }
.sl-frame.is-thumb { pointer-events: none; border-radius: 0.9cqw; box-shadow: none; }
.sl-frame[data-dark="1"] { box-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -16px rgba(0, 0, 0, .6); }

.sl-body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 5.2cqw 6cqw 7.5cqw; }
.sl-foot {
  position: absolute; left: 6cqw; right: 6cqw; bottom: 2.6cqw; z-index: 3;
  display: flex; justify-content: space-between; gap: 2cqw;
  font-size: clamp(5px, 1.55cqw, 15px); color: var(--sl-muted); letter-spacing: .02em;
}
.sl-foot span:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 75%; }

.sl-h { font-family: Sora, Inter, system-ui, sans-serif; font-weight: 700; letter-spacing: -.015em; line-height: 1.12; margin: 0; }
.sl-title-h { font-size: clamp(9px, 4cqw, 46px); margin-bottom: 3.2cqw; padding-right: 8cqw; }
.sl-kicker { font-size: clamp(5px, 1.9cqw, 18px); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-accent); margin: 0 0 2.4cqw; }
.sl-sub { font-size: clamp(6px, 2.5cqw, 26px); color: var(--sl-muted); margin: 2.4cqw 0 0; max-width: 78%; line-height: 1.35; }

/* ── Dekor (tema bo'yicha) ───────────────────────────────────────────── */
.sl-deco { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sl-frame[data-theme="klassik"] .sl-deco::before {
  content: ""; position: absolute; right: -14cqw; bottom: -22cqw; width: 48cqw; height: 48cqw; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--sl-accent) 22%, transparent), transparent 70%);
}
.sl-frame[data-theme="klassik"] .sl-deco::after {
  content: ""; position: absolute; left: -6cqw; top: -8cqw; width: 22cqw; height: 22cqw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sl-accent2) 18%, transparent), transparent 70%);
}
.sl-frame[data-theme="tungi"] { background: radial-gradient(120% 90% at 85% 10%, var(--sl-bg2), var(--sl-bg) 60%); }
.sl-frame[data-theme="tungi"] .sl-deco {
  background-image: radial-gradient(circle, rgba(255,255,255,.55) .35cqw, transparent .4cqw),
                    radial-gradient(circle, rgba(255,255,255,.35) .25cqw, transparent .3cqw);
  background-size: 11cqw 9cqw, 7cqw 13cqw; background-position: 0 0, 3cqw 5cqw; opacity: .35;
}
.sl-frame[data-theme="tungi"] .sl-deco::before {
  content: ""; position: absolute; right: -10cqw; top: -14cqw; width: 42cqw; height: 42cqw; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sl-accent) 28%, transparent), transparent 65%); filter: blur(2cqw);
}
.sl-frame[data-theme="maktab"] { background: linear-gradient(160deg, var(--sl-bg), var(--sl-bg2)); }
.sl-frame[data-theme="maktab"] .sl-deco {
  background-image: linear-gradient(rgba(217,119,6,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(217,119,6,.07) 1px, transparent 1px);
  background-size: 4.5cqw 4.5cqw; mask-image: linear-gradient(135deg, transparent 45%, #000 100%);
}
.sl-frame[data-theme="maktab"] .sl-deco::before {
  content: ""; position: absolute; right: 5cqw; top: 5cqw; width: 9cqw; height: 9cqw; border-radius: 50%;
  background: color-mix(in srgb, var(--sl-accent) 18%, transparent);
}
.sl-frame[data-theme="minimal"] .sl-deco::before {
  content: ""; position: absolute; right: -8cqw; top: -8cqw; width: 36cqw; height: 36cqw;
  background: repeating-linear-gradient(135deg, rgba(24,24,27,.08) 0 .25cqw, transparent .25cqw 2.2cqw);
  mask-image: radial-gradient(circle at 70% 30%, #000 30%, transparent 70%);
}
.sl-frame[data-theme="gradient"] { background: linear-gradient(135deg, var(--sl-bg) 0%, #7C3AED 45%, var(--sl-bg2) 100%); }
.sl-frame[data-theme="gradient"] .sl-deco::before, .sl-frame[data-theme="gradient"] .sl-deco::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(2.5cqw); opacity: .55;
}
.sl-frame[data-theme="gradient"] .sl-deco::before { width: 40cqw; height: 40cqw; right: -12cqw; bottom: -18cqw; background: var(--sl-accent); }
.sl-frame[data-theme="gradient"] .sl-deco::after { width: 26cqw; height: 26cqw; left: -8cqw; top: -10cqw; background: var(--sl-accent2); }
.sl-frame[data-theme="daftar"] .sl-deco {
  background-image: repeating-linear-gradient(transparent 0 4.4cqw, rgba(37,99,235,.14) 4.4cqw 4.55cqw);
  background-position: 0 3.2cqw;
}
.sl-frame[data-theme="daftar"] .sl-deco::before { content: ""; position: absolute; left: 4.2cqw; top: 0; bottom: 0; width: .22cqw; background: color-mix(in srgb, var(--sl-accent2) 55%, transparent); }
.sl-frame[data-theme="daftar"] .sl-body { padding-left: 7.5cqw; }
.sl-frame[data-theme="akademik"] .sl-deco::before {
  content: ""; position: absolute; inset: 2.2cqw; border: .22cqw solid color-mix(in srgb, var(--sl-accent) 35%, transparent);
  outline: .12cqw solid color-mix(in srgb, var(--sl-accent) 18%, transparent); outline-offset: .5cqw; border-radius: .6cqw;
}
.sl-frame[data-theme="akademik"] .sl-deco::after {
  content: ""; position: absolute; right: 5cqw; top: 4.4cqw; width: 6cqw; height: 6cqw; border-radius: 50%;
  border: .35cqw double color-mix(in srgb, var(--sl-accent2) 70%, transparent);
}

/* ── Turlar ──────────────────────────────────────────────────────────── */
.sl-type-title .sl-body { justify-content: center; }
.sl-type-title .sl-title-h { font-size: clamp(11px, 6.2cqw, 72px); margin-bottom: 0; padding-right: 14cqw; }
.sl-type-title .sl-sub { font-size: clamp(6px, 2.6cqw, 28px); }
.sl-type-title .sl-brand { position: absolute; left: 6cqw; bottom: 2.6cqw; font-size: clamp(5px, 1.6cqw, 15px); color: var(--sl-accent); font-weight: 600; letter-spacing: .08em; }
.sl-type-title .sl-mark { width: 5.5cqw; height: 5.5cqw; border-radius: 1.4cqw; background: var(--sl-accent); margin-bottom: 3cqw; display: grid; place-items: center; color: var(--sl-bg); }
.sl-type-title .sl-mark svg { width: 55%; height: 55%; }

.sl-type-section .sl-body { justify-content: center; }
.sl-type-section .sl-num {
  position: absolute; right: 5cqw; bottom: -4cqw; font-family: Sora, Inter, sans-serif; font-weight: 800; line-height: 1;
  font-size: clamp(30px, 26cqw, 300px); color: var(--sl-accent); opacity: .12; letter-spacing: -.05em; z-index: 0;
}
.sl-type-section .sl-title-h { font-size: clamp(10px, 5.4cqw, 62px); margin-bottom: 0; }

.sl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.7cqw; font-size: clamp(6px, 2.45cqw, 27px); }
.sl-list li { display: flex; align-items: flex-start; gap: 1.9cqw; }
.sl-ico {
  flex: none; width: 3.4cqw; height: 3.4cqw; border-radius: 50%; margin-top: .25cqw;
  background: color-mix(in srgb, var(--sl-accent) 16%, transparent); color: var(--sl-accent);
  display: grid; place-items: center;
}
.sl-ico svg { width: 58%; height: 58%; }
.sl-frame[data-dark="1"] .sl-ico { background: color-mix(in srgb, var(--sl-accent) 26%, transparent); }

.sl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqw; flex: 1; min-height: 0; }
.sl-card { background: var(--sl-surface); border-radius: 1.6cqw; padding: 2.6cqw 2.8cqw; min-width: 0; }
.sl-frame[data-dark="1"] .sl-card { background: rgba(255,255,255,.08); backdrop-filter: blur(4px); }
.sl-card h3 { margin: 0 0 1.8cqw; font-family: Sora, Inter, sans-serif; font-size: clamp(6px, 2.5cqw, 26px); color: var(--sl-accent); font-weight: 700; }
.sl-card .sl-list { font-size: clamp(5px, 2.05cqw, 22px); gap: 1.3cqw; }
.sl-card .sl-ico { width: 2.6cqw; height: 2.6cqw; }

.sl-image { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; height: 100%; object-fit: cover; z-index: 1; }
.sl-type-image_text.has-image .sl-image { mask-image: linear-gradient(90deg, transparent 0, #000 12%); }
.sl-type-image_text.has-image .sl-body { padding-right: 50%; }
.sl-type-image_text.has-image .sl-foot { right: 50%; }
.sl-badge-ai { position: absolute; right: 2cqw; top: 2cqw; z-index: 3; font-size: clamp(5px, 1.4cqw, 13px); padding: .5cqw 1.2cqw; border-radius: 99px; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px); }
.sl-credit { position: absolute; right: 1.2cqw; bottom: 1.2cqw; z-index: 3; max-width: 44%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(5px, 1.05cqw, 11px); line-height: 1.3; padding: .35cqw .9cqw; border-radius: .6cqw; background: rgba(0,0,0,.55); color: #fff; text-decoration: none; }
.sl-credit:hover { text-decoration: underline; }

.sl-chart { flex: 1; min-height: 0; position: relative; }
.sl-chart canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.sl-chart-sketch { flex: 1; display: flex; align-items: flex-end; gap: 2cqw; padding: 2cqw 1cqw 0; }
.sl-chart-sketch i { flex: 1; display: block; border-radius: .6cqw .6cqw 0 0; background: var(--sl-accent); min-height: 4%; max-height: 100%; opacity: .85; }
.sl-chart-sketch i:nth-child(2n) { background: var(--sl-accent2); }
.sl-chart-cap { font-size: clamp(5px, 1.7cqw, 16px); color: var(--sl-muted); margin: 1cqw 0 0; }
.sl-chart-sketch.is-line { display: block; padding: 2cqw 1cqw 0; }
.sl-chart-sketch.is-line svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sl-chart-sketch.is-line polyline { fill: none; stroke: var(--sl-accent); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.sl-chart-sketch.is-line circle { fill: var(--sl-accent); }
.sl-chart-sketch.is-line .sl-area { fill: color-mix(in srgb, var(--sl-accent) 18%, transparent); stroke: none; }
.sl-chart-sketch.is-pie { display: grid; place-items: center; }
.sl-chart-sketch.is-pie i { width: 48%; aspect-ratio: 1; height: auto; border-radius: 50%; min-height: 0; opacity: 1;
  -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); mask: radial-gradient(circle, transparent 46%, #000 47%); }

.sl-q { font-size: clamp(7px, 2.8cqw, 30px); font-weight: 600; margin: 0 0 2.6cqw; line-height: 1.3; }
.sl-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; }
.sl-opt {
  display: flex; align-items: center; gap: 1.6cqw; text-align: left; width: 100%;
  padding: 1.6cqw 2cqw; border-radius: 1.3cqw; border: .22cqw solid transparent; cursor: pointer;
  background: var(--sl-surface); color: inherit; font: inherit; font-size: clamp(5px, 2.1cqw, 22px); line-height: 1.3;
  transition: transform .15s ease, border-color .15s ease, background .2s ease, opacity .2s ease;
}
.sl-frame[data-dark="1"] .sl-opt { background: rgba(255,255,255,.09); }
.sl-opt:hover { transform: translateY(-.2cqw); border-color: color-mix(in srgb, var(--sl-accent) 50%, transparent); }
.sl-opt b { flex: none; width: 3cqw; height: 3cqw; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--sl-accent) 16%, transparent); color: var(--sl-accent); font-weight: 700; font-size: clamp(5px, 1.7cqw, 17px); }
.sl-opt.is-correct { border-color: #10B981; background: color-mix(in srgb, #10B981 18%, var(--sl-surface)); animation: sl-pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.sl-opt.is-correct b { background: #10B981; color: #fff; }
.sl-opt.is-wrong { border-color: #EF4444; background: color-mix(in srgb, #EF4444 16%, var(--sl-surface)); animation: sl-shake .4s ease; }
.sl-opt.is-wrong b { background: #EF4444; color: #fff; }
.sl-opt.is-dim { opacity: .45; }
.sl-expl { margin: 2cqw 0 0; padding: 1.6cqw 2cqw; border-radius: 1.2cqw; color: var(--sl-fg); font-weight: 500;
  background: color-mix(in srgb, var(--sl-accent) 14%, var(--sl-bg)); border: .18cqw solid color-mix(in srgb, var(--sl-accent) 45%, transparent);
  font-size: clamp(5px, 2cqw, 20px); line-height: 1.4; }   /* animatsiyasiz: skrinshot/print paytida yarim-shaffof ko'rinmasin */
.sl-frame[data-dark="1"] .sl-expl { background: color-mix(in srgb, var(--sl-accent) 22%, var(--sl-bg)); }
.sl-opt.is-dim { opacity: .6; }
.sl-opt-static { pointer-events: none; }

.sl-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6cqw; }
.sl-chip { display: flex; gap: 1.4cqw; align-items: flex-start; padding: 1.7cqw 2cqw; border-radius: 1.3cqw; background: var(--sl-surface); font-size: clamp(5px, 2.05cqw, 22px); line-height: 1.3; }
.sl-frame[data-dark="1"] .sl-chip { background: rgba(255,255,255,.09); }
.sl-chip .sl-ico { width: 2.8cqw; height: 2.8cqw; margin-top: 0; }

/* ── Animatsiyalar ───────────────────────────────────────────────────── */
@keyframes sl-pop { 0% { transform: scale(.96); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes sl-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-.8cqw); } 75% { transform: translateX(.8cqw); } }
@keyframes sl-fade-up { from { opacity: 0; transform: translateY(1.2cqw); } to { opacity: 1; transform: none; } }
@keyframes sl-float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }
@keyframes sl-shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.sl-enter { animation: sl-fade-up .4s ease both; }   /* ko'ruvchi-kartada ishlatilmaydi: skrinshot/print vaqtida yarim-shaffof qolardi */
@media (prefers-reduced-motion: reduce) { .sl-frame *, .sl-enter, .sl-hero-card { animation: none !important; transition: none !important; } }

/* ── Ko'ruvchi qobig'i ────────────────────────────────────────────────── */
.sl-thumbs { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
@media (min-width: 1024px) {
  .sl-thumbs-aside { position: sticky; top: 5rem; align-self: start; }
  .sl-thumbs { flex-direction: column; overflow-x: hidden; overflow-y: auto; max-height: calc(100vh - 7rem); padding-right: 4px; }
}
.sl-thumb { display: block; width: 100%; border-radius: 10px; overflow: hidden; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s ease, transform .15s ease; background: transparent; padding: 0; border: 0; cursor: pointer; }
.sl-thumb:hover { transform: translateY(-1px); }
.sl-thumb.is-active { outline-color: #6366F1; }
.sl-thumb-num { display: block; font-size: 11px; color: #94A3B8; margin: 2px 0 6px 2px; }
.sl-theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.sl-theme-pick button { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.sl-theme-pick button .sl-frame { outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .15s ease; }
.sl-theme-pick button.is-active .sl-frame, .sl-theme-pick button:hover .sl-frame { outline-color: #6366F1; }
.sl-theme-pick span { display: block; font-size: 11px; margin-top: 6px; color: #64748B; }

/* ── Kutish: bosqichli progress + skelet ─────────────────────────────── */
.sl-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sl-step { padding: 10px 8px; border-radius: 12px; background: #F1F5F9; color: #64748B; font-size: 12px; text-align: center; transition: background .3s, color .3s; }
.sl-step.is-done { background: #DCFCE7; color: #166534; }
.sl-step.is-active { background: #E0E7FF; color: #3730A3; font-weight: 600; }
.dark .sl-step { background: #1E293B; color: #94A3B8; } .dark .sl-step.is-done { background: #14532D; color: #BBF7D0; } .dark .sl-step.is-active { background: #312E81; color: #C7D2FE; }
.sl-skeleton { aspect-ratio: 16 / 9; border-radius: 14px; background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%); background-size: 200% 100%; animation: sl-shimmer 1.6s linear infinite; }
.dark .sl-skeleton { background: linear-gradient(90deg, #1E293B 25%, #334155 50%, #1E293B 75%); background-size: 200% 100%; }

/* ── Landing hero (deck-mockup) ───────────────────────────────────────── */
.sl-hero-stack { position: relative; width: 100%; max-width: 420px; aspect-ratio: 16 / 11; margin: 0 auto; }
.sl-hero-card { position: absolute; left: 0; right: 0; animation: sl-float 6s ease-in-out infinite; }
.sl-hero-card:nth-child(1) { top: 0; --r: -4deg; animation-delay: 0s; z-index: 1; width: 78%; left: 4%; }
.sl-hero-card:nth-child(2) { top: 18%; --r: 2deg; animation-delay: -2s; z-index: 2; width: 84%; left: 12%; }
.sl-hero-card:nth-child(3) { top: 38%; --r: -1deg; animation-delay: -4s; z-index: 3; width: 88%; left: 6%; }

/* ── Taqdim-rejimi (reveal.js) ────────────────────────────────────────── */
.reveal .sl-frame { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.reveal .slides section.sl-section { padding: 0; width: 100%; height: 100%; text-align: left; }
.reveal .sl-list li.fragment { opacity: 0; transform: translateX(-1.2cqw); transition: opacity .35s ease, transform .35s ease; }
.reveal .sl-list li.fragment.visible { opacity: 1; transform: none; }
.reveal .progress { height: 4px; }

/* ── AI-tahrir (1c): bosiladigan matn-bo'laklari, menyu, modal ───────── */
.sl-viewer [data-sf] { cursor: pointer; border-radius: 6px; transition: box-shadow .15s, background .15s; }
.sl-viewer [data-sf]:hover { box-shadow: 0 0 0 3px rgba(99, 102, 241, .45); background: rgba(99, 102, 241, .08); }
.sl-viewer .sl-sf-active { box-shadow: 0 0 0 3px #6366F1 !important; background: rgba(99, 102, 241, .14) !important; }
.sl-ai-act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #C7D2FE; font-size: 13px; font-weight: 500; color: #1E1B4B; white-space: nowrap; }
.sl-ai-act:hover, .sl-ai-act.is-open { background: #E0E7FF; }
.sl-ai-act i, .sl-ai-btn i, .sl-ai-chip i, .sl-ai-row > i { font-style: normal; font-size: 11px; color: #64748B; }
.dark .sl-ai-act { background: #0F172A; color: #E0E7FF; box-shadow: inset 0 0 0 1px #3730A3; } .dark .sl-ai-act:hover, .dark .sl-ai-act.is-open { background: #312E81; }
.sl-ai-drop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; min-width: 200px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .18), 0 0 0 1px #E2E8F0; }
.sl-ai-drop button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 7px 10px; border-radius: 8px; font-size: 13px; text-align: left; }
.sl-ai-drop button:hover { background: #EEF2FF; }
.dark .sl-ai-drop { background: #0F172A; box-shadow: 0 12px 32px rgba(0, 0, 0, .5), 0 0 0 1px #334155; } .dark .sl-ai-drop button:hover { background: #312E81; }
.sl-ai-menu { position: fixed; z-index: 60; width: 328px; max-width: calc(100vw - 16px); padding: 8px; border-radius: 14px; background: #fff; color: #0F172A; box-shadow: 0 14px 40px rgba(15, 23, 42, .25), 0 0 0 1px #E2E8F0; font-size: 13px; }
.dark .sl-ai-menu { background: #0F172A; color: #E2E8F0; box-shadow: 0 14px 40px rgba(0, 0, 0, .6), 0 0 0 1px #334155; }
.sl-ai-menu-head { margin: 2px 8px 6px; font-size: 11px; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-ai-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 7px 10px; border-radius: 10px; text-align: left; }
.sl-ai-btn:hover { background: #EEF2FF; } .dark .sl-ai-btn:hover { background: #312E81; }
.sl-ai-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 10px; border-top: 1px solid #F1F5F9; }
.dark .sl-ai-row { border-color: #1E293B; }
.sl-ai-chip { padding: 4px 10px; border-radius: 999px; background: #F1F5F9; font-size: 12px; font-weight: 500; }
.sl-ai-chip:hover { background: #E0E7FF; } .sl-ai-chip:disabled { opacity: .4; }
.dark .sl-ai-chip { background: #1E293B; } .dark .sl-ai-chip:hover { background: #312E81; }
.sl-ai-select { padding: 3px 6px; border-radius: 8px; border: 1px solid #CBD5E1; font-size: 12px; background: #fff; }
.dark .sl-ai-select { background: #0F172A; border-color: #334155; color: #E2E8F0; }
.sl-ai-input { flex: 1; min-width: 140px; padding: 6px 10px; border-radius: 10px; border: 1px solid #CBD5E1; font-size: 13px; background: #fff; }
.dark .sl-ai-input { background: #0F172A; border-color: #334155; color: #E2E8F0; }
.sl-ai-slide .sl-frame { pointer-events: none; }

/* ── 1d: fayl-yuklash va rejim-kartalari (landing) ───────────────────── */
.sl-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 14px; border: 2px dashed #C7D2FE; border-radius: 16px; background: #F5F7FF; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.sl-drop:hover, .sl-drop:focus-within { background: #EEF2FF; border-color: #818CF8; }
.dark .sl-drop { background: #0F172A; border-color: #3730A3; } .dark .sl-drop:hover { background: #1E1B4B; }
.sl-mode { display: block; cursor: pointer; }
.sl-mode-card { display: block; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px #E2E8F0; background: #fff; transition: box-shadow .15s, background .15s; }
.sl-mode-card b { display: block; font-size: 14px; } .sl-mode-card small { display: block; margin-top: 2px; font-size: 11px; color: #64748B; line-height: 1.35; }
.sl-mode .peer:checked + .sl-mode-card { box-shadow: inset 0 0 0 2px #6366F1; background: #EEF2FF; }
.dark .sl-mode-card { background: #1E293B; box-shadow: inset 0 0 0 1px #334155; } .dark .sl-mode .peer:checked + .sl-mode-card { background: #312E81; }

/* ── 2-bosqich: galereya (kartalar, qulf, autocomplete, panel) ───────── */
.sl-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 14px 40px rgba(15, 23, 42, .18), 0 0 0 1px #E2E8F0; }
.dark .sl-suggest { background: #0F172A; box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 1px #334155; }
.sl-suggest-head { margin: 4px 10px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6366F1; }
.sl-suggest-item { display: block; padding: 8px 10px; border-radius: 10px; font-size: 14px; color: inherit; }
.sl-suggest-item small { display: block; font-size: 11px; color: #64748B; }
.sl-suggest-item:hover { background: #EEF2FF; } .dark .sl-suggest-item:hover { background: #312E81; }
.sl-gcard { display: block; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 0 0 1px #E2E8F0; overflow: hidden; transition: transform .15s, box-shadow .15s; color: inherit; }
.sl-gcard:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(15, 23, 42, .12), 0 0 0 1px #C7D2FE; }
.dark .sl-gcard { background: #1E293B; box-shadow: 0 0 0 1px #334155; }
.sl-gcard .sl-frame { border-radius: 0; box-shadow: none; }
.sl-gcard-body { padding: 10px 12px 12px; }
.sl-gcard-title { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl-gcard-meta { margin-top: 4px; font-size: 11px; color: #64748B; display: flex; flex-wrap: wrap; gap: 6px; }
.sl-gcard-price { margin-left: auto; font-weight: 600; color: #4F46E5; }
.sl-locked { position: relative; }
.sl-locked .sl-frame { filter: blur(6px); pointer-events: none; user-select: none; }
.sl-locked-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; background: rgba(15, 23, 42, .35); color: #fff; text-align: center; padding: 12px; }
.sl-react { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #F1F5F9; font-size: 13px; font-weight: 500; }
.sl-react.is-on { background: #FCE7F3; color: #BE185D; } .sl-react.is-on.save { background: #DBEAFE; color: #1D4ED8; }
.dark .sl-react { background: #1E293B; } .dark .sl-react.is-on { background: #831843; color: #FBCFE8; } .dark .sl-react.is-on.save { background: #1E3A8A; color: #BFDBFE; }
.sl-grade-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #F1F5F9; font-size: 12px; font-weight: 500; }
.sl-grade-chip.is-active { background: #4F46E5; color: #fff; }
.dark .sl-grade-chip { background: #1E293B; }
.sl-locked .sl-ph { filter: none; }
.sl-ph { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; background: var(--sl-bg, #F8FAFC); color: var(--sl-fg, #0F172A); padding: 7% 8%; overflow: hidden; box-shadow: 0 0 0 1px rgba(15, 23, 42, .06); }
.sl-ph-num { position: absolute; right: 6%; top: 6%; font-size: 11px; font-weight: 600; opacity: .5; }
.sl-ph-title { margin: 0 0 8%; font-family: Sora, Inter, system-ui, sans-serif; font-weight: 700; font-size: clamp(11px, 2.6cqw, 18px); line-height: 1.2; }
.sl-ph i { display: block; height: 7%; width: 80%; margin: 0 0 5%; border-radius: 999px; background: var(--sl-muted, #94A3B8); opacity: .3; }
.sl-locked .sl-ph { filter: blur(2px); }
