/* AI bilim testi: dars.nuvi.uz bilan bir xil binafsha shisha dizayn (nuvi.css tokenlari) */
.frame { min-height: 100dvh; display: flex; flex-direction: column; max-width: 560px; }
@media (min-width: 900px) { .frame { min-height: 0; } }
.q-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 38% at 50% 100%, rgba(167,123,255,.55), transparent 70%),
    radial-gradient(90% 55% at 50% 108%, rgba(109,40,217,.65), transparent 75%),
    repeating-linear-gradient(90deg, rgba(10,8,17,0) 0, rgba(10,8,17,.35) 14px, rgba(10,8,17,0) 30px, rgba(10,8,17,0) 46px);
  -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 100%); mask-image: linear-gradient(180deg, transparent 35%, #000 100%); }
.q-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 0; min-height: 60px; }
.q-step { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.q-progress { height: 4px; margin: 12px 20px 0; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.q-progress i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--acc-2), var(--acc)); transition: width .5s var(--ease); }
.q-main { flex: 1; padding: 28px 20px 24px; display: flex; flex-direction: column; }
.stage { display: none; flex-direction: column; gap: 14px; animation: stageIn .4s var(--ease); }
.stage.active { display: flex; }
@keyframes stageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stage { animation: none; } .q-progress i { transition: none; } }
.stage > .pill { align-self: flex-start; }
h1 { font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1.12; text-wrap: balance; }
h2 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.grad { background: linear-gradient(90deg, var(--acc-3), var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 44ch; text-wrap: pretty; }
.q-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
#stage-intro { padding-top: 6vh; }

.prof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 6px; }
.prof { min-height: 104px; border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; text-align: left; font-size: 16px; font-weight: 500;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); border: 1px solid var(--line-2); transition: transform .2s var(--ease), border-color .2s, background .2s; }
.prof .ph { font-size: 26px; color: var(--acc-3); }
.prof:hover { border-color: rgba(167,139,250,.55); }
.prof:active { transform: scale(.98); }

.options { display: grid; gap: 10px; margin-top: 8px; }
.option { min-height: 56px; width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px; border-radius: 16px; font-size: 16px; line-height: 1.4;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); transition: border-color .2s, background .2s, transform .15s var(--ease); }
.option:hover { border-color: rgba(167,139,250,.5); }
.option:active { transform: scale(.985); }
.option .ltr { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--acc-3); background: rgba(139,92,246,.16); }
.option[aria-pressed="true"] { border-color: var(--acc-2); background: rgba(139,92,246,.18); box-shadow: 0 0 0 3px rgba(139,92,246,.2); }
.option[aria-pressed="true"] .ltr { color: #fff; background: linear-gradient(140deg, var(--acc-2), var(--acc-deep)); }
.q-back { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; margin-top: 4px; font-size: 14px; color: var(--muted); }
.q-back:hover { color: var(--text); }

.field legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
fieldset.field { border: 0; min-width: 0; }
textarea { width: 100%; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 16px; padding: 14px 16px; resize: vertical; min-height: 96px; line-height: 1.45; }
textarea:focus { outline: none; border-color: var(--acc-2); box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
::placeholder { color: var(--dim); opacity: 1; }
.sugg { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sugg button, .seg button { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { min-height: 48px; border-radius: 14px; }
.sugg button:hover, .seg button:hover { border-color: rgba(167,139,250,.5); }
.seg button[aria-checked="true"] { border-color: var(--acc-2); background: rgba(139,92,246,.2); color: #fff; box-shadow: 0 0 0 3px rgba(139,92,246,.18); }

.res-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 36px; color: #fff; background: linear-gradient(140deg, var(--acc-2), var(--acc-deep)); box-shadow: 0 16px 40px -14px rgba(124,58,237,.9); }
.res-ic.ok { background: linear-gradient(140deg, #4ade80, #16a34a); box-shadow: 0 16px 40px -14px rgba(34,197,94,.7); }
#stage-result .chip, #stage-result .res-ic { align-self: flex-start; }
.consult { padding: 20px; display: grid; gap: 10px; }
.consult b { font-size: 18px; font-weight: 600; }
.consult p { color: var(--muted); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
#lessonsBtn.btn-ghost { margin-top: 2px; }
.q-foot { text-align: center; font-size: 12px; color: var(--dim); padding: 8px 20px calc(18px + var(--safe-b)); }
