/* =========================================================
   EduPro — futuristik dizayn tizimi
   Brend ranglari markaz sozlamalaridan: --brand, --brand2
   ========================================================= */
:root {
  --brand: #7c5cff; --brand2: #00e0ff;
  --ok: #22c55e; --bad: #f43f5e; --warn: #f59e0b; --info: #38bdf8;
  --r-sm: 10px; --r: 16px; --r-lg: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --brand-soft: color-mix(in oklab, var(--brand) 16%, transparent);
  --brand-line: color-mix(in oklab, var(--brand) 45%, transparent);
  --glow: 0 0 0 1px color-mix(in oklab, var(--brand) 35%, transparent), 0 8px 30px color-mix(in oklab, var(--brand) 30%, transparent);
  --grad: linear-gradient(135deg, var(--brand), var(--brand2));
  --sidebar: 264px;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05060f; --bg2: #0a0d1e;
  --surface: rgba(18, 22, 44, .58); --surface-solid: #10142b; --surface-2: rgba(255, 255, 255, .035); --surface-3: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .075); --line-strong: rgba(255, 255, 255, .14);
  --text: #eef0ff; --text-2: #c4c8e6; --muted: #8389ad;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45); --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
  --orb-opacity: .55; --grid-opacity: .5;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef1fb; --bg2: #f8f9ff;
  --surface: rgba(255, 255, 255, .74); --surface-solid: #ffffff; --surface-2: rgba(20, 30, 80, .035); --surface-3: rgba(20, 30, 80, .07);
  --line: rgba(20, 28, 80, .09); --line-strong: rgba(20, 28, 80, .17);
  --text: #0d1130; --text-2: #343a62; --muted: #646b91;
  --shadow: 0 10px 30px rgba(30, 40, 110, .09); --shadow-lg: 0 30px 70px rgba(30, 40, 110, .18);
  --orb-opacity: .22; --grid-opacity: .35;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 14px/1.55 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -.01em; line-height: 1.2; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-soft); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--line-strong); background-clip: padding-box; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .tiny { font-size: 11px; } .right { text-align: right; } .center { text-align: center; }
.nowrap { white-space: nowrap; } .bold { font-weight: 600; } .mono { font-family: var(--display); font-variant-numeric: tabular-nums; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.hide { display: none !important; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- fon: aurora + to'r ---------- */
.bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(1200px 800px at 10% -10%, var(--bg2), var(--bg)); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: var(--orb-opacity); will-change: transform; }
.orb.o1 { width: 520px; height: 520px; background: var(--brand); top: -160px; left: -120px; animation: float1 22s ease-in-out infinite alternate; }
.orb.o2 { width: 460px; height: 460px; background: var(--brand2); bottom: -180px; right: -100px; animation: float2 26s ease-in-out infinite alternate; }
.orb.o3 { width: 320px; height: 320px; background: color-mix(in oklab, var(--brand) 50%, var(--brand2)); top: 40%; left: 45%; opacity: calc(var(--orb-opacity) * .5); animation: float3 30s ease-in-out infinite alternate; }
.grid-lines { position: absolute; inset: 0; opacity: var(--grid-opacity);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); }
@keyframes float1 { to { transform: translate(180px, 120px) scale(1.15); } }
@keyframes float2 { to { transform: translate(-160px, -140px) scale(1.1); } }
@keyframes float3 { to { transform: translate(-220px, 80px) scale(.85); } }

