:root {
  --lazuli: #1E3A9E;
  --lazuli-deep: #132A73;
  --firuza: #0E9EA3;
  --anor: #C42D4A;
  --saffron: #E3A13B;
  --bg: #F2F5FB;
  --surface: #FFFFFF;
  --surface-2: #E8EEF9;
  --ink: #15203B;
  --muted: #5F6B86;
  --line: #DCE3EF;
  --on-brand: #FFFFFF;
  --radius-tile: 20px;
  --radius-field: 12px;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --tabs-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
/* Asosiy mavzu — yorug'. Qorong'i mavzu foydalanuvchi tanlasa yoqiladi. */
:root[data-theme="dark"] {
  --bg: #0C1330; --surface: #162050; --surface-2: #1D2A62; --ink: #EDF1FB;
  --muted: #9AA6C6; --line: #27357094; --lazuli: #4A68D8; --firuza: #2BC0C4;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 500 15px/1.5 var(--body);
  min-height: 100vh;
  padding-bottom: calc(var(--tabs-h) + var(--safe-b) + 12px);
  overflow-x: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--firuza); outline-offset: 2px; }
[hidden] { display: none !important; }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

#demo-bar { background: var(--saffron); color: #2B1A00; font-size: 12px; padding: 6px 16px; text-align: center; }

/* ===== Brend sarlavhasi: yagona "baland ovozli" element ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--lazuli-deep); color: var(--on-brand);
  padding: 22px 16px 20px; border-radius: 0 0 28px 28px;
}
.hero svg.pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: #ffffff; opacity: .13; pointer-events: none; }
.hero > * { position: relative; }
.wordmark { font: 700 22px/1 var(--display); letter-spacing: .01em; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.wordmark .star { width: 26px; height: 26px; color: var(--saffron); }
.hero h1 { font: 600 20px/1.25 var(--display); margin: 0 0 4px; }
.hero p { margin: 0; opacity: .82; font-size: 14px; }
.rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.rate { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 9px 10px; }
.rate b { display: block; font: 600 15px/1.2 var(--display); }
.rate span { font-size: 11.5px; opacity: .78; }
.rates-time { font-size: 11px; opacity: .6; margin-top: 8px; }

/* ===== Umumiy ===== */
.page { padding: 16px; max-width: 640px; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.page-head h2 { font: 600 19px/1.25 var(--display); margin: 0; flex: 1; }
h3.section { font: 600 15px/1.3 var(--display); margin: 22px 2px 10px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.stack > * + * { margin-top: 12px; }

/* Ikamet holati */
.status-strip {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 0;
  background: var(--surface); border-radius: 16px; padding: 12px 14px;
  border-left: 4px solid var(--firuza);
}
.status-strip.warn { border-left-color: var(--anor); }
.status-strip b { font-family: var(--display); font-weight: 600; }

/* AI kartasi (keng) */
.ask {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  margin-top: 16px; padding: 16px; border: 0; border-radius: var(--radius-tile);
  background: var(--firuza); color: #fff;
}
.ask .bubble { width: 44px; height: 44px; border-radius: 14px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.ask strong { display: block; font: 600 16px/1.25 var(--display); }
.ask span { font-size: 13px; opacity: .9; }

/* Xizmatlar */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 14px; min-height: 108px; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-tile);
}
.tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--lazuli); }
.tile strong { font-weight: 700; font-size: 15px; line-height: 1.2; }
.tile span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.tile:active, .ask:active, .btn:active, .card:active { transform: scale(.985); }

.premium-band {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 14px;
  border: 1px solid color-mix(in srgb, var(--saffron) 55%, transparent);
  background: color-mix(in srgb, var(--saffron) 14%, var(--surface)); border-radius: var(--radius-tile); text-align: left;
}
.premium-band .ic { color: var(--saffron); }
.soon { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); white-space: nowrap;
}
.chip.on { background: var(--lazuli); border-color: var(--lazuli); color: #fff; }
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips-scroll::-webkit-scrollbar { display: none; }

/* E'lonlar */
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 12px; margin-bottom: 10px; }
.search input { border: 0; background: transparent; outline: none; padding: 12px 0; flex: 1; min-width: 0; }
.card {
  display: block; width: 100%; text-align: left; padding: 14px; margin-top: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
}
.card.top { border-color: color-mix(in srgb, var(--saffron) 70%, transparent); }
.card h4 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .row { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.price { color: var(--lazuli); font-weight: 700; font-size: 14px; }
.badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--saffron); color: #2B1A00; }
.badge.grey { background: var(--surface-2); color: var(--muted); }
.route { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.route .line { flex: 1; height: 0; border-top: 2px dashed var(--line); min-width: 18px; }

.detail { background: var(--surface); border-radius: var(--radius-tile); padding: 18px; border: 1px solid var(--line); }
.detail h2 { font: 600 19px/1.3 var(--display); margin: 0 0 8px; }
.detail .body { white-space: pre-wrap; word-wrap: break-word; margin: 14px 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }

.fab {
  position: fixed; right: 16px; bottom: calc(var(--tabs-h) + var(--safe-b) + 14px); z-index: 5;
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 18px; border: 0; border-radius: 999px;
  background: var(--lazuli); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(19, 42, 115, .35);
}

/* Formalar */
.field { display: block; }
.field label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 6px 2px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px; border-radius: var(--radius-field);
  border: 1px solid var(--line); background: var(--surface); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--firuza); }
