/* Kontent Miya — dizayn tizimi. Ranglar faqat tokenlardan. */
:root {
  --bg: #07070B;
  --bg-2: #0D0D14;
  --surface: #12121B;
  --surface-2: #181824;
  --surface-3: #20202E;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .12);
  --ink: #F5F5FA;
  --ink-2: #BCBCCF;
  --ink-3: #8E8EA6;
  --v: #8B5CF6;
  --v-2: #A78BFA;
  --p: #EC4899;
  --a: #F59E0B;
  --g: #10B981;
  --r: #F43F5E;
  --b: #38BDF8;
  --grad: linear-gradient(120deg, #8B5CF6 0%, #D946EF 45%, #F59E0B 100%);
  --grad-soft: linear-gradient(120deg, rgba(139, 92, 246, .16), rgba(217, 70, 239, .10) 50%, rgba(245, 158, 11, .10));
  --glow: 0 0 0 1px rgba(139, 92, 246, .35), 0 10px 40px -10px rgba(139, 92, 246, .45);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7);
  --rad: 16px;
  --rad-s: 10px;
  --isitish: #8B5CF6;
  --vebinar: #F59E0B;
  --sotuv: #10B981;
  --tg-bg: #0E1621;
  --tg-bubble: #182533;
  --tg-ink: #F5F5F5;
  --tg-link: #6AB3F3;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", "Inter", sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  /* Claude uslubidagi iliq, yorug' palitra */
  --bg: #F7F5F0;
  --bg-2: #F1EEE7;
  --surface: #FFFFFF;
  --surface-2: #FAF8F4;
  --surface-3: #EFEBE3;
  --line: rgba(31, 30, 28, .08);
  --line-2: rgba(31, 30, 28, .15);
  --ink: #1F1E1C;
  --ink-2: #4A4741;
  --ink-3: #6B675F;
  --v: #C2603E;
  --v-2: #A24E30;
  --p: #C2603E;
  --grad: linear-gradient(120deg, #C2603E 0%, #D5774F 55%, #DE9564 100%);
  --grad-soft: linear-gradient(120deg, rgba(194, 96, 62, .09), rgba(222, 149, 100, .06));
  --glow: 0 0 0 1px rgba(194, 96, 62, .28), 0 10px 30px -14px rgba(194, 96, 62, .35);
  --shadow: 0 18px 44px -24px rgba(60, 40, 20, .28);
  --btn-shadow: 0 8px 20px -10px rgba(194, 96, 62, .55);
  --tg-bg: #DCE8F1;
  --tg-bubble: #FFFFFF;
  --tg-ink: #111;
  --tg-link: #2481CC;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--ink); font: 15px/1.65 var(--font); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: rgba(139, 92, 246, .35); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 10px; border: 3px solid var(--bg); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }

/* ── fon: sekin suzuvchi nur ── */
.aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60vw 60vw at -5% -20%, rgba(124, 58, 237, .16), transparent 60%),
              radial-gradient(55vw 55vw at 105% 115%, rgba(219, 39, 119, .10), transparent 60%); }
:root[data-theme="light"] .aurora { display: none; }

/* ── karkas ── */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px;
  border-right: 1px solid var(--line); background: var(--bg-2);
}
.logo { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 11px; background: var(--grad); display: grid; place-items: center;
  box-shadow: 0 8px 24px -6px rgba(217, 70, 239, .6);
}
.logo-mark svg { width: 20px; height: 20px; stroke: #fff; }
.logo b { font: 600 15px/1.1 var(--display); letter-spacing: -.01em; display: block; }
.logo small { color: var(--ink-3); font-size: 11px; letter-spacing: .04em; }
.nav-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 16px 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2);
  transition: background .15s, color .15s; position: relative; font-weight: 500; font-size: 14px; line-height: 1.4;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.on { background: var(--grad-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.nav a .dot { width: 8px; height: 8px; border-radius: 50%; margin: 0 5px; flex: none; }
.nav a .cnt { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px; flex: none;
}
.side-foot .who { flex: 1; min-width: 0; line-height: 1.25; }
.side-foot .who b { display: block; font-size: 13px; }
.side-foot .who small { color: var(--ink-3); font-size: 11px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 32px;
  background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line);
}
.top .burger { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; min-width: 0; }
.crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .sp { flex: 1; }
.proj-pick {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line-2); cursor: pointer; max-width: 260px;
}
.proj-pick select { background: none; border: 0; outline: 0; cursor: pointer; max-width: 200px; text-overflow: ellipsis; }
.proj-pick select option { background: var(--surface); }
.proj-pick .pdot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.page { padding: 28px 32px 80px; max-width: 1400px; width: 100%; margin: 0 auto; }

