/* PostBot Mini App — dizayn tizimi. Yorug' va qorong'i mavzu (Telegram mavzusiga moslashadi). */
[hidden] { display: none !important; }
:root {
  --accent: #00A389; --accent-2: #00866F; --accent-soft: rgba(0, 163, 137, .12); --on-accent: #fff;
  --bg: #F2F4F7; --surface: #FFFFFF; --surface-2: #F6F7F9; --line: rgba(15, 23, 42, .07);
  --text: #0F172A; --muted: #64748B; --faint: #94A3B8;
  --danger: #E5484D; --warn: #B7791F; --warn-bg: #FFF6E0; --pos: #16A34A; --neg: #E5484D;
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .04);
  --shadow-up: 0 -6px 24px rgba(15, 23, 42, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", sans-serif;
}
html.dark {
  --accent: #19B89E; --accent-2: #12A08A; --accent-soft: rgba(25, 184, 158, .16);
  --bg: #101418; --surface: #1A2027; --surface-2: #222A33; --line: rgba(255, 255, 255, .07);
  --text: #EDF2F7; --muted: #93A1B2; --faint: #66758A;
  --warn: #F2C063; --warn-bg: rgba(242, 192, 99, .12);
  --shadow: none; --shadow-up: 0 -1px 0 var(--line);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
main { max-width: 620px; margin: 0 auto; padding: 8px 16px calc(96px + env(safe-area-inset-bottom)); }
body.sub main { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }

/* ---------- ikonka ---------- */
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tile-ic { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.tile-ic .ic { width: 20px; height: 20px; }
.tile-ic.emoji { background: var(--surface-2); font-size: 18px; }
.chev { width: 18px; height: 18px; color: var(--faint); }

/* ---------- sarlavha ---------- */
.top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 10px 2px 14px; }
.top-title { min-width: 0; }
.top-title small { display: block; color: var(--accent); font-weight: 700; font-size: 12px; letter-spacing: .4px; text-transform: uppercase; }
.top h1 { margin: 0; font-size: 26px; line-height: 1.15; font-weight: 750; letter-spacing: -.3px; }
.top h1.clamp { font-size: 22px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top-act { display: flex; gap: 8px; align-items: center; flex: none; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow); flex: none; }
.icon-btn.sm { width: 34px; height: 34px; box-shadow: none; background: var(--surface-2); }
.icon-btn.sm .ic { width: 18px; height: 18px; }
.icon-btn.danger { color: var(--danger); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); border: 2px solid var(--surface); }
.me { width: 40px; height: 40px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--accent), #0B6E5F); color: #fff; font-weight: 700; font-size: 16px; }

/* ---------- bo'lim, guruh, qator ---------- */
.sec { display: flex; justify-content: space-between; align-items: center; margin: 22px 4px 8px; color: var(--muted);
  font-size: 13px; font-weight: 650; letter-spacing: .3px; text-transform: uppercase; }