.field textarea { min-height: 110px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); margin: 5px 2px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-field); }
.switch input { width: 22px; height: 22px; accent-color: var(--firuza); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px 16px; border: 0; border-radius: 14px; background: var(--lazuli); color: #fff; font-weight: 700;
}
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--anor); border: 1px solid color-mix(in srgb, var(--anor) 40%, transparent); }
.btn.gold { background: var(--saffron); color: #2B1A00; }
.btn[disabled] { opacity: .55; }
.note { font-size: 13px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); color: var(--muted); }

/* Ikamet */
.countdown { display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: var(--radius-tile); padding: 16px; border: 1px solid var(--line); }
.ring { width: 84px; height: 84px; flex: none; }
.ring circle { fill: none; stroke-width: 8; }
.ring .bg { stroke: var(--surface-2); }
.ring .fg { stroke: var(--firuza); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .8s ease; }
.ring.warn .fg { stroke: var(--anor); }
.ring text { font: 700 20px var(--display); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: c; }
.checklist li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--firuza); flex: none; margin-top: 2px; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 76px; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.msg.user { align-self: flex-end; background: var(--lazuli); color: #fff; border-bottom-right-radius: 5px; }
.msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.typing { color: var(--muted); }
.suggests { display: flex; flex-direction: column; gap: 8px; }
.suggests button { text-align: left; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.composer {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabs-h) + var(--safe-b)); z-index: 6;
  display: flex; gap: 8px; padding: 10px 12px; background: var(--bg); border-top: 1px solid var(--line);
}
.composer { flex-wrap: wrap; align-items: flex-end; }
.composer .attach { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--lazuli); display: grid; place-items: center; flex: none; }
.file-chip { flex-basis: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); font-size: 13.5px; }
.file-chip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer .file-chip button { border: 0; background: transparent; font-size: 20px; line-height: 1; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); display: grid; place-items: center; }
.composer textarea { flex: 1; resize: none; max-height: 120px; min-height: 44px; padding: 11px 13px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); outline: none; }
.composer button { width: 46px; height: 46px; border: 0; border-radius: 14px; background: var(--firuza); color: #fff; display: grid; place-items: center; flex: none; }
.empty { text-align: center; color: var(--muted); padding: 30px 12px; }

/* Hujjat */
.drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; border-radius: var(--radius-tile); border: 2px dashed var(--line); background: var(--surface); text-align: center; }
.drop .ic { width: 56px; height: 56px; border-radius: 18px; background: var(--surface-2); color: var(--lazuli); display: grid; place-items: center; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }

/* Premium */
.plan { background: var(--lazuli-deep); color: #fff; border-radius: 24px; padding: 20px; position: relative; overflow: hidden; }
.plan svg.pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: #fff; opacity: .1; }
.plan > * { position: relative; }
.plan h2 { font: 700 24px/1.2 var(--display); margin: 0 0 6px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 18px; }
.plan li { display: flex; gap: 10px; padding: 6px 0; }
.plan li svg { color: var(--saffron); }

/* Pastki menyu */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
#tabs button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); }
#tabs button.on { color: var(--lazuli); }

#toast {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabs-h) + var(--safe-b) + 80px); z-index: 20;
  background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-size: 14px; max-width: calc(100% - 32px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.skeleton { height: 86px; border-radius: 16px; background: var(--surface-2); margin-top: 10px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* Bitta orkestrlangan lahza: bosh sahifa ochilishida xizmatlar ketma-ket paydo bo'ladi */
.grid.enter .tile { animation: rise .42s cubic-bezier(.2,.7,.2,1) both; }
.grid.enter .tile:nth-child(2) { animation-delay: .05s; }
.grid.enter .tile:nth-child(3) { animation-delay: .1s; }
.grid.enter .tile:nth-child(4) { animation-delay: .15s; }
.grid.enter .tile:nth-child(5) { animation-delay: .2s; }
.grid.enter .tile:nth-child(6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
/* ===== Rasmlar ===== */
.card.has-photo { display: flex; gap: 12px; align-items: stretch; }
.card .thumb { width: 92px; min-height: 92px; flex: none; border-radius: 12px; background: var(--surface-2) center/cover no-repeat; position: relative; }
.card .thumb .count { position: absolute; right: 5px; bottom: 5px; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.card .content { flex: 1; min-width: 0; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: -4px -4px 14px; padding: 4px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: none; width: 100%; max-height: 340px; object-fit: cover; border-radius: 14px; scroll-snap-align: center; background: var(--surface-2); cursor: zoom-in; }
.gallery.multi img { width: 86%; }
.photo-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.photo-picker .ph { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--surface-2) center/cover no-repeat; }
.photo-picker .ph button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 15px; line-height: 1; }
.photo-picker .add { aspect-ratio: 1; border-radius: 12px; border: 2px dashed var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--lazuli); font-size: 11.5px; font-weight: 600; }
.viewer { position: fixed; inset: 0; z-index: 40; background: rgba(5,10,30,.92); display: grid; place-items: center; padding: 16px; }
.viewer img { max-width: 100%; max-height: 100%; border-radius: 10px; }

/* ===== Pastdan chiqadigan oyna (to'lov) ===== */
.backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(8,14,40,.45); display: flex; align-items: flex-end; justify-content: center; animation: fade .18s ease both; }
.sheet { width: 100%; max-width: 680px; max-height: 88vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 10px 16px calc(20px + var(--safe-b)); animation: up .24s cubic-bezier(.2,.8,.2,1) both; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
.sheet h3 { font: 600 17px/1.3 var(--display); margin: 0 0 12px; }
.method { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; margin-top: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.method .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--lazuli); }
.method.stars .ic { color: var(--saffron); }
.method b { display: block; }
.method .p { margin-left: auto; font: 600 15px var(--display); white-space: nowrap; }
.instr { white-space: pre-wrap; word-wrap: break-word; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; font-size: 14.5px; user-select: text; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ===== Kirish (sayt rejimi) ===== */
.login { text-align: center; padding: 26px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-tile); }
.login .ic { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--lazuli); }
.login h3 { font: 600 18px var(--display); margin: 0 0 6px; }
.login .widget { min-height: 48px; margin: 16px 0 10px; display: flex; justify-content: center; }
.back { border: 0; background: var(--surface); width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--surface-2); padding: 4px; border-radius: 14px; }
.seg button { border: 0; background: transparent; padding: 10px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20,32,59,.12); }