/* ── tugmalar ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 600;
  white-space: nowrap; transition: transform .12s, background .15s, border-color .15s, box-shadow .2s;
}
.btn:hover { background: var(--surface-2); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn.pri { border: 0; color: #fff; background: var(--grad); background-size: 150% 150%; box-shadow: var(--btn-shadow, 0 10px 30px -10px rgba(217, 70, 239, .6)); }
.btn.pri:hover { background-position: 100% 0; box-shadow: 0 14px 36px -10px rgba(217, 70, 239, .75); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { height: 32px; padding: 0 11px; border-radius: 9px; font-size: 13px; }
.btn.lg { height: 50px; padding: 0 26px; border-radius: 14px; font-size: 15px; }
.btn.icon { width: 40px; padding: 0; }
.btn.sm.icon { width: 32px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: rot .7s linear infinite; }
.btn:not(.pri) .spin { border-color: var(--line-2); border-top-color: var(--v); }
@keyframes rot { to { transform: rotate(360deg); } }

/* ── kartalar ── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--rad); padding: 20px; position: relative; }
.card.glass { background: var(--surface); }
.card h3 { margin: 0 0 4px; font-size: 15px; }
.card-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-h h3 { margin: 0; }
.card-h .sp { flex: 1; }
.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)); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.chip.v { background: rgba(139, 92, 246, .12); border-color: rgba(139, 92, 246, .3); color: var(--v-2); }
.chip.g { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .3); color: #34D399; }
.chip.a { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .3); color: #FBBF24; }
:root[data-theme="light"] .chip.g { color: #047857; }
:root[data-theme="light"] .chip.a { color: #B45309; }
.h1 { font: 600 30px/1.22 var(--display); letter-spacing: -.005em; margin: 0; }
.h2 { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; margin: 0; }
.sub { color: var(--ink-2); margin: 8px 0 0; font-size: 15.5px; line-height: 1.6; }
.sec-h { display: flex; align-items: flex-end; gap: 12px; margin: 34px 0 14px; }
.sec-h h2 { margin: 0; font: 600 18px/1.3 var(--display); }
.sec-h .sp { flex: 1; }
.empty { text-align: center; padding: 50px 20px; color: var(--ink-2); }
.empty .big { width: 56px; height: 56px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line-2); }
.empty .big svg { width: 26px; height: 26px; stroke: var(--v-2); }

/* ── bosh sahifa ── */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 34px; border: 1px solid var(--line-2);
  background: radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, .28), transparent 55%),
              radial-gradient(90% 120% at 100% 100%, rgba(245, 158, 11, .16), transparent 60%), var(--surface);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}
:root[data-theme="light"] .hero::after { background-image: radial-gradient(rgba(60, 30, 140, .10) 1px, transparent 1px); }
.hero-row { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; position: relative; z-index: 1; }
.hero-row .l { flex: 1 1 560px; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat {
  min-width: 130px; padding: 14px 16px; border-radius: 16px; background: color-mix(in srgb, var(--bg) 45%, transparent);
  border: 1px solid var(--line-2);
}
.stat b { display: block; font: 600 26px/1.15 var(--display); letter-spacing: 0; }
.stat span { color: var(--ink-2); font-size: 13px; line-height: 1.4; display: block; margin-top: 4px; }

.mod {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .25s; position: relative; overflow: hidden; min-height: 190px;
}
.mod::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .25s;
  background: linear-gradient(140deg, var(--c), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.mod:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -24px var(--c); }
.mod:hover::before { opacity: 1; }
.mod .ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c);
}
.mod .ic svg { width: 22px; height: 22px; }
.mod h4 { margin: 0; font-size: 16px; line-height: 1.35; }
.mod p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; flex: 1; }
.mod .ft { display: flex; align-items: center; gap: 8px; }
.mod .go { margin-left: auto; color: var(--ink-3); transition: transform .2s, color .2s; }
.mod:hover .go { transform: translateX(3px); color: var(--c); }
.mod.deep { background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface) 55%); }

.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; cursor: pointer; transition: background .15s;
}
.row:hover { background: var(--surface-2); }
.row + .row { border-top: 1px solid var(--line); }
.row .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.row .t { flex: 1; min-width: 0; }
.row .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.row .t small { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.status { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.tayyor::before { background: var(--g); }
.status.yozilmoqda::before, .status.navbatda::before { background: var(--a); animation: pulse 1.2s infinite; }
.status.xato::before { background: var(--r); }
@keyframes pulse { 50% { opacity: .3; } }

/* ── loyihalar ── */
.proj { cursor: pointer; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; gap: 14px; }
.proj:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.proj .top-r { display: flex; align-items: center; gap: 12px; }
.proj .badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font: 600 18px var(--display); color: #fff; flex: none; }
.proj .ind { display: flex; gap: 6px; flex-wrap: wrap; }
.ring { --p: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--v) calc(var(--p) * 1%), var(--surface-3) 0); position: relative; font-size: 11px; font-weight: 700; }
.ring::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.ring span { position: relative; }
.ring.big { width: 84px; height: 84px; font-size: 18px; }
.ring.big::before { inset: 7px; }

/* ── forma ── */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--p); }
.inp, .field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2);
  outline: 0; transition: border-color .15s, box-shadow .15s; resize: vertical;
}
.inp:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--v); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.field textarea { min-height: 90px; }
.field .hint { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; font-weight: 500; }
.seg button.on { background: var(--grad-soft); border-color: var(--v); color: var(--ink); box-shadow: inset 0 0 0 1px var(--v); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper input { text-align: center; width: 80px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 16px; border-radius: 10px; color: var(--ink-2); font-weight: 600; white-space: nowrap; display: flex; gap: 7px; align-items: center; }
.tabs a.on { background: var(--surface-3); color: var(--ink); }

/* ── modal / drawer ── */
.ov { position: fixed; inset: 0; z-index: 100; background: rgba(4, 4, 10, .6); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal h2 { margin: 0 0 18px; font: 600 20px var(--display); }
.modal .acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(460px, 100%); background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slide .3s cubic-bezier(.2, .9, .3, 1); }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-h h3 { margin: 0; flex: 1; font: 600 16px var(--display); }
.drawer-b { flex: 1; overflow: auto; padding: 20px; }
.drawer-f { padding: 14px 16px; border-top: 1px solid var(--line); }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { padding: 11px 18px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pop .25s; display: flex; gap: 8px; align-items: center; font-weight: 500; }
.toast.err { border-color: rgba(244, 63, 94, .5); }

/* ── kirish ── */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; position: relative; z-index: 1; }
.login-art { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; border-right: 1px solid var(--line); }
.orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; top: 12%; left: 50%; transform: translateX(-50%);
  background: conic-gradient(from 0deg, #8B5CF6, #D946EF, #F59E0B, #8B5CF6); filter: blur(60px); opacity: .55; animation: rot 18s linear infinite; }
.orb-core { position: absolute; width: 300px; height: 300px; border-radius: 50%; top: calc(12% + 110px); left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .5), rgba(139, 92, 246, .2) 40%, transparent 70%); border: 1px solid rgba(255, 255, 255, .15); }
.login-art h1 { position: relative; font: 600 44px/1.08 var(--display); letter-spacing: -.03em; margin: 0 0 14px; max-width: 560px; }
.login-art p { position: relative; color: var(--ink-2); font-size: 16px; max-width: 480px; margin: 0; }
.login-form { display: grid; place-items: center; padding: 40px; }
.login-form form { width: min(380px, 100%); }

/* ── brif sehrgari ── */
.wiz { position: fixed; inset: 0; z-index: 120; background: var(--bg); display: flex; flex-direction: column; animation: fade .25s; }
.wiz-bar { height: 3px; background: var(--surface-3); }
.wiz-bar i { display: block; height: 100%; background: var(--grad); transition: width .4s cubic-bezier(.2, .9, .3, 1); }
.wiz-top { display: flex; align-items: center; gap: 12px; padding: 16px 28px; }
.wiz-top .sp { flex: 1; }
.wiz-body { flex: 1; overflow: auto; display: flex; justify-content: center; padding: 6vh 24px 40px; }
.wiz-q { width: min(760px, 100%); animation: qin .35s cubic-bezier(.2, .9, .3, 1); }
@keyframes qin { from { opacity: 0; transform: translateY(18px); } }
.wiz-q .n { display: flex; align-items: center; gap: 10px; color: var(--v-2); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.wiz-q h2 { font: 600 clamp(22px, 3.2vw, 32px)/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 22px; }
.wiz-q textarea, .wiz-q input.big {
  width: 100%; border: 0; border-bottom: 2px solid var(--line-2); background: transparent; outline: 0; font-size: 20px; line-height: 1.5;
  padding: 8px 0 12px; resize: none; transition: border-color .2s; min-height: 50px;
}
.wiz-q textarea:focus, .wiz-q input.big:focus { border-color: var(--v); }
.wiz-q .hint { display: flex; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--grad-soft); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.wiz-q .ex { margin-top: 14px; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.wiz-q .ex:hover { color: var(--ink-2); }
.wiz-q .ex b { color: var(--ink-2); font-weight: 500; }
.wiz-foot { display: flex; align-items: center; gap: 12px; padding: 16px 28px 24px; justify-content: space-between; }
.kbd { font-size: 12.5px; color: var(--ink-3); }
.kbd kbd { font: 600 11px var(--font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface); }
.wiz-side { position: fixed; left: 28px; top: 110px; display: flex; flex-direction: column; gap: 4px; }
.wiz-side a { font-size: 13px; color: var(--ink-3); padding: 4px 10px; border-left: 2px solid var(--line-2); cursor: pointer; }
.wiz-side a.on { color: var(--ink); border-color: var(--v); }
.wiz-side a.done { color: var(--ink-2); }

.qa { padding: 16px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "q b" "a b"; gap: 6px 16px; align-items: start; }
.qa .q { grid-area: q; color: var(--ink-3); font-size: 13.5px; font-weight: 500; line-height: 1.5; }
.qa .a { grid-area: a; white-space: pre-wrap; font-size: 15.5px; line-height: 1.65; }
.qa > .btn { grid-area: b; }
.brif-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.qa .a.none { color: var(--ink-3); font-style: italic; }
.sugg { border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; background: var(--surface-2); }
.sugg + .sugg { margin-top: 12px; }
.sugg .m { color: #FBBF24; font-size: 13px; display: flex; gap: 8px; margin: 6px 0 10px; }
:root[data-theme="light"] .sugg .m { color: #B45309; }
.sugg textarea { width: 100%; min-height: 90px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 10px 12px; outline: 0; }
.sugg .acts { display: flex; gap: 8px; margin-top: 10px; }
.sugg.qabul { opacity: .55; border-color: rgba(16, 185, 129, .4); }
.sugg.rad { opacity: .4; }

/* ── ish (generatsiya) ko'rinishi ── */
.ish-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.ish-head .t { flex: 1 1 620px; min-width: 0; }
.ish-head .acts { align-self: flex-end; }
.ish-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.brain {
  position: relative; border-radius: 20px; padding: 20px 22px; margin-bottom: 18px; background: var(--surface); overflow: hidden;
}
.brain::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ang, 0deg), #8B5CF6, #D946EF, #F59E0B, #8B5CF6);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ang 3s linear infinite;
}
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes ang { to { --ang: 360deg; } }
.brain-h { display: flex; align-items: center; gap: 12px; }
.brain-h .pulse { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; animation: breathe 1.8s ease-in-out infinite; }
.brain-h .pulse svg { stroke: #fff; }
@keyframes breathe { 50% { transform: scale(1.08); box-shadow: 0 0 30px rgba(217, 70, 239, .6); } }
.brain-h b { font: 600 15px var(--display); }
.brain-h .sp { flex: 1; }
.fikr { margin-top: 12px; max-height: 120px; overflow: hidden; color: var(--ink-2); font-size: 13px; line-height: 1.6; white-space: pre-wrap;
  mask-image: linear-gradient(transparent, #000 40%); }
.ticker { margin-top: 10px; font: 12px/1.5 ui-monospace, "SF Mono", monospace; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plan-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; margin-bottom: 18px; }
.plan-card:has(> :only-child) { grid-template-columns: 1fr; }
.plan-card .big-idea { font-size: 16px; line-height: 1.6; }
.plan-card .big-idea::first-line { font-weight: 600; }
.phases { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fmt-bar { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.fmt-bar button { display: inline-flex; gap: 6px; align-items: center; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.fmt-bar button.on { color: var(--ink); border-color: var(--v); background: var(--grad-soft); }
.fmt-bar button svg { width: 14px; height: 14px; }
.ws { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 24px; align-items: start; }
.tl { display: flex; flex-direction: column; gap: 14px; }
.blk { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; animation: qin .45s cubic-bezier(.2, .9, .3, 1); }
.blk-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: relative; }
.blk-h::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ph, var(--v)); }
.blk-h .day { font: 600 15px var(--display); }
.blk-h .goal { color: var(--ink-2); font-size: 13px; }
.blk-h .sp { flex: 1; }
.els { display: flex; flex-direction: column; padding: 6px; }
.el { display: grid; grid-template-columns: 52px 36px 1fr; gap: 12px; align-items: start; padding: 14px 14px; border-radius: 12px; cursor: pointer; transition: background .15s; animation: elin .4s cubic-bezier(.2, .9, .3, 1); position: relative; }
@keyframes elin { from { opacity: 0; transform: translateX(-8px); } }
.el:hover { background: var(--surface-2); }
.el.on { background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .45); }
.el.flash { animation: flash 1.6s; }
@keyframes flash { 0%, 40% { background: rgba(245, 158, 11, .18); } }
.el .tm { font: 600 13px ui-monospace, "SF Mono", monospace; color: var(--ink-2); padding-top: 8px; }
.el .fi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); }
.el .fi svg { width: 16px; height: 16px; }
.el .bd { min-width: 0; }
.el .bd b { font-weight: 600; font-size: 15px; line-height: 1.4; display: block; }
.el .bd p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.el .bd .vz { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; }
.detail { position: sticky; top: 84px; max-height: calc(100vh - 100px); display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.detail-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.detail-h .tabs { padding: 3px; border-radius: 11px; }
.detail-h .tabs a { padding: 6px 12px; font-size: 13px; }
.detail-h .sp { flex: 1; }
.detail-b { overflow: auto; padding: 20px; flex: 1; }
.detail-f { padding: 12px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.kv { margin-bottom: 18px; }
.kv .k { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
.kv .v { white-space: pre-wrap; font-size: 15px; line-height: 1.7; }
.why { padding: 14px 16px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.prompter { padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px dashed var(--line-2); white-space: pre-wrap; font-size: 15px; line-height: 1.75; }

/* ── Telegram maket ── */
.phone { border-radius: 26px; background: var(--tg-bg); overflow: hidden; border: 1px solid var(--line-2); position: relative; }
.phone::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: radial-gradient(circle at 20% 30%, #fff 1.2px, transparent 1.6px), radial-gradient(circle at 70% 60%, #fff 1px, transparent 1.4px);
  background-size: 38px 38px, 26px 26px; }
.tg-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: color-mix(in srgb, var(--tg-bubble) 92%, transparent); color: var(--tg-ink); position: relative; z-index: 1; }
.tg-top .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; }
.tg-top b { display: block; font-size: 14px; line-height: 1.2; }
.tg-top small { font-size: 12px; opacity: .6; }
.tg-feed { padding: 14px 10px 16px; display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; min-height: 300px; justify-content: flex-end; }
.tg-date { align-self: center; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: rgba(0, 0, 0, .25); color: #fff; margin-bottom: 6px; }
.bub { max-width: 92%; background: var(--tg-bubble); color: var(--tg-ink); border-radius: 14px 14px 14px 4px; overflow: hidden; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.bub .tx { padding: 8px 11px 4px; white-space: pre-wrap; word-wrap: break-word; }
.bub .tx a { color: var(--tg-link); }
.bub .meta { display: flex; justify-content: flex-end; gap: 6px; font-size: 11px; opacity: .55; padding: 0 10px 6px; align-items: center; }
.bub .meta svg { width: 12px; height: 12px; }
.media { aspect-ratio: 4/3; display: grid; place-items: center; text-align: center; padding: 18px; position: relative; color: #fff; font-size: 12.5px;
  background: linear-gradient(135deg, #5B3FD6, #B8339A 60%, #E08A1E); }
.media.v { aspect-ratio: 16/9; }
.media .pl { width: 50px; height: 50px; border-radius: 50%; background: rgba(0, 0, 0, .35); display: grid; place-items: center; margin: 0 auto 8px; }
.media .pl svg { stroke: #fff; width: 22px; height: 22px; }
.media .cap { max-width: 90%; opacity: .92; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.alb { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.alb .media { aspect-ratio: 1; padding: 8px; }
.round { width: 230px; height: 230px; border-radius: 50%; position: relative; display: grid; place-items: center; text-align: center; color: #fff; padding: 34px;
  background: radial-gradient(circle at 30% 25%, #7C5CFF, #B8339A 55%, #E08A1E); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); font-size: 12px; }
.round::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; border-right-color: rgba(255, 255, 255, .5); animation: rot 4s linear infinite; }
.round .pl { width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .3); display: grid; place-items: center; margin: 0 auto 8px; }
.round .pl svg { stroke: #fff; }
.voice { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.voice .pb { width: 40px; height: 40px; border-radius: 50%; background: var(--tg-link); display: grid; place-items: center; flex: none; }
.voice .pb svg { stroke: #fff; fill: #fff; width: 16px; height: 16px; }
.wave { display: flex; align-items: center; gap: 2px; height: 26px; flex: 1; }
.wave i { width: 3px; border-radius: 2px; background: var(--tg-link); opacity: .75; }
.poll { padding: 10px 12px; }
.poll .pq { font-weight: 600; margin-bottom: 2px; }
.poll small { opacity: .6; font-size: 12px; }
.poll .po { display: flex; align-items: center; gap: 10px; margin-top: 9px; font-size: 14px; }
.poll .po i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--tg-link); opacity: .7; flex: none; }
.kb { display: grid; gap: 4px; margin-top: 4px; max-width: 92%; }
.kb span { text-align: center; padding: 9px; border-radius: 10px; background: color-mix(in srgb, var(--tg-bubble) 70%, rgba(0, 0, 0, .2)); color: var(--tg-ink); font-size: 13.5px; font-weight: 500; }
.story { width: 260px; aspect-ratio: 9/16; border-radius: 18px; margin: 0 auto; position: relative; overflow: hidden auto; color: #fff; display: flex; flex-direction: column; justify-content: safe center; padding: 34px 20px 40px; text-align: center;
  background: linear-gradient(170deg, #1E1B4B, #6D28D9 45%, #DB2777 80%, #F59E0B); font-weight: 600; }
.story .bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 3px; }
.story .bars i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, .4); }
.story .bars i.on { background: #fff; }
.story .st-tx { font-size: 17px; font-weight: 600; line-height: 1.4; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); white-space: pre-wrap; overflow-wrap: anywhere; }
.story .st-tx.long { font-size: 14px; font-weight: 500; line-height: 1.5; }
.story .stick { margin-top: 16px; background: #fff; color: #111; border-radius: 12px; padding: 10px; font-size: 12.5px; text-align: left; }
.story .stick div { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: #F1F1F4; font-weight: 500; }
.slides { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.slide { flex: 0 0 200px; aspect-ratio: 4/5; border-radius: 14px; padding: 16px; scroll-snap-align: start; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: linear-gradient(160deg, #312E81, #7C3AED 60%, #C026D3); font-size: 13px; }
.slide:nth-child(3n+2) { background: linear-gradient(160deg, #4C1D95, #DB2777); }
.slide:nth-child(3n) { background: linear-gradient(160deg, #1E3A8A, #7C3AED 70%, #F59E0B); }
.slide .sn { font: 600 11px var(--display); opacity: .7; }
.slide .sv { font-size: 12px; opacity: .75; border-top: 1px solid rgba(255, 255, 255, .25); padding-top: 8px; }
.slide b { font-size: 15px; line-height: 1.3; white-space: pre-wrap; }

/* ── Miya ── */
.chart { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding-top: 10px; position: relative; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; position: relative; cursor: default; }
.chart .bar { width: 100%; max-width: 30px; border-radius: 4px 4px 0 0; background: var(--v); opacity: .85; transition: opacity .15s, background .15s; min-height: 2px; }
.chart .col:hover .bar { opacity: 1; background: var(--v-2); }
.chart .lb { font-size: 10.5px; color: var(--ink-3); white-space: nowrap; }
.chart::after { content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 1px; background: var(--line-2); }
.tip { position: fixed; z-index: 300; pointer-events: none; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; font-size: 13px; box-shadow: var(--shadow); max-width: 280px; line-height: 1.5; }
.tip b { display: block; margin-bottom: 3px; font-size: 13px; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hb { display: grid; grid-template-columns: 120px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; }
.hb .tr { height: 10px; border-radius: 0 4px 4px 0; background: var(--surface-3); overflow: hidden; }
.hb .tr i { display: block; height: 100%; background: var(--v); border-radius: 0 4px 4px 0; }
.hb .n { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hb .l { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-bottom: 1px solid var(--line-2); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--surface-2); }
.md { line-height: 1.75; font-size: 15.5px; max-width: 78ch; }
.md p, .md li { margin: .55em 0; }
.md ul, .md ol { padding-left: 1.3em; }
.md hr { border: 0; border-top: 1px solid var(--line-2); margin: 2em 0; }
.md strong { color: var(--ink); }
.md h1, .md h2, .md h3 { font-family: var(--display); letter-spacing: 0; line-height: 1.35; margin: 1.8em 0 .6em; }
.md > :first-child { margin-top: 0; }
.md h1 { font-size: 23px; } .md h2 { font-size: 19px; } .md h3 { font-size: 16px; }
.md table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.55; }
.md td, .md th { border: 1px solid var(--line-2); padding: 9px 12px; vertical-align: top; }
.md code { background: var(--surface-3); padding: 1px 5px; border-radius: 5px; }
.md blockquote { margin: 0; padding: 4px 16px; border-left: 3px solid var(--v); color: var(--ink-2); }
.md a { color: var(--v-2); text-decoration: underline; }
.day-row { display: grid; grid-template-columns: 70px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.day-row .d { font: 600 14px var(--display); color: var(--v-2); }
.day-row ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.chat-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; margin-bottom: 10px; white-space: pre-wrap; font-size: 13.5px; }
.chat-msg.me { margin-left: auto; background: var(--grad-soft); border: 1px solid rgba(139, 92, 246, .3); }
.chat-msg.ai { background: var(--surface-2); border: 1px solid var(--line); }
.chat-in { display: flex; gap: 8px; align-items: flex-end; }
.chat-in textarea { flex: 1; min-height: 44px; max-height: 160px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); outline: 0; resize: none; }
.sugg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sugg-chips button { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.sugg-chips button:hover { color: var(--ink); border-color: var(--v); }
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.loading-big { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 60px 20px; color: var(--ink-2); text-align: center; }
.loading-big .pulse { width: 54px; height: 54px; border-radius: 16px; background: var(--grad); display: grid; place-items: center; animation: breathe 1.8s ease-in-out infinite; }
.loading-big .pulse svg { stroke: #fff; width: 26px; height: 26px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); animation: pop .18s; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 9px; border: 0; background: none; cursor: pointer; text-align: left; font-weight: 500; }
.menu a:hover, .menu button:hover { background: var(--surface-3); }
.rel { position: relative; }
.print { display: none; }


/* ── Haftalik kalendar ko'rinishi (kalendar modullari) + tasdiqlash ── */
.kor-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.kor-bar:empty { display: none; }
.kor-bar .seg { display: inline-flex; gap: 4px; }
.kor-bar .seg button { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 7px 12px; }
.kor-bar .seg button.on { border-color: var(--v); background: var(--grad-soft); color: var(--ink); }
.kor-bar .seg svg, .kor-bar .chip svg { width: 14px; height: 14px; }
.tl.kal { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(236px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.kd { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; min-width: 0; display: flex; flex-direction: column; animation: qin .45s cubic-bezier(.2, .9, .3, 1); }
.kd-h { padding: 12px 14px 12px 16px; border-bottom: 1px solid var(--line); position: relative; }
.kd-h::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ph, var(--v)); }
.kd-h .day { font: 600 14px var(--display); }
.kd-h .goal { color: var(--ink-2); font-size: 12.5px; line-height: 1.45; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kd-b { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.kc { border: 1px solid var(--line); border-radius: 12px; padding: 10px 11px; cursor: pointer; background: var(--bg-2); transition: border-color .15s, background .15s; min-width: 0; }
.kc:hover { border-color: var(--line-2); }
.kc.on { background: var(--grad-soft); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .45); }
.kc.ok { border-color: color-mix(in srgb, var(--g) 55%, transparent); }
.kc.flash { animation: flash 1.6s; }
.kc-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--c); }
.kc-h .fi { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); }
.kc-h .fi svg { width: 13px; height: 13px; }
.kc b { display: block; font-size: 13.5px; line-height: 1.4; margin-top: 7px; font-weight: 600; }
.kc .vz { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }
.kc p { margin: 5px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kc-ok { margin-left: auto; color: var(--g); display: inline-flex; }
.kc-ok svg { width: 15px; height: 15px; }
.el .bd b .kc-ok { margin-left: 4px; vertical-align: -2px; }
.btn.ok { color: var(--g); border-color: color-mix(in srgb, var(--g) 55%, transparent); }
@media (min-width: 1500px) {
  .ws.kal-mode { grid-template-columns: minmax(0, 1fr); }
  .ws.kal-mode .detail { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(520px, calc(100vw - 24px)); max-height: none; z-index: 80;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px var(--line-2); animation: chap .28s cubic-bezier(.2, .9, .3, 1); }
  .ws.kal-mode .detail.closed { display: none; }
  .ws.kal-mode .detail .close-m { display: inline-flex; }
}
@media (max-width: 760px) {
  .tl.kal { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
}

/* ── moslashuv ── */
/* keng ekranda preview yonida; laptopda — o'ngdan chiqadigan panel; telefonda — pastdan */
@media (max-width: 1499px) {
  .ws { grid-template-columns: 1fr; }
  .detail { position: fixed; top: 12px; right: 12px; bottom: 12px; left: auto; width: min(520px, calc(100vw - 24px)); max-height: none; z-index: 80;
    border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px var(--line-2); animation: chap .28s cubic-bezier(.2, .9, .3, 1); }
  .detail.closed { display: none; }
  .brif-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .detail { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 84vh; border-radius: 22px 22px 0 0; animation: up .3s cubic-bezier(.2, .9, .3, 1); }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes chap { from { transform: translateX(40px); opacity: 0; } }
@media (min-width: 1500px) { .detail .close-m { display: none; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 110; transform: translateX(-100%); transition: transform .25s; background: var(--bg-2); }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .top .burger { display: inline-flex; }
  .top { padding: 12px 16px; }
  .page { padding: 20px 16px 80px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 300px; padding: 30px 24px; border-right: 0; }
  .login-art h1 { font-size: 30px; }
  .orb { width: 300px; height: 300px; top: -40px; }
  .orb-core { display: none; }
  .hero { padding: 24px 20px; }
  .h1 { font-size: 24px; }
  .wiz-side { display: none; }
  .proj-pick { max-width: 150px; }
  .proj-pick select { max-width: 110px; }
  .hb { grid-template-columns: 90px 1fr 40px; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: 1fr 1fr; }
  .stat { min-width: 0; flex: 1 1 40%; }
  .el { grid-template-columns: 34px 1fr; }
  .el .tm { display: none; }
  .crumbs { display: none; }
}

@media print {
  body { background: #fff; color: #000; }
  .shell, .aurora, .toasts, .ov, .drawer { display: none !important; }
  .print { display: block; font: 11pt/1.5 Arial, sans-serif; }
  .print h1 { font-size: 20pt; } .print h2 { font-size: 14pt; margin-top: 18pt; border-bottom: 1px solid #ccc; }
  .print h3 { font-size: 11.5pt; margin: 12pt 0 4pt; } .print .k { font-weight: 700; color: #6B4EE6; }
  .print p { white-space: pre-wrap; margin: 2pt 0 6pt; }
}

/* Reels ishlab chiqarish paketi: panelga sig'adigan kartalar */
.pk { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; background: var(--bg-2); }
.pk-h { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-bottom: 6px; }
.pk-t { font: 600 12.5px ui-monospace, "SF Mono", monospace; color: var(--ink-2); background: var(--surface-3); padding: 2px 8px; border-radius: 6px; }
.pk-q { font-size: 14px; line-height: 1.55; margin-top: 3px; }
.pk-q span { color: var(--ink-3); font-size: 12.5px; font-weight: 600; margin-right: 6px; }
.tl-m { border-left: 2px solid var(--line-2); margin-left: 6px; padding-left: 14px; }
.tm-r { position: relative; padding: 4px 0 12px; }
.tm-r::before { content: ""; position: absolute; left: -20px; top: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--v); box-shadow: 0 0 0 3px var(--surface); }
.tm-n { font-size: 14.5px; line-height: 1.55; }
.tm-g { font-size: 13px; color: var(--ink-3); margin-top: 2px; font-style: italic; }
.pk-h .chip { font-size: 12.5px; padding: 2px 9px; }

/* ── Yaratish oqimi (Cowork uslubi) ── */
.cw { max-width: 760px; margin: 12px auto 60px; }
.cw-h { display: flex; gap: 12px; align-items: center; margin-bottom: 22px; }
.cw-h b { display: block; font-size: 17px; }
.cw-tarix { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cw-t { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14.5px; }
.cw-tq { color: var(--ink-3); min-width: 150px; }
.cw-ta { font-weight: 600; flex: 1; }
.cw-undo { border: 0; background: none; color: var(--ink-3); cursor: pointer; padding: 4px; border-radius: 8px; display: grid; place-items: center; }
.cw-undo:hover { background: var(--surface-3); color: var(--ink); }
.cw-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px; padding: 26px 26px 18px; box-shadow: var(--shadow); animation: elin .3s cubic-bezier(.2, .9, .3, 1); }
.cw-q { font-size: 21px; font-weight: 650; line-height: 1.35; letter-spacing: -.005em; }
.cw-iz { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.cw-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.cw-o { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; font: inherit; color: inherit; }
.cw-o:hover { border-color: var(--v); background: var(--surface-2); }
.cw-n { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-3); color: var(--ink-2); }
.cw-o:hover .cw-n { background: var(--v); color: #fff; }
.cw-ot { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cw-ot b { font-size: 15.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; }
.cw-ot b svg { width: 17px; height: 17px; color: var(--v); }
.cw-ot small { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
.cw-in { width: 100%; margin-top: 12px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); font: inherit; font-size: 15.5px; color: var(--ink); resize: vertical; }
.cw-in:focus { outline: none; border-color: var(--v); box-shadow: 0 0 0 3px color-mix(in srgb, var(--v) 18%, transparent); }
.cw-f { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.cw-f .sp { flex: 1; }
.cw-kbd { font-size: 12.5px; margin-top: 12px; text-align: right; }
.cw-kbd kbd { font: 600 11.5px var(--font); padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--surface-2); }
.cw-sum { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cw-sr { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.cw-sr:first-child { border-top: 0; }
.cw-sr span { color: var(--ink-3); }
.cw-sr b { text-align: right; }
.cw-ready { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cw-ready a { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 13px; background: color-mix(in srgb, var(--a) 12%, transparent); color: var(--ink-2); }
.cw-ready a.ok { background: color-mix(in srgb, var(--g) 12%, transparent); }
.cw-ready a svg { width: 14px; height: 14px; }
.nav .nav-yarat { background: var(--grad); color: #fff !important; margin-bottom: 8px; font-weight: 600; }
.nav .nav-yarat svg { color: #fff; }
.pg-h { display: flex; align-items: center; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
@media (max-width: 600px) { .cw-card { padding: 20px 16px 14px; } .cw-tq { min-width: 0; } .cw-q { font-size: 19px; } }
.nav a.nav-yarat.on, .nav a.nav-yarat:hover { background: var(--grad); color: #fff !important; box-shadow: var(--btn-shadow, none); }

/* ── Brif: umumiy ko'rinish (bitta keng ustun, joyida tahrir) ── */
.bf { max-width: 880px; margin: 0 auto; }
.bf-h { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.bf-h .t { flex: 1 1 220px; } .bf-h h2 { margin: 0; font-size: 20px; }
.bf-h .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.bf-cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--v); color: #fff; font-size: 12px; font-weight: 700; }
.bf-s { margin-top: 26px; }
.bf-s h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--v); margin: 0 0 8px 4px; }
.bf-q { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
.bf-ql { font-size: 14px; color: var(--ink-3); font-weight: 500; line-height: 1.5; }
.bf-m { display: inline-block; font-size: 11px; font-weight: 700; color: var(--v); background: color-mix(in srgb, var(--v) 12%, transparent); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.bf-a { margin-top: 6px; font-size: 16px; line-height: 1.65; white-space: pre-wrap; cursor: text; border-radius: 10px; padding: 6px 8px; margin-left: -8px; margin-right: -8px; transition: background .15s; }
.bf-a:hover { background: var(--surface-2); }
.bf-a.none { color: var(--ink-3); font-style: italic; font-size: 15px; }
.bf-a.ed { cursor: default; background: none; }
.bf-a textarea { width: 100%; font: inherit; font-size: 15.5px; line-height: 1.6; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--v); background: var(--surface-2); color: var(--ink); resize: vertical; }
.bf-a textarea:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--v) 18%, transparent); }
.bf-ea { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

/* ── Brif ustasi: Google Forms uslubi ── */
:root[data-theme="light"] .wiz { background: var(--bg); }
.wiz-body { display: flex; justify-content: center; align-items: flex-start; padding: 5vh 20px 40px; overflow: auto; flex: 1; }
.wiz-q { width: 100%; max-width: 720px; background: var(--surface); border: 1px solid var(--line-2); border-top: 6px solid var(--v); border-radius: 18px; padding: 28px 28px 20px; box-shadow: var(--shadow); }
.wiz-q .n { display: flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--v); margin-bottom: 10px; }
.wiz-q h2 { font: 650 22px/1.4 var(--font); letter-spacing: -.005em; margin: 0 0 18px; }
.wiz-q input.big, .wiz-q textarea { width: 100%; font: inherit; font-size: 16.5px; line-height: 1.6; border: 0; border-bottom: 2px solid var(--line-2); border-radius: 0; background: transparent; padding: 10px 2px; color: var(--ink); resize: none; }
.wiz-q input.big:focus, .wiz-q textarea:focus { outline: none; border-bottom-color: var(--v); }
.wiz-foot { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.wiz-foot .sp { flex: 1; }
.wiz-side { display: none; }

.wiz-q .wiz-foot { padding: 0; border: 0; background: none; }
/* ── Bosh sahifa ── */
.hm { max-width: 1040px; margin: 0 auto; }
.hm-t { font: 650 30px/1.25 var(--font); letter-spacing: -.01em; margin: 8px 0 6px; }
.hm-s { color: var(--ink-2); font-size: 16px; margin: 0 0 22px; }
.hm-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.hm-c { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s, transform .15s, box-shadow .15s; }
.hm-c:hover { border-color: var(--v); transform: translateY(-2px); box-shadow: var(--shadow); }
.hm-c .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--v) 12%, transparent); color: var(--v); margin-bottom: 6px; }
.hm-c b { font-size: 16px; } .hm-c small { color: var(--ink-3); font-size: 13.5px; line-height: 1.45; }
/* ── Loyiha tayyorgarligi ── */
.lt { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.lt-r { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color .15s; }
.lt-r:hover { border-color: var(--v); }
.lt-i { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; }
.lt-i.ok { background: color-mix(in srgb, var(--g) 14%, transparent); color: var(--g); }
.lt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lt-t b { font-size: 15.5px; } .lt-t small { color: var(--ink-3); font-size: 13.5px; }
.lt-h { font-size: 13px; font-weight: 600; color: var(--a); white-space: nowrap; } .lt-h.ok { color: var(--g); }
@media (min-width: 1180px) { .hm-g { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* Namunalar — virusli postlar lentasi */
.nm-f { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.nm-f .inp { flex: 1 1 180px; max-width: 280px; }
.nm-f .seg { flex-basis: 100%; }
.nm-f .seg button { padding: 6px 12px; font-size: 13.5px; }
.nm-g { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); align-items: start; }
.nm-c { display: flex; flex-direction: column; gap: 10px; }
.nm-h { display: flex; gap: 10px; align-items: center; }
.nm-h .t { min-width: 0; flex: 1; }
.nm-h .t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nm-h .t small { color: var(--ink-3); font-size: 13px; }
.nm-x { flex: none; font: 600 15px var(--display); padding: 6px 10px; border-radius: 10px; background: var(--surface-3); color: var(--ink-2); }
.nm-x.hot { background: var(--grad-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--v); }
.nm-m { display: flex; flex-wrap: wrap; gap: 6px; }
.nm-m .chip { font-size: 12.5px; }
.nm-m .chip svg { width: 14px; height: 14px; }
.nm-tx { font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow: auto; }
.nm-a { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.nm-a .sp { flex: 1; }
.nm-p { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 22px 0 8px; }

/* Hook A/B */
.hk { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.hk.joriy { border-top: 0; opacity: .85; }
.hk-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hk-t b { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.hk-b { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.hk-b .chip { font-size: 11.5px; padding: 2px 8px; }
.hk-s { display: grid; grid-template-columns: auto auto; gap: 0 6px; align-items: baseline; flex: none; }
.hk-s span { font: 600 18px var(--display); text-align: right; }
.hk-s small { color: var(--ink-3); font-size: 12px; }
@media (max-width: 560px) { .hk { flex-wrap: wrap; } .hk .btn { width: 100%; } }

/* Qoidalarni tekshirish */
.qtk { padding: 12px 0; border-top: 1px solid var(--line); margin-top: 12px; }
.qtk .why { margin-top: 6px; }

/* Loyiha kalendari (oylik, faqat ko'rish) */
.kl { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.kl-h { font-size: 12px; color: var(--ink-3); text-align: center; padding: 4px 0; font-weight: 600; }
.kl-d { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 3px; background: var(--bg-2); min-width: 0; }
.kl-d.bo { background: transparent; border-color: transparent; }
.kl-d.bugun { border-color: var(--v); box-shadow: inset 0 0 0 1px var(--v); }
.kl-n { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.kl-e { display: block; font-size: 12px; line-height: 1.3; padding: 2px 6px; border-radius: 6px; color: var(--ink); text-decoration: none;
  background: color-mix(in srgb, var(--c) 16%, transparent); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kl-e:hover { background: color-mix(in srgb, var(--c) 28%, transparent); }
.kl-e b { opacity: .6; font-weight: 600; }
.kl-more { font-size: 11.5px; color: var(--ink-3); padding-left: 4px; }
@media (max-width: 600px) {
  .kl { gap: 2px; }
  .kl-d { min-height: 58px; padding: 3px; border-radius: 6px; }
  .kl-e { font-size: 0; padding: 0; height: 6px; border-left: 0; background: var(--c); }
  .kl-e b { display: none; }
}