.card { background: var(--surface); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.group { background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; box-shadow: var(--shadow); }
.row-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; cursor: pointer; position: relative; }
.row-item.static { cursor: default; }
.row-item:not(:last-child)::after { content: ""; position: absolute; left: 62px; right: 0; bottom: 0; height: 1px; background: var(--line); }
.row-item:active:not(.static) { background: var(--surface-2); }
.row-body { flex: 1; min-width: 0; }
.row-title { font-weight: 560; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.row-sub { color: var(--muted); font-size: 13px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.val { font-weight: 700; white-space: nowrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; background: var(--accent); color: var(--on-accent); border-radius: 999px;
  padding: 3px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.gold { background: rgba(245, 158, 11, .15); color: #B45309; }
html.dark .badge.gold { color: #F6C25B; }
.badge .ic { width: 14px; height: 14px; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 2px 0; }
.hint.center { text-align: center; margin: 14px 8px; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-soft); color: var(--text); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 12px; font-size: 14px; }
.notice .ic { color: var(--accent); width: 20px; height: 20px; margin-top: 1px; }
.notice.warn { background: var(--warn-bg); } .notice.warn .ic { color: var(--warn); }
.notice.small { font-size: 13px; padding: 10px 12px; margin: 6px 0 0; }

/* ---------- tugmalar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px;
  padding: 14px 16px; font-weight: 650; font-size: 15px; background: var(--accent); color: var(--on-accent); transition: transform .08s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn .ic { width: 20px; height: 20px; }
.btn.ghost { background: var(--accent-soft); color: var(--accent); }
.btn.danger { background: rgba(229, 72, 77, .1); color: var(--danger); }
.btn.small { width: auto; padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.btn.small .ic { width: 18px; height: 18px; }
.btn:disabled { opacity: .5; }

/* ---------- bosh sahifa ---------- */
.hero { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; color: #fff; padding: 18px;
  border-radius: 22px; background: linear-gradient(135deg, #00A389 0%, #0A8C76 55%, #0B6E5F 100%);
  box-shadow: 0 10px 24px rgba(0, 163, 137, .28); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -40px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero-ic { width: 48px; height: 48px; border-radius: 15px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; flex: none; }
.hero-ic .ic { width: 24px; height: 24px; }
.hero-text { flex: 1; min-width: 0; }
.hero-text b { display: block; font-size: 18px; }
.hero-text small { display: block; font-size: 13px; opacity: .85; margin-top: 2px; }
.hero .chev { color: rgba(255,255,255,.8); }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.quick-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; border: 0; text-align: left; padding: 14px;
  border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.quick-item .tile-ic { margin-bottom: 8px; }
.quick-item b { font-size: 15px; } .quick-item small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.quick-item:active, .stat.tap:active, .hero:active { transform: scale(.98); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border: 0; text-align: left; background: var(--surface);
  border-radius: 16px; padding: 12px; box-shadow: var(--shadow); color: var(--text); }
.stat .ic { width: 18px; height: 18px; color: var(--accent); margin-bottom: 6px; }
.stat b { font-size: 20px; font-weight: 750; letter-spacing: -.3px; }
.stat span { font-size: 12px; color: var(--muted); line-height: 1.25; }
.stats.three .stat { align-items: center; text-align: center; }

/* ---------- segment, chip, switch ---------- */
.seg { display: flex; gap: 4px; background: var(--surface); border-radius: 14px; padding: 4px; margin-bottom: 12px; box-shadow: var(--shadow); }
.seg button { flex: 1; border: 0; background: none; padding: 9px 4px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.seg button i { font-style: normal; opacity: .7; margin-left: 2px; }
.seg button.on { background: var(--accent); color: var(--on-accent); }
.seg button.on i { opacity: .9; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--line); background: var(--surface-2); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; border: 0; background: #CBD2DB; flex: none; transition: background .2s; padding: 0; }
html.dark .switch { background: #3A4552; }
.switch i { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .2s; }
.switch.on { background: var(--accent); }
.switch.on i { left: 23px; }
.check { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--faint); flex: none; margin: 0;
  display: grid; place-content: center; transition: background .15s, border-color .15s; }
.check:checked { background: var(--accent); border-color: var(--accent); }
.check:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* ---------- kanal tanlagich, avatar ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft) center / cover no-repeat; color: var(--accent); font-weight: 700; font-size: 16px; }
.avatar.big { width: 76px; height: 76px; font-size: 30px; }
.switcher { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 4px; scrollbar-width: none; }
.switcher::-webkit-scrollbar { display: none; }
.switcher button { display: flex; align-items: center; gap: 8px; border: 1.5px solid transparent; background: var(--surface); border-radius: 999px;
  padding: 5px 12px 5px 5px; flex: none; max-width: 230px; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; }
.switcher button > span:not(.avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.switcher button .avatar { width: 30px; height: 30px; font-size: 13px; }
.switcher button i { font-style: normal; background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 12px; }
.switcher button.on { border-color: var(--accent); color: var(--accent); }

/* ---------- zayavkalar ---------- */
.pending-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pending-card small, .growth-top small, .plan-card small { display: block; color: var(--muted); font-size: 13px; }
.pending-card b { font-size: 30px; font-weight: 800; letter-spacing: -.5px; }
.pending-card .btn { width: auto; }
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mode { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--line);
  background: var(--surface-2); font-size: 13px; font-weight: 600; text-align: center; color: var(--muted); }
.mode .ic { width: 22px; height: 22px; }
.mode.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.mode + .hint, .modes + .hint { margin-top: 12px; }
.growth-top { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.growth-top b { font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.net { text-align: right; } .net.pos b { color: var(--pos); } .net.neg b { color: var(--neg); }
.chart { width: 100%; height: 150px; display: block; }
.chart .bar-up { fill: var(--accent); } .chart .bar-down { fill: var(--neg); opacity: .75; } .chart .axis { stroke: var(--line); stroke-width: 1; }
.legend { display: flex; gap: 16px; justify-content: center; color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.legend i.pub { background: var(--accent); } .legend i.sch { background: #F59E0B; } .legend i.neg { background: var(--neg); }
.table .tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.table .tr:last-child { border-bottom: 0; }
.table .tr b { text-align: right; font-weight: 650; }
.table .th { color: var(--muted); font-size: 12.5px; font-weight: 600; } .table .th span:not(:first-child) { text-align: right; }
.table .total b, .table .total span { font-weight: 800; }
b.pos { color: var(--pos); } b.neg { color: var(--neg); }

/* ---------- havolalar ---------- */
.link-head { display: flex; align-items: center; gap: 10px; }
.link-head b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.link-url { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 12px 0; padding: 10px 12px;
  border: 0; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; text-align: left; }
.link-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-url .ic { width: 18px; height: 18px; color: var(--accent); }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.mini-stats b { display: block; font-size: 18px; font-weight: 750; }
.mini-stats small { color: var(--muted); font-size: 11.5px; }
.progress { display: block; height: 7px; border-radius: 99px; background: var(--accent-soft); overflow: hidden; margin-top: 12px; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.row-sub .progress { margin-top: 6px; max-width: 160px; }
.cost-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.cost-row span { display: inline-flex; align-items: center; gap: 6px; } .cost-row b { color: var(--text); }
.cost-row .ic { width: 18px; height: 18px; color: #F59E0B; }

/* ---------- kalendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-size: 16px; }
.cal-head .icon-btn { width: 36px; height: 36px; box-shadow: none; background: var(--surface-2); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .wd { color: var(--faint); font-size: 12px; font-weight: 600; padding: 4px 0; }
.day { position: relative; border: 0; background: none; border-radius: 12px; height: 44px; font-size: 15px; font-weight: 550; color: var(--text); }
.day.has { background: var(--surface-2); }
.day.today { background: var(--accent); color: #fff; }
.dots { position: absolute; left: 0; right: 0; bottom: 5px; display: flex; gap: 3px; justify-content: center; }
.dots i { width: 5px; height: 5px; border-radius: 50%; }
.dots i.pub { background: var(--accent); } .dots i.sch { background: #F59E0B; }
.day.today .dots i { background: #fff; }

/* ---------- profil, oyna boshi ---------- */
.profile-head { text-align: center; padding: 6px 0 14px; }
.profile-head .avatar { margin: 0 auto 10px; display: flex; }
.profile-head h2 { margin: 0; font-size: 21px; }
.profile-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.me-av { background: linear-gradient(135deg, var(--accent), #0B6E5F); color: #fff; }
.plan-card { display: flex; align-items: center; justify-content: space-between; }
.plan-card b { font-size: 20px; }
.invite-card p { margin: 0; color: var(--muted); font-size: 14px; }
.invite-count { display: flex; align-items: center; gap: 10px; margin: 2px 0 14px; }

/* ---------- yo'naltirish ---------- */
.fw-src { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.fw-src small { display: block; color: var(--muted); font-size: 12px; } .fw-src b { font-size: 16px; }
.fw-card .seg { box-shadow: none; background: var(--surface-2); }
.fw-dst { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.fw-dst > span:not(.avatar) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.fw-dst .arrow { color: var(--faint); width: 18px; height: 18px; }
.fw-dst .avatar { width: 32px; height: 32px; font-size: 13px; }

/* ---------- bo'sh holat, skelet ---------- */
.empty { text-align: center; padding: 36px 20px; background: var(--surface); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.empty .tile-ic { width: 56px; height: 56px; border-radius: 18px; }
.empty .tile-ic .ic { width: 28px; height: 28px; }
.empty p { color: var(--muted); margin: 12px 0 16px; }
.empty .btn { width: auto; }
.sk { margin: 0; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
  background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- pastki menyu ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: flex-end; background: var(--surface);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-up); }
.tabbar button { flex: 1; border: 0; background: none; color: var(--faint); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; }
.tabbar button span { display: flex; } .tabbar button .ic { width: 24px; height: 24px; }
.tabbar button b { font-size: 11px; font-weight: 600; }
.tabbar button.on { color: var(--accent); }
.tabbar .write span { width: 52px; height: 52px; margin-top: -26px; border-radius: 18px; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #00A389, #0B6E5F); box-shadow: 0 8px 18px rgba(0, 163, 137, .35); border: 4px solid var(--surface); }
.tabbar .write b { color: var(--accent); }
body.sub .tabbar { display: none; }

/* ---------- pastdan chiqadigan oyna ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; background: rgba(8, 12, 18, 0); display: flex; align-items: flex-end; transition: background .18s; }
.sheet.open { background: rgba(8, 12, 18, .45); }
.sheet-body { width: 100%; max-width: 620px; margin: 0 auto; max-height: 88vh; overflow: auto; background: var(--bg); border-radius: 24px 24px 0 0;
  padding: 6px 16px calc(20px + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .2s ease-out; }
.sheet.open .sheet-body { transform: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 99px; background: var(--faint); opacity: .4; margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; margin-bottom: 8px; }
.sheet-head b { font-size: 18px; }
.sheet-head .icon-btn { width: 34px; height: 34px; box-shadow: none; background: var(--surface-2); }
.sheet-head .icon-btn .ic { width: 18px; height: 18px; }
.sheet-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.sheet-actions.row3 { flex-direction: row; gap: 10px; margin: 0 0 6px; }
.act { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: var(--surface); border-radius: 16px; padding: 12px 6px;
  font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow); }
.quote-card { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; white-space: pre-wrap; word-break: break-word; box-shadow: var(--shadow); }
.toast { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); transform: translate(-50%, 10px); opacity: 0; z-index: 30;
  background: rgba(15, 23, 42, .92); color: #fff; padding: 11px 18px; border-radius: 14px; font-size: 14px; max-width: 88%; text-align: center;
  transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- muharrir ---------- */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; margin-bottom: 12px; border-radius: var(--radius);
  border: 2px dashed color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--accent); cursor: pointer; text-align: center; }
.drop .ic { width: 30px; height: 30px; } .drop span { font-weight: 650; } .drop small { color: var(--muted); font-size: 12px; }
.media-box { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; background: var(--surface); box-shadow: var(--shadow); }
.media-box img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.media-ph { display: flex; align-items: center; gap: 10px; padding: 18px; color: var(--muted); font-weight: 600; }
.media-ph .ic { color: var(--accent); }
.media-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .55); color: #fff;
  display: flex; align-items: center; justify-content: center; }
.media-x .ic { width: 18px; height: 18px; }
.editor-card { padding: 10px; }
.toolbar { display: flex; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.toolbar button { flex: 1; min-width: 0; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: 16px;
  display: flex; align-items: center; justify-content: center; padding: 0; }
.toolbar button:active { background: var(--accent-soft); color: var(--accent); }
.toolbar .ic { width: 19px; height: 19px; }
.linkbar { display: flex; gap: 8px; margin-bottom: 8px; } .linkbar .inp { margin: 0; }
.editable { min-height: 170px; padding: 8px 6px; outline: none; white-space: pre-wrap; word-break: break-word; font-size: 16px; line-height: 1.5; }
.editable:empty::before { content: attr(data-ph); color: var(--faint); }
.editable a, .pv-text a { color: #2A7BD8; }
.editable code, .pv-text code { background: var(--surface-2); border-radius: 5px; padding: 1px 4px; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }
.tg-spoiler, .pv-text tg-spoiler { background: color-mix(in srgb, var(--text) 18%, transparent); border-radius: 4px; }
.pv-text tg-spoiler { color: transparent; }
/* Iqtibos — Telegram'dagidek: rangli fon, chap chiziq, burchakda ❞ */
.editable blockquote, .pv-text blockquote { position: relative; margin: 6px 0; padding: 7px 34px 7px 12px; border-left: 3px solid var(--accent);
  border-radius: 4px 10px 10px 4px; background: var(--accent-soft); }
.editable blockquote::after, .pv-text blockquote::after { content: "❞"; position: absolute; top: 4px; right: 10px; color: var(--accent); font-size: 18px; line-height: 1; }
.editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 6px 2px; }
.editor-foot .hint { margin: 0; font-size: 12px; }
#ed-count { color: var(--faint); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
#ed-count.over { color: var(--danger); font-weight: 700; }
.inp { width: 100%; border: 1.5px solid transparent; border-radius: 12px; background: var(--surface-2); padding: 11px 12px; margin-top: 8px; outline: none; font-size: 15px; resize: vertical; }
.inp:focus { border-color: var(--accent); background: var(--surface); }
.field-label { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin: 14px 2px 0; }
.field-label.inline { margin: 0 6px 0 0; }
.btn-card-head { display: flex; align-items: center; gap: 10px; }
.btn-card-head b { font-size: 15px; } .spacer { flex: 1; }
.dots-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.dot-pick { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--surface); background: var(--c); box-shadow: 0 0 0 1.5px var(--line);
  display: flex; align-items: center; justify-content: center; color: #fff; padding: 0; }
.dot-pick .ic { width: 16px; height: 16px; stroke-width: 3; opacity: 0; }
.dot-pick.on { box-shadow: 0 0 0 2.5px var(--c); } .dot-pick.on .ic { opacity: 1; }
.pick-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; }
.pick-row > span:not(.avatar):not(.tile-ic) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 560; }
.pick-row .avatar { width: 32px; height: 32px; font-size: 13px; }
.group .pick-row { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.group .pick-row:last-child { border-bottom: 0; }
.pick-row.big .avatar { width: 40px; height: 40px; }
.inline-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.add-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 8px; border-radius: 14px; border: 1.5px dashed var(--faint);
  background: none; color: var(--text); font-weight: 600; font-size: 14px; }
.add-btn .ic { width: 19px; height: 19px; color: var(--accent); }
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: flex; gap: 8px; align-items: center; max-width: 620px; margin: 0 auto;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: var(--shadow-up); }
.bottom-bar .btn { flex: 1; padding: 13px 10px; white-space: nowrap; }
.bottom-bar .icon-btn { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); box-shadow: none; }
body.typing .bottom-bar { display: none; }

/* ---------- ko'rinish (Telegram xabari) ---------- */
.pv-chat { background: #C9D9B9; border-radius: 18px; padding: 14px 12px; background-image: radial-gradient(rgba(255,255,255,.25) 1px, transparent 1px); background-size: 14px 14px; }
html.dark .pv-chat { background-color: #0E1621; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); }
.pv-bubble { background: #fff; color: #111; border-radius: 16px 16px 16px 6px; overflow: hidden; margin-bottom: 4px; }
html.dark .pv-bubble { background: #182533; color: #F1F5F9; }
.pv-bubble img { display: block; width: 100%; max-height: 280px; object-fit: cover; }
.pv-media { display: flex; justify-content: center; padding: 26px; background: rgba(0, 0, 0, .05); color: #6B7280; }
.pv-media .ic { width: 36px; height: 36px; }
.pv-text { padding: 9px 12px; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.45; }
.pv-text blockquote { background: rgba(0, 163, 137, .1); }
.pv-row { display: flex; gap: 4px; margin-top: 4px; }
.pv-btn { flex: 1; text-align: center; color: #fff; border-radius: 12px; padding: 10px 6px; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#ed-pub-top, #ed-save-top { background: var(--accent); color: var(--on-accent); }
.avatar { flex: 0 0 auto; }
.pending-card { flex-wrap: wrap; }
.pending-card .btn { width: auto; flex: 0 0 auto; padding: 12px 16px; }
@media (max-width: 380px) { .pending-card .btn { width: 100%; flex: 1 1 100%; } }
html.dark .switch.on { background: var(--accent); }
.icon-btn.ok { color: #fff; background: var(--accent); }
.pending-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.pending-card .btn { width: auto; }
.pending-card .btn.ghost { grid-column: 1 / -1; width: 100%; }
@media (max-width: 380px) { .pending-card .btn:not(.ghost) { grid-column: 1 / -1; width: 100%; } }
.cost-row .btn.small { margin-left: auto; padding: 7px 12px; }
/* Bosh sahifa sarlavhasi: chapda profil rasmi va ism, o'ngda qo'ng'iroqcha */
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 2px 16px; }
.me-row { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; border: 0; background: none; padding: 0; text-align: left; color: var(--text); }
.me-row .avatar { width: 48px; height: 48px; font-size: 19px; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--accent-soft); }
.me-av { background-color: var(--accent); color: #fff; background-image: linear-gradient(135deg, var(--accent), #0B6E5F); background-size: cover; background-position: center; }
.me-text { min-width: 0; display: flex; flex-direction: column; }
.me-text small { color: var(--muted); font-size: 13px; }
.me-text b { font-size: 19px; font-weight: 750; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-top .icon-btn { width: 44px; height: 44px; }
/* Tanishtiruv sahifasi */
.landing { text-align: center; padding: 36px 4px 10px; max-width: 520px; margin: 0 auto; }
.land-logo { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, #00A389, #0B6E5F); box-shadow: 0 12px 28px rgba(0, 163, 137, .35); }
.land-logo .ic { width: 38px; height: 38px; }
.landing h1 { margin: 0; font-size: 32px; letter-spacing: -.5px; }
.land-sub { color: var(--muted); margin: 8px 0 22px; } .land-sub span { font-size: 13px; }
.landing > .btn { text-decoration: none; max-width: 340px; margin: 0 auto 24px; }
.land-feats { text-align: left; }
.land-feat { display: flex; gap: 14px; align-items: flex-start; }
.land-feat b { display: block; margin-bottom: 2px; } .land-feat p { margin: 0; color: var(--muted); font-size: 14px; }

/* ⏰ eng faol soatlar */
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; height: 120px; align-items: end; padding-bottom: 18px; }
.hbar { position: relative; height: 100%; display: flex; align-items: flex-end; }
.hbar i { display: block; width: 100%; border-radius: 3px; background: var(--accent-soft); }
.hbar.best i { background: var(--accent); }
.hbar.now i { outline: 1.5px solid var(--accent); outline-offset: 1px; }
.hbar small { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); font-size: 10.5px; color: var(--faint); }

/* 🛒 reklama birjasi */
.quick-item.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; }
.quick-item.wide .tile-ic { margin: 0; }
.quick-item.wide span { flex: 1; display: flex; flex-direction: column; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 4px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll .chip { flex: none; }
.chip i { font-style: normal; opacity: .65; margin-left: 2px; }
.sheet-body .chips { margin-top: 8px; }
.sheet-body .seg { box-shadow: none; background: var(--surface); margin: 8px 0 0; }
.listing { cursor: pointer; }
.listing-head { display: flex; align-items: center; gap: 12px; }
.listing-head .row-body b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing-head .row-body small { color: var(--muted); font-size: 12.5px; }
.listing-stats { display: flex; gap: 16px; margin: 12px 0 10px; color: var(--muted); font-size: 13px; }
.listing-stats span { display: inline-flex; align-items: center; gap: 6px; } .listing-stats b { color: var(--text); }
.listing-stats .ic { width: 16px; height: 16px; }
.prices { display: flex; gap: 8px; flex-wrap: wrap; }
.price { background: var(--accent-soft); color: var(--accent); border-radius: 10px; padding: 6px 10px; font-size: 13px; }
.price b { color: var(--text); }
.listing-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.order-card .kv2 { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.order-card .kv2:last-child { border-bottom: 0; }
.order-card .kv2 span { color: var(--muted); }
input[type=radio].check { border-radius: 50%; }

/* post kunlik grafigi */
.chart.small { height: 120px; }
.chart .bar-click { fill: #F59E0B; opacity: .35; } .chart .bar-new { fill: #7C5CF0; }
.chart .ax { font-size: 9px; fill: var(--faint); text-anchor: middle; }
.legend i.new { background: #7C5CF0; }