/* ===== v2: ishonch, saqlash, hujjatlar ===== */
.vbadge { display: inline-flex; color: var(--firuza); }
.vbadge svg.i { width: 17px; height: 17px; }
.vline { display: flex; align-items: center; gap: 8px; color: var(--firuza); font-weight: 700; font-size: 14px; margin: 12px 0 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); display: grid; place-items: center; }
.icon-btn.on { color: var(--anor); border-color: color-mix(in srgb, var(--anor) 40%, transparent); }
.icon-btn.on svg { fill: currentColor; }
.rate-box { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.stars { color: var(--line); letter-spacing: 1px; }
.stars .on { color: var(--saffron); }
.rate-pick { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.rate-pick span { flex-basis: 100%; }
.rate-pick button { border: 0; background: transparent; font-size: 26px; line-height: 1; padding: 4px 3px; color: var(--line); min-width: 36px; min-height: 40px; }
.rate-pick button.on { color: var(--saffron); }
.seg.seg3 { grid-template-columns: 1fr 1fr 1fr; }
.seg.seg3 button { padding: 9px 6px; font-size: 13.5px; }
.method span.muted { display: block; margin-top: 2px; font-weight: 500; }
.doc-edit { font-family: ui-serif, Georgia, "Times New Roman", serif; font-size: 14.5px; line-height: 1.6; min-height: 380px; }
.card.news p { -webkit-line-clamp: 3; }
a.chip { text-decoration: none; }

/* ===== Admin ===== */
.adm-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.stat b { display: block; font: 600 22px/1.2 var(--display); }
.stat span { font-size: 12.5px; color: var(--muted); }
.stat.alert { border-color: color-mix(in srgb, var(--anor) 50%, transparent); }
.stat.alert b { color: var(--anor); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 90px; padding: 12px 14px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.bars div { flex: 1; background: var(--lazuli); border-radius: 4px 4px 0 0; min-height: 2px; opacity: .85; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.row-actions button { border: 1px solid var(--line); background: var(--bg); padding: 7px 11px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.row-actions button.ok { background: var(--firuza); border-color: var(--firuza); color: #fff; }
.row-actions button.bad { color: var(--anor); border-color: color-mix(in srgb, var(--anor) 40%, transparent); }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; }
.logbox { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; max-height: 360px; overflow: auto; }
.logbox div { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.group { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; margin-top: 12px; }
.group > h4 { margin: 0 0 10px; font: 600 15px var(--display); }
.group .field + .field, .group .field + .switch, .group .switch + .field, .group .switch + .switch { margin-top: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; background: var(--bg); }
.checks input { accent-color: var(--firuza); }
.save-bar { position: sticky; bottom: calc(var(--tabs-h) + var(--safe-b) + 8px); margin-top: 14px; z-index: 4; }

/* ===== Katta ekran (sayt sifatida) ===== */
@media (min-width: 720px) {
  #view, #demo-bar { max-width: 680px; margin-left: auto; margin-right: auto; }
  #tabs, .composer { max-width: 680px; margin: 0 auto; }
  .hero { border-radius: 0 0 32px 32px; }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .adm-stats { grid-template-columns: repeat(4, 1fr); }
  .fab { right: calc(50% - 340px + 16px); }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