/* ---------- animatsiyalar ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.92) translateY(10px); } 100% { opacity: 1; transform: none; } }
@keyframes slideIn { from { transform: translateX(100%); } to { transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 55%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .4; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
@keyframes borderSpin { to { --angle: 360deg; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.anim > * { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
.page { animation: fade .3s ease both; }

/* ---------- qobiq ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; inset: 12px auto 12px 12px; width: var(--sidebar); z-index: 40; display: flex; flex-direction: column;
  background: var(--surface); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: width .35s var(--ease), transform .35s var(--ease); overflow: hidden; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 14px; min-height: 72px; }
.logo { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font: 700 19px var(--display); color: #fff; background: var(--grad);
  box-shadow: var(--glow); position: relative; overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.logo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-100%); animation: logoShine 6s ease-in-out infinite; }
@keyframes logoShine { 0%, 70% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
.brand-text { min-width: 0; }
.brand-text b { display: block; font: 600 15px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 4px 10px 10px; }
.nav .sep { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 16px 12px 6px; white-space: nowrap; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 2px 0; border-radius: 12px; color: var(--text-2); font-weight: 500; white-space: nowrap;
  transition: background .2s, color .2s, transform .2s var(--ease); text-decoration: none; }
.nav a svg { flex: none; opacity: .85; transition: transform .3s var(--spring); }
.nav a:hover { background: var(--surface-2); color: var(--text); transform: translateX(3px); }
.nav a:hover svg { transform: scale(1.12); }
.nav a.active { color: var(--text); background: linear-gradient(90deg, var(--brand-soft), transparent); }
.nav a.active svg { color: var(--brand); opacity: 1; filter: drop-shadow(0 0 8px var(--brand)); }
.nav a.active::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--grad); box-shadow: 0 0 14px var(--brand); }
.nav .count { margin-left: auto; font-size: 11px; padding: 1px 7px; border-radius: 99px; background: var(--brand-soft); color: var(--brand); }
.side-foot { padding: 12px; border-top: 1px solid var(--line); }
.plan-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 12px; white-space: nowrap; overflow: hidden; }
.plan-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; animation: pulseDot 2s infinite; }
.plan-chip.bad .dot { background: var(--bad); }
.collapsed .sidebar { width: 84px; }
.collapsed .brand-text, .collapsed .nav .sep, .collapsed .nav a span, .collapsed .nav .count, .collapsed .plan-chip span { display: none; }
.collapsed .nav a { justify-content: center; }
.collapsed .main { margin-left: 108px; }
.main { flex: 1; min-width: 0; margin-left: calc(var(--sidebar) + 24px); transition: margin .35s var(--ease); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 24px 12px 12px; }
.topbar-inner { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); background: var(--surface); backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); border: 1px solid var(--line); box-shadow: var(--shadow); }
.search-trigger { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.search-trigger:hover { border-color: var(--brand-line); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-trigger kbd, kbd { margin-left: auto; font: 11px var(--font); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface-2); cursor: pointer; transition: all .2s var(--ease); color: var(--text-2); flex: none; }
.icon-btn:hover { color: var(--text); border-color: var(--brand-line); transform: translateY(-1px); box-shadow: 0 6px 18px color-mix(in oklab, var(--brand) 25%, transparent); }
.icon-btn .ping { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px var(--surface-solid); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: .2s; position: relative; }
.user-chip:hover { background: var(--surface-2); border-color: var(--line); }
.user-chip .who b { display: block; font-size: 13px; line-height: 1.2; } .user-chip .who span { font-size: 11px; color: var(--muted); }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .2s var(--ease); z-index: 60; }
.menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left; color: var(--text-2); }
.menu button:hover { background: var(--surface-2); color: var(--text); }
.content { padding: 8px 24px 40px 12px; max-width: 1480px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 10px 0 20px; }
.page-head h1 { font-size: 28px; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.burger { display: none; }
.scrim { display: none; }

/* ---------- kartalar ---------- */
.card { position: relative; background: var(--surface); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.card.hover:hover, .card.lift:hover { transform: translateY(-3px); border-color: var(--brand-line); box-shadow: var(--shadow), var(--glow); }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: linear-gradient(140deg, color-mix(in oklab, var(--brand) 70%, transparent), transparent 40%, transparent 60%, color-mix(in oklab, var(--brand2) 70%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::before { opacity: 1; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 15.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-head h3 svg { color: var(--brand); }
.card.flat { padding: 0; overflow: hidden; }
.card.flat .card-head { padding: 18px 20px 0; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } .g-side { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.span2 { grid-column: span 2; }
.mb { margin-bottom: 16px; }

.stat { overflow: hidden; }
.stat .top { display: flex; align-items: center; justify-content: space-between; }
.stat .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.chip-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: 0 8px 22px color-mix(in oklab, var(--brand) 40%, transparent); }
.chip-ico.ok { background: linear-gradient(135deg, #16a34a, #4ade80); box-shadow: 0 8px 22px rgba(34, 197, 94, .35); }
.chip-ico.bad { background: linear-gradient(135deg, #e11d48, #fb7185); box-shadow: 0 8px 22px rgba(244, 63, 94, .35); }
.chip-ico.warn { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 8px 22px rgba(245, 158, 11, .35); }
.chip-ico.info { background: linear-gradient(135deg, #0284c7, #38bdf8); box-shadow: 0 8px 22px rgba(56, 189, 248, .35); }
.stat .value { font: 700 28px/1.15 var(--display); margin: 12px 0 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat .sub { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stat .spark { position: absolute; right: 0; bottom: 0; width: 55%; height: 46px; opacity: .55; pointer-events: none; }
.stat .value, .stat .sub, .stat .top { position: relative; z-index: 1; }
.trend { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; }
.trend.up { background: color-mix(in oklab, var(--ok) 16%, transparent); color: var(--ok); }
.trend.down { background: color-mix(in oklab, var(--bad) 16%, transparent); color: var(--bad); }

.hero { position: relative; overflow: hidden; padding: 26px; }
.hero h2 { font-size: 26px; margin-bottom: 6px; }
.hero::after { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--brand2) 45%, transparent), transparent 70%); pointer-events: none; animation: bob 7s ease-in-out infinite; }

/* ---------- tugmalar ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .25s, background .2s, border-color .2s; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); border-color: var(--brand-line); background: var(--surface-3); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { border: 0; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand2), var(--brand)); background-size: 200% 100%; box-shadow: 0 8px 24px color-mix(in oklab, var(--brand) 40%, transparent); }
.btn.primary:hover { animation: gradientMove 2.5s linear infinite; box-shadow: 0 10px 32px color-mix(in oklab, var(--brand) 55%, transparent); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { border-color: color-mix(in oklab, var(--bad) 50%, transparent); background: color-mix(in oklab, var(--bad) 10%, transparent); }
.btn.solid-danger { border: 0; color: #fff; background: linear-gradient(135deg, #e11d48, #fb7185); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 10px; gap: 6px; }
.btn.icon { padding: 7px; width: 34px; height: 34px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; animation: none; }
.btn .rip { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .35); transform: scale(0); animation: ripple .6s ease-out; pointer-events: none; width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn:not(.primary).loading::after { border-color: var(--line-strong); border-top-color: var(--brand); }
.actions-cell { text-align: right; white-space: nowrap; }
.actions-cell .btn + .btn { margin-left: 4px; }

/* ---------- forma ---------- */
input, select, textarea { width: 100%; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; color: var(--text); }
input:hover, select:hover, textarea:hover { border-color: var(--brand-line); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); background: var(--surface-3); }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238389ad' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
select option { background: var(--surface-solid); color: var(--text); }
input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--brand); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.tools input, .tools select { width: auto; min-width: 160px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field > span i { color: var(--bad); font-style: normal; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { position: relative; cursor: pointer; }
.days input { position: absolute; opacity: 0; pointer-events: none; }
.days span { display: grid; place-items: center; min-width: 46px; height: 40px; padding: 0 10px; border-radius: 11px; border: 1px solid var(--line-strong); font-weight: 600; font-size: 13px; transition: all .2s var(--ease); }
.days input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px color-mix(in oklab, var(--brand) 40%, transparent); transform: translateY(-1px); }
.searchsel input { margin-bottom: 6px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 38px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 42px; height: 24px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; transition: .25s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.switch input:checked + i { background: var(--grad); border-color: transparent; }
.switch input:checked + i::after { transform: translateX(18px); }

/* ---------- badge ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.plain::before { display: none; }
.badge.ok { background: color-mix(in oklab, var(--ok) 14%, transparent); color: var(--ok); border-color: color-mix(in oklab, var(--ok) 25%, transparent); }
.badge.bad { background: color-mix(in oklab, var(--bad) 14%, transparent); color: var(--bad); border-color: color-mix(in oklab, var(--bad) 25%, transparent); }
.badge.warn { background: color-mix(in oklab, var(--warn) 14%, transparent); color: var(--warn); border-color: color-mix(in oklab, var(--warn) 25%, transparent); }
.badge.info { background: color-mix(in oklab, var(--info) 14%, transparent); color: var(--info); border-color: color-mix(in oklab, var(--info) 25%, transparent); }
.badge.brand { background: var(--brand-soft); color: var(--brand); border-color: var(--brand-line); }
html[data-theme="light"] .badge.brand { color: color-mix(in oklab, var(--brand) 80%, #000); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 8px; font-size: 12px; background: var(--surface-3); color: var(--text-2); margin: 2px 4px 2px 0; }

/* ---------- tablar ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 16px; backdrop-filter: blur(20px); flex-wrap: wrap; }
.tabs button { position: relative; border: 0; background: none; padding: 8px 16px; border-radius: 10px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13.5px; transition: color .2s, background .2s; display: inline-flex; align-items: center; gap: 7px; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: #fff; background: var(--grad); box-shadow: 0 6px 18px color-mix(in oklab, var(--brand) 35%, transparent); }

/* ---------- jadval ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { transition: background .2s; animation: rise .45s var(--ease) both; animation-delay: calc(min(var(--i, 0), 14) * 30ms); }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.empty { text-align: center; color: var(--muted); padding: 44px 16px; }
.empty .em-ico { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; background: var(--surface-2); border: 1px dashed var(--line-strong); color: var(--muted); animation: bob 4s ease-in-out infinite; }
.avatar { width: 36px; height: 36px; border-radius: 12px; flex: none; display: inline-grid; place-items: center; font: 700 13px var(--display); color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 250) 85% 62%), hsl(calc(var(--h, 250) + 50) 85% 55%)); box-shadow: 0 4px 14px hsl(var(--h, 250) 80% 50% / .35); }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.person b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .grow > span { font-size: 12px; color: var(--muted); }
.more-row { text-align: center; padding: 14px; }

/* ---------- modal / drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; overflow-y: auto;
  background: color-mix(in oklab, var(--bg) 55%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .25s ease; }
.overlay.closing { animation: fade .2s ease reverse forwards; }
.modal { width: 100%; max-width: 560px; border-radius: var(--r-lg); background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line);
  animation: pop .35s var(--spring); position: relative; }
.modal.wide { max-width: 920px; }
.modal::before { content: ''; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), var(--brand2), transparent); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 18px; }
.modal-body { padding: 22px; }
.overlay.drawer { justify-content: flex-end; padding: 0; align-items: stretch; }
.overlay.drawer .modal { max-width: 760px; border-radius: var(--r-lg) 0 0 var(--r-lg); animation: slideIn .4s var(--ease); min-height: 100vh; }
.close-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: .25s var(--ease); flex: none; }
.close-x:hover { color: var(--text); transform: rotate(90deg); border-color: var(--brand-line); }
.dialog { max-width: 420px; text-align: center; }
.dialog .modal-body { padding: 28px; }
.dialog .d-ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: var(--grad); box-shadow: var(--glow); }
.dialog .d-ico.danger { background: linear-gradient(135deg, #e11d48, #fb7185); box-shadow: 0 8px 30px rgba(244, 63, 94, .4); }
.dialog h3 { font-size: 19px; margin-bottom: 8px; }
.dialog p { color: var(--muted); margin: 0 0 20px; }

/* ---------- toast ---------- */
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 300; }
.toast { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-width: 260px; max-width: 380px; padding: 13px 16px; border-radius: 14px;
  background: var(--surface-solid); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); animation: toastIn .4s var(--spring); }
.toast.out { animation: toastIn .3s ease reverse forwards; }
.toast .t-ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; color: #fff; background: linear-gradient(135deg, #16a34a, #4ade80); }
.toast.err .t-ico { background: linear-gradient(135deg, #e11d48, #fb7185); }
.toast .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--grad); transform-origin: left; animation: shrink 4s linear forwards; }
.toast.err .bar { background: var(--bad); }

/* ---------- skeleton ---------- */
.skel { border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2) 0, var(--surface-3) 40%, var(--surface-2) 80%); background-size: 800px 100%; animation: shimmer 1.4s linear infinite; }
.skel-page { display: grid; gap: 16px; }
.skel-page .s1 { height: 54px; width: 40%; }
.skel-page .s2 { height: 130px; }
.skel-page .s3 { height: 340px; }

/* ---------- grafiklar ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar-r { transform-box: fill-box; transform-origin: bottom; animation: grow .9s var(--ease) both; }
.chart .line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
.chart .area { animation: fade 1.4s ease both; animation-delay: .3s; }
.chart .pt { opacity: 0; animation: fade .3s ease forwards; transition: r .2s; }
.chart .hit:hover + .pt, .chart .pt:hover { r: 6; }
.chart text { fill: var(--muted); font: 10.5px var(--font); }
.chart .grid-l { stroke: var(--line); stroke-dasharray: 3 4; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; margin-top: 10px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-right: 7px; vertical-align: -1px; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.donut { position: relative; width: 150px; height: 150px; flex: none; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle.seg { fill: none; stroke-width: 15; stroke-linecap: round; transition: stroke-width .25s; animation: donutIn 1.2s var(--ease) both; }
.donut circle.seg:hover { stroke-width: 19; }
@keyframes donutIn { from { stroke-dasharray: 0 400; } }
.donut .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut .center b { font: 700 22px var(--display); display: block; } .donut .center > div > span { font-size: 11px; color: var(--muted); }
.donut-legend { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 160px; }
.donut-legend div { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.donut-legend div b { margin-left: auto; font-family: var(--display); }
.gauge { position: relative; width: 120px; height: 120px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.gauge .val { fill: none; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray 1.4s var(--ease); filter: drop-shadow(0 0 6px color-mix(in oklab, var(--brand) 60%, transparent)); }
.gauge .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .center b { font: 700 24px var(--display); display: block; line-height: 1; } .gauge .center b span { font: inherit; color: inherit; } .gauge .center > div > span { font-size: 11px; color: var(--muted); }
.gauge.sm { width: 74px; height: 74px; } .gauge.sm .center b { font-size: 16px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; align-items: center; gap: 12px; padding: 7px 0; font-size: 13px; }
.hbar .track { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 99px; background: var(--grad); transform-origin: left; animation: growX 1.1s var(--ease) both; box-shadow: 0 0 12px color-mix(in oklab, var(--brand) 50%, transparent); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > div { height: 100%; border-radius: 99px; background: var(--grad); transform-origin: left; animation: growX 1.2s var(--ease) both; }
.progress.bad > div { background: linear-gradient(90deg, #e11d48, #fb7185); }
.progress.ok > div { background: linear-gradient(90deg, #16a34a, #4ade80); }

/* ---------- ro'yxatlar ---------- */
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--brand), var(--brand2)); opacity: .45; border-radius: 2px; }
.tl-item { position: relative; padding: 0 0 16px; }
.tl-item::before { content: ''; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-solid); border: 2px solid var(--brand); }
.tl-item.done::before { background: var(--ok); border-color: var(--ok); }
.tl-item.now::before { background: var(--brand); animation: pulse 1.8s infinite; }
.tl-item:last-child { padding-bottom: 0; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); transition: .25s var(--ease); }
.lesson:hover { border-color: var(--brand-line); transform: translateX(3px); }
.lesson .time { display: flex; width: fit-content; align-items: center; gap: 5px; font: 600 12.5px var(--display); color: var(--brand); margin-bottom: 2px; }
html[data-theme="light"] .lesson .time { color: color-mix(in oklab, var(--brand) 80%, #000); }
.feed-item { display: flex; gap: 12px; padding: 9px 0; font-size: 13px; }
.feed-item .dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--grad); flex: none; box-shadow: 0 0 10px var(--brand); }
.ann { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 10px; position: relative; transition: .25s; }
.ann:hover { border-color: var(--brand-line); }
.ann.pinned { border-color: var(--brand-line); background: linear-gradient(135deg, var(--brand-soft), transparent); }
.ann h4 { font-size: 15px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.ann p { margin: 0 0 8px; color: var(--text-2); white-space: pre-wrap; }

/* ---------- davomat ---------- */
.att-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; transition: background .2s; }
.att-row:hover { background: var(--surface-2); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 7px 13px; border-radius: 9px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .25s var(--ease); }
.seg button:hover { color: var(--text); background: var(--surface-3); }
.seg button.on { color: #fff; transform: scale(1.04); }
.seg button.on[data-s="present"] { background: linear-gradient(135deg, #16a34a, #4ade80); box-shadow: 0 4px 14px rgba(34, 197, 94, .4); }
.seg button.on[data-s="absent"] { background: linear-gradient(135deg, #e11d48, #fb7185); box-shadow: 0 4px 14px rgba(244, 63, 94, .4); }
.seg button.on[data-s="late"] { background: linear-gradient(135deg, #d97706, #fbbf24); box-shadow: 0 4px 14px rgba(245, 158, 11, .4); }
.seg button.on[data-s="excused"] { background: linear-gradient(135deg, #0284c7, #38bdf8); box-shadow: 0 4px 14px rgba(56, 189, 248, .4); }
.cell { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 11px; font-weight: 700; }
.cell.present { background: color-mix(in oklab, var(--ok) 18%, transparent); color: var(--ok); }
.cell.absent { background: color-mix(in oklab, var(--bad) 18%, transparent); color: var(--bad); }
.cell.late { background: color-mix(in oklab, var(--warn) 18%, transparent); color: var(--warn); }
.cell.excused { background: color-mix(in oklab, var(--info) 18%, transparent); color: var(--info); }
.att-summary { display: flex; gap: 10px; flex-wrap: wrap; }
.att-summary .badge { font-size: 12.5px; padding: 5px 12px; }
.sticky-bar { position: sticky; bottom: 14px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin-top: 14px; border-radius: 16px;
  background: var(--surface-solid); border: 1px solid var(--brand-line); box-shadow: var(--shadow-lg), var(--glow); animation: rise .4s var(--ease); }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.col { border-radius: var(--r-lg); padding: 12px; min-height: 320px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(16px); transition: border-color .2s, background .2s; }
.col.drop { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--glow); }
.col-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 4px 12px; }
.lead { padding: 13px; margin-bottom: 10px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line); cursor: grab; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; animation: pop .35s var(--ease) both; }
.lead:hover { transform: translateY(-2px); border-color: var(--brand-line); box-shadow: var(--shadow); }
.lead.dragging { opacity: .45; transform: rotate(2deg) scale(.98); }
.lead .acts { display: flex; gap: 4px; margin-top: 10px; flex-wrap: wrap; }

/* ---------- dars jadvali ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.day-col h4 { text-align: center; padding: 10px; border-radius: 12px; margin-bottom: 10px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); }
.day-col.today h4 { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--glow); }
.slot { position: relative; padding: 11px 12px 11px 15px; margin-bottom: 10px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; overflow: hidden; transition: .25s var(--ease); animation: rise .45s var(--ease) both; }
.slot::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: hsl(var(--h, 250) 85% 60%); box-shadow: 0 0 12px hsl(var(--h, 250) 85% 60%); }
.slot:hover { transform: translateY(-2px) scale(1.01); border-color: hsl(var(--h, 250) 85% 60% / .5); }
.slot b { display: block; font: 600 13px var(--display); margin-bottom: 2px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { position: relative; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-hero > *:not(canvas) { position: relative; z-index: 1; }
.auth-hero h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.05; font-weight: 700; margin: 18px 0 16px; letter-spacing: -.03em; }
.auth-hero p.hero-lead { font-size: 16px; color: var(--text-2); max-width: 480px; margin: 0; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; margin-top: 30px; }
.feature { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: blur(16px); font-size: 13px; font-weight: 500; animation: rise .6s var(--ease) both; }
.feature .chip-ico { width: 34px; height: 34px; border-radius: 10px; }
.auth-side { display: grid; place-items: center; padding: 32px; }
.auth-box { width: 100%; max-width: 440px; padding: 34px; border-radius: 26px; background: var(--surface); backdrop-filter: blur(30px) saturate(160%); -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); animation: pop .6s var(--spring); position: relative; }
.auth-box::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, var(--brand), transparent 40%, transparent 60%, var(--brand2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.auth-box h2 { font-size: 26px; margin: 22px 0 6px; }
.auth-box .logo { width: 52px; height: 52px; font-size: 24px; border-radius: 16px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.demo-grid button { padding: 8px 6px; border-radius: 10px; border: 1px dashed var(--line-strong); background: var(--surface-2); cursor: pointer; font-size: 11.5px; color: var(--text-2); transition: .2s; }
.demo-grid button:hover { border-color: var(--brand); color: var(--text); background: var(--brand-soft); }
.pw-wrap { position: relative; } .pw-wrap input { padding-right: 44px; }
.pw-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.pw-wrap button:hover { color: var(--text); }

/* ---------- banner, plan ---------- */
.banner { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 14px; margin-bottom: 16px; font-weight: 500;
  background: color-mix(in oklab, var(--warn) 12%, transparent); color: var(--warn); border: 1px solid color-mix(in oklab, var(--warn) 30%, transparent); animation: rise .5s var(--ease); }
.banner.bad { background: color-mix(in oklab, var(--bad) 12%, transparent); color: var(--bad); border-color: color-mix(in oklab, var(--bad) 30%, transparent); }
.banner.info { background: color-mix(in oklab, var(--info) 10%, transparent); color: var(--info); border-color: color-mix(in oklab, var(--info) 28%, transparent); }
.banner a { color: inherit; text-decoration: underline; font-weight: 700; }
.plan { position: relative; padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); transition: .35s var(--ease); display: flex; flex-direction: column; }
.plan:hover { transform: translateY(-4px); border-color: var(--brand-line); box-shadow: var(--glow); }
.plan.cur { border-color: var(--brand); box-shadow: var(--glow); background: linear-gradient(160deg, var(--brand-soft), var(--surface) 60%); }
.plan .ribbon { position: absolute; top: 14px; right: 14px; }
.plan .price { font: 700 28px var(--display); margin: 10px 0 2px; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; flex: 1; }
.plan li { display: flex; gap: 8px; align-items: center; padding: 5px 0; font-size: 13px; color: var(--text-2); }
.plan li svg { color: var(--ok); flex: none; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 44px; height: 44px; border-radius: 14px; cursor: pointer; border: 2px solid transparent; transition: .25s var(--spring); position: relative; }
.swatch:hover { transform: scale(1.1) rotate(-4deg); }
.swatch.on { border-color: var(--text); transform: scale(1.08); }
.logo-drop { display: grid; place-items: center; gap: 8px; padding: 24px; border-radius: 18px; border: 2px dashed var(--line-strong); text-align: center; cursor: pointer; transition: .25s; }
.logo-drop:hover, .logo-drop.over { border-color: var(--brand); background: var(--brand-soft); }
.logo-drop img { max-width: 120px; max-height: 120px; border-radius: 16px; background: #fff; padding: 6px; }
.preview { padding: 18px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); }
.copy-field { display: flex; gap: 8px; }
.copy-field input { font-family: var(--display); font-size: 13px; }

/* ---------- command palette ---------- */
.palette { max-width: 640px; margin-top: 8vh; }
.palette .p-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.palette .p-input input { border: 0; background: none; box-shadow: none; padding: 4px 0; font-size: 16px; }
.palette .p-list { max-height: 420px; overflow-y: auto; padding: 8px; }
.palette .p-group { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 12px 4px; }
.palette .p-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; color: var(--text-2); }
.palette .p-item.on, .palette .p-item:hover { background: var(--brand-soft); color: var(--text); }
.palette .p-item .p-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); flex: none; }
.palette .p-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }

/* ---------- moslashuvchanlik ---------- */
@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-main, .g-side { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  .sidebar { transform: translateX(calc(-100% - 20px)); }
  .nav-open .sidebar { transform: none; }
  .nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .45); backdrop-filter: blur(3px); animation: fade .2s; }
  .main, .collapsed .main { margin-left: 0; }
  .collapsed .sidebar { width: var(--sidebar); }
  .collapsed .brand-text, .collapsed .nav .sep, .collapsed .nav a span, .collapsed .plan-chip span { display: initial; }
  .burger { display: grid; } .collapse-btn { display: none; }
  .topbar { padding: 10px 12px; } .content { padding: 4px 12px 32px; }
  .g3 { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; } .auth-hero { display: none; }
  .user-chip .who, .search-trigger kbd { display: none; }
}
@media (max-width: 640px) {
  .g2, .g4 { grid-template-columns: 1fr; } .span2 { grid-column: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .page-head h1 { font-size: 23px; }
  .tools input, .tools select { min-width: 0; flex: 1; }
  .stat .value { font-size: 24px; }
  .modal-body { padding: 18px; }
  .overlay { padding: 12px 8px; }
  .overlay.drawer .modal { border-radius: 0; }
  .search-trigger span { display: none; }
  .hbar { grid-template-columns: 90px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .orb { display: none; }
}
@media print {
  .sidebar, .topbar, .tools, .btn, .bg-layer, #toasts { display: none !important; }
  .main { margin: 0 !important; } .card { box-shadow: none; backdrop-filter: none; border-color: #ddd; }
  body { background: #fff; color: #000; }
}

/* ---------- onlayn to'lovlar: Payme / Click ---------- */
.wm { font: 800 15px/1 var(--display); letter-spacing: -.02em; display: inline-flex; align-items: center; white-space: nowrap; }
.wm.payme { color: var(--text); } .wm.payme b { color: #00c4c4; font-weight: 800; }
.wm.click { color: #1a8cff; }
.wm.click i { display: inline-block; width: 7px; height: 7px; margin-left: 2px; border-radius: 50%; background: #1a8cff; box-shadow: 0 0 10px #1a8cff; }
.tag .wm { font-size: 12px; }
.prov-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.prov { position: relative; cursor: pointer; }
.prov input { position: absolute; opacity: 0; pointer-events: none; }
.prov > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface-2); transition: all .25s var(--ease); }
.prov > span .wm { font-size: 22px; }
.prov > span em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.prov:hover > span { border-color: var(--brand-line); transform: translateY(-2px); }
.prov input:checked + span { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--glow); }
.prov input:checked + span::after { content: '✓'; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); animation: pop .3s var(--spring); }
.prov input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.pay-amount { text-align: center; padding: 18px; margin-bottom: 16px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.pay-amount span { display: block; margin-bottom: 4px; }
.pay-amount b { font: 700 34px var(--display); color: var(--text); letter-spacing: -.02em; }
.prov-card { overflow: hidden; }
.prov-card::after { content: ''; position: absolute; width: 220px; height: 220px; right: -90px; top: -110px; border-radius: 50%; opacity: .16; pointer-events: none; }
.prov-card.payme::after { background: radial-gradient(circle, #00c4c4, transparent 70%); }
.prov-card.click::after { background: radial-gradient(circle, #1a8cff, transparent 70%); }
.spin-dot { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid color-mix(in oklab, currentColor 30%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; }
code { font-family: var(--display); font-size: .92em; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); }
.card-head h3 .wm { font-size: 22px; }

.wm.tg { color: #229ed9; font-weight: 700; font-size: 13px; }

/* =========================================================
   MOBIL VA SENSORLI EKRANLAR
   ========================================================= */
.bottom-nav { display: none; }
.shell, .auth { min-height: 100vh; min-height: 100dvh; }
@media (hover: none) {
  .card.hover:hover, .card.lift:hover, .btn:hover, .nav a:hover, .icon-btn:hover, .plan:hover, .slot:hover, .lead:hover, .lesson:hover, .prov:hover > span, .swatch:hover, .logo-drop:hover { transform: none; }
  .card:hover::before { opacity: 0; }
}
@media (max-width: 980px) {
  .bottom-nav { display: flex; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 45; gap: 2px; padding: 6px; border-radius: 24px;
    background: var(--surface); backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); animation: rise .5s var(--ease); }
  .bottom-nav a, .bottom-nav button { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 2px; min-height: 52px; border: 0; border-radius: 18px;
    background: none; color: var(--muted); font: 600 10.5px var(--font); text-decoration: none; cursor: pointer; transition: color .2s, background .2s, transform .2s var(--spring); -webkit-tap-highlight-color: transparent; }
  .bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-nav a:active, .bottom-nav button:active { transform: scale(.92); }
  .bottom-nav a.active { color: var(--text); background: var(--brand-soft); }
  .bottom-nav a.active svg { color: var(--brand); filter: drop-shadow(0 0 8px var(--brand)); }
  .nav-open .bottom-nav { display: none; }
  .content { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .sticky-bar { bottom: calc(88px + env(safe-area-inset-bottom)); }
  #toasts { left: 12px; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom)); align-items: stretch; }
  .toast { max-width: none; min-width: 0; }
  .sidebar { inset: 10px auto 10px 10px; width: min(300px, calc(100vw - 40px)); }
  .week { grid-template-columns: 1fr; overflow: visible; gap: 6px; }
  .day-col { margin-bottom: 10px; }
  .day-col h4 { text-align: left; padding: 10px 14px; position: sticky; top: 72px; z-index: 2; backdrop-filter: blur(12px); }
  .kanban { scroll-snap-type: x mandatory; grid-template-columns: repeat(5, minmax(260px, 82vw)); margin: 0 -12px; padding: 0 12px 8px; }
  .kanban .col { scroll-snap-align: center; }
}
@media (max-width: 720px) {
  /* jadvallar: qatorlar kartaga aylanadi — barcha ustunlar ko'rinadi, gorizontal surish kerak emas */
  .table-wrap { overflow: visible; margin: 0; padding: 0; }
  table.rt, table.rt tbody { display: block; width: 100%; }
  table.rt thead { display: none; }
  table.rt tr { display: block; padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
  table.rt tbody tr:hover { background: var(--surface-2); }
  table.rt tbody tr.click:hover td:first-child { box-shadow: none; }
  table.rt tbody tr.click:active { background: var(--brand-soft); border-color: var(--brand-line); }
  table.rt td { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 7px 0; border: 0; text-align: right; min-width: 0; }
  table.rt td::before { content: attr(data-label); flex: none; margin-right: auto; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; }
  table.rt td:not([data-label])::before { display: none; }
  table.rt td[data-first] { display: block; text-align: left; padding: 0 0 10px; margin-bottom: 4px; border-bottom: 1px dashed var(--line); }
  table.rt td.actions-cell { justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin-top: 6px; padding: 10px 0 0; border-top: 1px dashed var(--line); }
  table.rt td.actions-cell .btn + .btn { margin-left: 0; }
  table.rt td .tag { margin: 2px 0 2px 4px; }
  table.rt td .progress { margin-left: auto; }
  .more-row .btn { width: 100%; }
}
@media (max-width: 640px), (pointer: coarse) {
  /* bosish maydonlari kamida ~40px; iOS'da fokusda zoom bo'lmasligi uchun 16px */
  .btn { min-height: 42px; padding-inline: 16px; }
  .btn.sm { min-height: 38px; padding-inline: 13px; }
  .btn.icon, .btn.sm.icon { min-width: 40px; width: 40px; height: 40px; min-height: 40px; padding: 0; }
  .close-x { width: 42px; height: 42px; }
  input, select, textarea { min-height: 44px; font-size: 16px; }
  textarea { min-height: 88px; }
  input[type="checkbox"], input[type="radio"] { min-height: 0; }
  input[type="color"] { min-height: 48px; }
  .seg button { min-height: 40px; }
  .tabs button { min-height: 40px; }
  .days span { min-height: 44px; }
  .pw-wrap button { width: 42px; height: 42px; right: 2px; display: grid; place-items: center; }
  .menu button, .palette .p-item { min-height: 46px; }
  .list-item { min-height: 48px; }
  .nav a { padding: 12px; }
  .switch i { width: 48px; height: 28px; } .switch i::after { width: 22px; height: 22px; } .switch input:checked + i::after { transform: translateX(20px); }
  .person span, .small { font-size: 12.5px; }
}
@media (max-width: 640px) {
  .topbar-inner { gap: 8px; } .topbar { padding-right: 12px; }
  .page-head { margin: 4px 0 16px; align-items: flex-start; }
  .page-head .tools { width: 100%; } .page-head .tools .btn { flex: 1 1 auto; }
  /* filtrlar: qidiruv to'liq qatorda, tanlovlar ikkitadan */
  .tools { width: 100%; }
  .tools > .input-icon, .tools > input[type="search"], .tools > input[type="text"] { flex: 1 1 100%; min-width: 0; }
  .tools > select, .tools > input[type="date"], .tools > input[type="month"] { flex: 1 1 calc(50% - 4px); min-width: 0; }
  .tools > .switch { flex: 1 1 100%; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; margin-inline: -2px; -webkit-overflow-scrolling: touch; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; white-space: nowrap; }
  .card { padding: 16px; border-radius: 20px; }
  .card.hero { padding: 18px; } .hero h2 { font-size: 22px; }
  .stat .value { font-size: 24px; }
  .grid { gap: 12px; } .mb { margin-bottom: 12px; }
  .att-row { flex-wrap: wrap; padding: 12px 6px; }
  .att-row > b { flex: 1 1 0; min-width: 0; }
  .att-row .seg { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .att-row input[type="number"] { width: 110px !important; }
  .seg button { padding: 8px 4px; font-size: 12px; }
  .lesson { padding: 12px; } .lesson .btn { margin-left: auto; }
  .modal { border-radius: 22px; }
  .overlay:not(.drawer) { padding: 10px 8px calc(10px + env(safe-area-inset-bottom)); }
  .modal-head { padding: 14px 16px; } .modal-body { padding: 16px; }
  .overlay.drawer .modal { max-width: 100%; }
  .form-actions { position: sticky; bottom: -16px; background: var(--surface-solid); margin: 8px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 0 0 22px 22px; z-index: 3; }
  .form-actions .btn { flex: 1; }
  .prov-grid { grid-template-columns: 1fr 1fr; }
  .palette { margin-top: 2vh; }
  .auth-side { padding: 16px; align-items: start; padding-top: 6vh; }
  .auth-box { padding: 24px 20px; border-radius: 24px; }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .hbar { grid-template-columns: minmax(70px, 110px) 1fr auto; gap: 8px; }
  .donut-wrap { gap: 14px; } .donut { width: 128px; height: 128px; margin: 0 auto; } .donut-legend { min-width: 100%; }
  .gauge { width: 104px; height: 104px; }
  .plan { padding: 18px; } .plan .price { font-size: 24px; }
  .logo-drop { padding: 18px; }
  .copy-field { flex-wrap: nowrap; } .copy-field input { min-width: 0; }
  .pay-amount b { font-size: 28px; }
  .week { gap: 4px; }
  .stat .spark { width: 45%; height: 38px; }
  .legend { gap: 6px 12px; font-size: 12px; }
  .chart text { font-size: 11px; }
}
@media (max-width: 380px) {
  .content { padding-left: 10px; padding-right: 10px; }
  .page-head h1 { font-size: 21px; }
  .btn { padding-inline: 12px; font-size: 13px; }
  .bottom-nav a, .bottom-nav button { font-size: 10px; }
  .prov-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) and (orientation: landscape) and (max-height: 520px) {
  .bottom-nav { padding: 4px; } .bottom-nav a, .bottom-nav button { flex-direction: row; min-height: 40px; gap: 6px; } .content { padding-bottom: 76px; }
}

.mini-stats { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.mini-stats .card { padding: 12px 14px; }

/* mobil: statistik kartalar 2 ustunda, ixcham */
@media (max-width: 640px) {
  .g4:has(> .stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .g4:has(> .stat) .stat { padding: 14px; }
  .g4:has(> .stat) .stat .value { font-size: 19px; margin: 8px 0 3px; word-break: break-word; }
  .g4:has(> .stat) .stat .value small { display: block; margin: 0; font-size: 11px; }
  .g4:has(> .stat) .stat .label { font-size: 12px; }
  .g4:has(> .stat) .stat .sub { font-size: 11.5px; }
  .g4:has(> .stat) .stat .chip-ico { width: 34px; height: 34px; border-radius: 11px; }
  .g4:has(> .stat) .stat .chip-ico svg { width: 17px; height: 17px; }
  .g4:has(> .stat) .stat .spark { display: none; }
  .g3:has(> .stat) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.demo-grid button { min-height: 40px; }

/* ===== CRM: Telegram va Instagram suhbatlar qutisi ===== */
em.count { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--grad); color: #fff; min-width: 20px; text-align: center; display: inline-block; }
.tabs em.count { margin-left: 2px; }
.crm-inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 14px; height: calc(100vh - 250px); min-height: 520px; }
.crm-inbox > .card { padding: 0; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.crm-tools { padding: 12px; display: grid; gap: 10px; border-bottom: 1px solid var(--line); }
.crm-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.crm-filters button { border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); border-radius: 99px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; min-height: 32px; transition: all .2s var(--ease); }
.crm-filters button:hover { color: var(--text); border-color: var(--brand-line); }
.crm-filters button.on { background: var(--grad); color: #fff; border-color: transparent; }
.crm-items { overflow-y: auto; flex: 1; padding: 6px; }
.crm-item { display: flex; gap: 11px; align-items: center; width: 100%; text-align: left; border: 1px solid transparent; background: none; color: inherit; border-radius: 14px; padding: 10px; cursor: pointer; transition: background .2s, border-color .2s, transform .2s var(--ease); font: inherit; }
.crm-item:hover { background: var(--surface-2); }
.crm-item.sel { background: var(--brand-soft); border-color: var(--brand-line); }
.crm-item .grow { min-width: 0; display: grid; gap: 3px; }
.crm-item .row { gap: 8px; }
.crm-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--warn, #f59e0b); box-shadow: 0 0 0 4px color-mix(in oklab, var(--warn, #f59e0b) 25%, transparent); flex: none; }
.nowrap { white-space: nowrap; }
.crm-thread { position: relative; }
.crm-thead { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.crm-thead .grow { min-width: 140px; }
.crm-back { display: none; transform: rotate(180deg); }
.crm-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; animation: pop .3s var(--ease) both; }
.msg.out { justify-content: flex-end; }
.bubble { max-width: min(78%, 520px); padding: 9px 13px 6px; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; line-height: 1.45; font-size: 14px; }
.msg.in .bubble { border-bottom-left-radius: 5px; }
.msg.out .bubble { background: var(--grad); color: #fff; border-color: transparent; border-bottom-right-radius: 5px; box-shadow: 0 6px 18px color-mix(in oklab, var(--brand) 30%, transparent); }
.msg-from { display: block; font-size: 11px; font-weight: 700; opacity: .8; margin-bottom: 2px; }
.msg-time { display: block; text-align: right; font-size: 10.5px; opacity: .65; margin-top: 3px; }
.msg-att { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; color: inherit; text-decoration: underline; }
.crm-compose { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.crm-compose textarea { flex: 1; resize: none; max-height: 140px; min-height: 44px; border-radius: 14px; }
.crm-compose .btn { min-width: 46px; min-height: 44px; }
.crm-empty { margin: auto; text-align: center; }
.crm-empty .em-ico { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 12px; display: grid; place-items: center; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ig-post { padding: 0; overflow: hidden; animation: pop .35s var(--ease) both; }
.ig-thumb { position: relative; aspect-ratio: 1; background: var(--surface-3); display: grid; place-items: center; color: var(--muted); }
.ig-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-type { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .55); color: #fff; backdrop-filter: blur(6px); }
.ig-body { padding: 12px 14px 14px; }
.ig-cap { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.9em; }
.ig-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-line); }
@media (max-width: 900px) {
  .crm-inbox { grid-template-columns: 1fr; height: calc(100dvh - 300px); min-height: 460px; }
  .crm-inbox.has-conv .crm-list { display: none; }
  .crm-inbox:not(.has-conv) .crm-thread { display: none; }
  .crm-back { display: inline-grid; }
  .bubble { max-width: 88%; }
  .crm-item { min-height: 56px; }
  .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .msg, .ig-post { animation: none; }  }.crm-item .row > .ellipsis { flex: 1; min-width: 0; }
.crm-item .row > em.count, .crm-item .row > .crm-dot { flex: none; }.crm-item .grow { grid-template-columns: minmax(0, 1fr); }
.crm-item .grow > * { min-width: 0; }#crmtabs { max-width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
#crmtabs::-webkit-scrollbar { display: none; }
#crmtabs button { white-space: nowrap; flex: none; min-height: 40px; }
/* ===== iPhone: notch / Dynamic Island / holat paneli ostida qolmasin (xavfsiz zona) ===== */
.topbar { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.auth { padding-top: env(safe-area-inset-top, 0px); }
.overlay { padding-top: calc(6vh + env(safe-area-inset-top, 0px)); }
@media (max-width: 1100px) {
  .sidebar { inset: calc(10px + env(safe-area-inset-top, 0px)) auto calc(10px + env(safe-area-inset-bottom, 0px)) 10px; }
  .overlay:not(.drawer) { padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
  .day-col h4 { top: calc(72px + env(safe-area-inset-top, 0px)); }
}
@media (max-width: 1100px) and (orientation: landscape) {
  .content, .topbar { padding-left: max(12px, env(safe-area-inset-left, 0px)); padding-right: max(12px, env(safe-area-inset-right, 0px)); }
}
/* iOS: matn avtomatik kattalashmasin, tortib yangilashda sakramasin, bosishda kulrang belgi chiqmasin */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }