/* Informatika amaliy darslari — saytning ranglari (`main.css` o‘zgaruvchilari)
   bilan; yorug‘ va qorong‘i rejim avtomatik. */

.am { min-height: 100vh; background: var(--bg-alt); color: var(--text); font-family: var(--font); }

/* ------------------------------------------------------------- shapka */
.am-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px;
  padding: 10px 18px; background: var(--surface); border-bottom: 1px solid var(--border);
}
.am-top__back, .am-icon-btn {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none;
}
.am-top__back:hover, .am-icon-btn:hover { border-color: var(--border-firm); color: var(--accent); }
.am-top__title { min-width: 0; flex: 1; }
.am-top__eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-ink); }
[data-bs-theme="dark"] .am-top__eyebrow { color: var(--accent-on-dark); }
.am-top h1 { font-size: 1rem; font-weight: 800; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.am-top__timer {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface-alt); border: 1px solid var(--border); font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.am-top__timer span { font-weight: 800; }
.am-top__timer small { color: var(--text-muted); font-weight: 600; }
.am-top__timer small.is-over { color: var(--warn-500); }
.am-lang { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.am-lang a { padding: 7px 10px; font-size: .78rem; font-weight: 800; color: var(--text-muted); text-decoration: none; }
.am-lang a.is-on { background: var(--navy-700); color: #fff; }
.am-progress { height: 4px; background: var(--border); position: sticky; top: 59px; z-index: 19; }
.am-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #ffb08c); transition: width .3s; }

/* ------------------------------------------------------------- tuzilma */
.am-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; max-width: 1240px; margin: 0 auto; padding: 22px 18px 60px; }
.am-steps { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 84px; align-self: start; }
.am-step {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-align: left;
  border: 1px solid transparent; background: transparent; color: var(--text-muted);
}
.am-step:hover { background: var(--surface); }
.am-step.is-on { background: var(--surface); border-color: var(--border-firm); color: var(--text); box-shadow: var(--shadow-sm); }
.am-step__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-alt); flex-shrink: 0; }
.am-step.is-on .am-step__icon { background: var(--accent); color: #fff; }
.am-step__text { display: grid; line-height: 1.2; flex: 1; }
.am-step__text b { font-size: .9rem; }
.am-step__text small { font-size: .74rem; color: var(--text-faint); }
.am-step__done { color: var(--ok-500); opacity: 0; }
.am-step.is-seen .am-step__done { opacity: 1; }

.am-main { min-width: 0; }
.am-section { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.am-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
[data-bs-theme="dark"] .am-kicker { color: var(--accent-on-dark); }
.am-h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.am-h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 12px; display: flex; gap: 8px; align-items: center; }
.am-h3 i { color: var(--accent); }
.am-lead { font-size: 1.05rem; line-height: 1.65; color: var(--text); }
.am-muted { color: var(--text-muted); }
.am-help { font-size: .82rem; color: var(--text-muted); margin: 6px 0; }
.am-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; }

.am-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0; }
.am-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.am-card--soft { background: var(--surface-alt); }
.am-card h4 { font-size: 1rem; font-weight: 800; margin: 6px 0 8px; }
.am-card p:last-child { margin-bottom: 0; }
.am-card__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; }
.am-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.am-checks li { padding-left: 26px; position: relative; }
.am-checks li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--ok-500); }
.am-plan { display: flex; flex-wrap: wrap; gap: 8px; }
.am-plan span { padding: 6px 12px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; }

/* ------------------------------------------------------------- nazariya */
.am-block { margin-bottom: 26px; }
.am-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.am-text p, .am-example p { line-height: 1.7; }
.am-text ul, .am-example ul, .am-card ul { padding-left: 1.2rem; }
.am-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.am-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.am-table th, .am-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; text-align: left; }
.am-table thead th { background: var(--surface-alt); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.am-table tbody th { font-weight: 800; white-space: nowrap; }
.am-table tr:last-child > * { border-bottom: 0; }
.am-example { border-left: 4px solid var(--info-500); background: var(--info-bg); border-radius: var(--radius); padding: 16px 18px; }
.am-note { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; }
.am-note i { color: var(--accent); margin-top: 4px; }
.am-note p { margin: 0; }
.am-code { background: #0d1b2a; color: #e6eef5; border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; }
code { color: var(--accent-ink); }
[data-bs-theme="dark"] code { color: var(--accent-on-dark-sm); }

/* ------------------------------------------------------------- topshiriq */
.am-tasks { display: grid; gap: 16px; margin-top: 16px; }
.am-task { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.am-task.is-correct { border-color: var(--ok-500); box-shadow: 0 0 0 3px var(--ok-bg); }
.am-task.is-partial { border-color: var(--warn-500); }
.am-task.is-wrong { border-color: var(--danger-500); }
.am-task__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.am-task__num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--navy-700); color: #fff; font-weight: 800; flex-shrink: 0; }
.am-task__prompt { flex: 1; font-weight: 700; line-height: 1.5; }
.am-task__pts { padding: 3px 10px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); font-size: .78rem; font-weight: 800; white-space: nowrap; }
.am-task__pts::after { content: " ★"; color: #f5b301; }
.am-task__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.am-task__meta { margin-left: auto; font-size: .8rem; color: var(--text-muted); font-weight: 600; }

.am-options { display: grid; gap: 8px; }
.am-option { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.am-option:hover { border-color: var(--border-firm); background: var(--surface-alt); }
.am-option input { margin-top: 4px; accent-color: var(--accent); }
.am-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.am-option.is-wrong { border-color: var(--danger-500); background: var(--danger-bg); }

.am-pool-wrap { margin: 8px 0 12px; }
.am-pool-wrap > small { font-size: .74rem; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .05em; }
.am-pool { min-height: 50px; display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 2px dashed var(--border-firm); border-radius: 12px; }
.am-buckets { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.am-bucket { border: 2px solid var(--border); border-radius: 12px; padding: 10px; min-height: 110px; background: var(--surface-alt); cursor: pointer; }
.am-bucket.is-over, .am-bucket:focus-visible { border-color: var(--accent); outline: none; }
.am-bucket__title { font-weight: 800; font-size: .9rem; margin-bottom: 8px; }
.am-bucket__items { display: flex; flex-wrap: wrap; gap: 6px; }
.am-chip {
  border: 1px solid var(--border-firm); background: var(--surface); color: var(--text); border-radius: 10px;
  padding: 7px 11px; font-size: .86rem; text-align: left; cursor: grab; max-width: 100%;
}
.am-chip.is-picked { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.am-chip.is-wrong { border-color: var(--danger-500); background: var(--danger-bg); }
.am-chip:disabled { cursor: default; opacity: 1; }

.am-matches { display: grid; gap: 8px; }
.am-match { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(160px, 260px); gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.am-match i { color: var(--text-faint); }
.am-match.is-wrong { border-color: var(--danger-500); background: var(--danger-bg); }

.am-order { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: ord; }
.am-order__item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); counter-increment: ord; }
.am-order__item::before { content: counter(ord); width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-alt); font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.am-order__item.is-drag { opacity: .5; }
.am-order__item.is-wrong { border-color: var(--danger-500); background: var(--danger-bg); }
.am-order__grip { color: var(--text-faint); cursor: grab; }
.am-order__text { flex: 1; }
.am-order__btns { display: flex; gap: 4px; }
.am-mini { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.am-mini:disabled { opacity: .4; }

.am-fill { line-height: 2.4; font-size: 1rem; }
.am-blank { width: 150px; border: 0; border-bottom: 2px solid var(--accent); background: var(--surface-alt); padding: 2px 8px; border-radius: 6px 6px 0 0; color: var(--text); margin: 0 4px; }
.am-blank.is-wrong { border-bottom-color: var(--danger-500); background: var(--danger-bg); }
.am-input { max-width: 420px; }
.am-num { display: flex; gap: 8px; align-items: center; }
.am-input--num { max-width: 180px; }

.am-hints { display: grid; gap: 6px; margin-top: 10px; }
.am-hint { padding: 9px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--text); font-size: .9rem; }
.am-hint i { color: var(--warn-500); }
.am-feedback { margin-top: 10px; display: grid; gap: 6px; }
.am-fb { padding: 9px 12px; border-radius: 10px; font-size: .9rem; }
.am-fb--correct { background: var(--ok-bg); color: var(--ok-500); }
.am-fb--partial { background: var(--warn-bg); color: var(--warn-500); }
.am-fb--wrong { background: var(--danger-bg); color: var(--danger-500); }
.am-fb--neutral { background: var(--surface-alt); color: var(--text-muted); }
[data-bs-theme="dark"] .am-fb--correct { color: #7fd0a4; }
[data-bs-theme="dark"] .am-fb--partial { color: #f5c26b; }
[data-bs-theme="dark"] .am-fb--wrong { color: #f29b91; }
.am-fb-answer, .am-fb-explain { font-size: .9rem; padding: 6px 2px; }
.am-fb-explain i { color: var(--info-500); }
.am-task.is-final .am-task__pts { background: var(--ok-bg); }
.am-finish { margin-top: 22px; text-align: center; }
.am-finish__msg { margin-top: 12px; display: inline-block; text-align: left; }
.am-finish__msg ul { margin: 6px 0 0; }

/* ------------------------------------------------------------- vidjetlar */
.am-widget { margin-top: 16px; display: grid; gap: 16px; }
.am-st { border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: #fff; padding: 26px; text-align: center; }
.am-st__badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 800; font-size: .82rem; }
.am-st__big { font-size: 1.6rem; font-weight: 800; margin: 20px auto; max-width: 720px; line-height: 1.35; }
.am-st__big.is-in { animation: am-in .45s ease; }
.am-st__text { color: rgba(255,255,255,.8); max-width: 620px; margin: 0 auto 18px; }
.am-st__nav { display: flex; justify-content: center; align-items: center; gap: 14px; }
.am-st__nav .btn-outline-secondary { color: #fff; border-color: rgba(255,255,255,.4); }
.am-st__dots { display: flex; gap: 6px; }
.am-st__dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.3); padding: 0; }
.am-st__dots button.is-on { background: var(--accent-on-dark); width: 26px; border-radius: 6px; }
@keyframes am-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.am-cipher__key { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.am-cipher__key input { flex: 1; }
.am-cipher__wheel { display: grid; grid-template-columns: repeat(13, 1fr); gap: 3px; margin-bottom: 12px; }
.am-cipher__wheel span { display: grid; text-align: center; border: 1px solid var(--border); border-radius: 6px; padding: 2px 0; font-family: ui-monospace, monospace; }
.am-cipher__wheel small { color: var(--text-faint); }
.am-cipher__wheel b { color: var(--accent); }
.am-cipher__row { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.am-cipher__row span { width: 130px; color: var(--text-muted); font-size: .86rem; }
.am-cipher__out { font-size: 1.1rem; padding: 6px 10px; border-radius: 8px; background: var(--surface-alt); letter-spacing: .08em; word-break: break-all; }
.am-cipher__out--ok { color: var(--ok-500); }
.am-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
.am-seg button { border: 0; background: var(--surface); color: var(--text-muted); padding: 8px 14px; font-weight: 700; }
.am-seg button.is-on { background: var(--navy-700); color: #fff; }
.am-keys { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; align-items: center; text-align: center; }
.am-keys__who { display: grid; gap: 4px; justify-items: center; }
.am-keys__face { font-size: 2.2rem; }
.am-keys__who small { font-size: .78rem; color: var(--text-muted); }
.am-keys__wire { position: relative; border-top: 3px dashed var(--border-firm); padding-top: 10px; }
.am-keys__packet { display: inline-block; padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); font-family: ui-monospace, monospace; animation: am-fly 2.4s ease-in-out infinite; }
.am-keys__wire small { display: block; color: var(--text-faint); font-size: .74rem; margin-top: 6px; }
.am-keys__desc { grid-column: 1 / -1; text-align: left; margin: 10px 0 0; color: var(--text-muted); }
@keyframes am-fly { 0%, 100% { transform: translateX(-30%); } 50% { transform: translateX(30%); } }

.am-de { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.am-de__doc, .am-de__col { display: grid; gap: 6px; align-content: start; border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.am-de__doc { background: #fffbe8; color: #3b3000; font-family: "Courier New", monospace; }
[data-bs-theme="dark"] .am-de__doc { background: #2b2610; color: #f3e7b0; }
.am-de__doc div { display: grid; }
.am-de__doc small { opacity: .7; }
.am-de__col input.is-wrong { border-color: var(--danger-500); background: var(--danger-bg); }
.am-de__actions { margin-top: 10px; }
.am-de__result { margin-top: 10px; padding: 10px 12px; border-radius: 10px; }
.am-de__result.is-ok { background: var(--ok-bg); }
.am-de__result.is-bad { background: var(--danger-bg); }
.am-de__result:empty { display: none; }

/* ------------------------------------------------------------- moslashuv */
@media (max-width: 991.98px) {
  .am-body { grid-template-columns: 1fr; padding: 14px 12px 40px; }
  .am-steps { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .am-step { flex: 0 0 auto; }
  .am-step__text small, .am-step__done { display: none; }
  .am-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .am-top { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
  .am-top__title { order: 3; flex-basis: 100%; }
  .am-top__timer { margin-left: auto; }
  .am-progress { top: 0; }
  .am-section { padding: 18px 14px; border-radius: var(--radius); }
  .am-h2 { font-size: 1.25rem; }
  .am-match { grid-template-columns: 1fr; }
  .am-match i { display: none; }
  .am-cipher__wheel { grid-template-columns: repeat(7, 1fr); }
  .am-keys { grid-template-columns: 1fr; }
  .am-de { grid-template-columns: 1fr; }
  .am-task__head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .am *, .am *::before { animation: none !important; transition: none !important; } }

/* ============================================================ dashboard */
.amh { max-width: 1240px; margin: 0 auto; padding: 26px 18px 60px; }
.amh-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-bottom: 22px; }
.amh-hero__main { background: linear-gradient(150deg, var(--navy-800), var(--navy-900)); color: #fff; border-radius: var(--radius-lg); padding: 26px; }
.amh-hero__main h1 { font-size: 1.7rem; font-weight: 800; }
.amh-hero__main p { color: rgba(255,255,255,.78); }
.amh-me { display: flex; gap: 14px; align-items: center; margin-top: 16px; }
.amh-me .avatar { width: 52px; height: 52px; }
.amh-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.amh-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.amh-stat b { display: block; font-size: 1.6rem; font-weight: 800; }
.amh-stat span { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.amh-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; margin-top: 8px; }
.amh-bar span { display: block; height: 100%; background: linear-gradient(90deg, #4ade80, #22c55e); }
.amh-cat { margin-bottom: 22px; }
.amh-cat__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.amh-cat__head i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.amh-cat__head h2 { font-size: 1.05rem; font-weight: 800; margin: 0; }
.amh-cat__head small { color: var(--text-muted); }
.amh-lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.amh-lesson {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); color: var(--text); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s;
}
a.amh-lesson:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-firm); color: var(--text); }
.amh-lesson__n { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--surface-alt); flex-shrink: 0; }
.amh-lesson__body { flex: 1; min-width: 0; }
.amh-lesson__title { font-size: .88rem; font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.amh-lesson__meta { font-size: .74rem; color: var(--text-muted); margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.amh-lesson.is-locked, .amh-lesson.is-soon { opacity: .55; }
.amh-lesson.is-progress .amh-lesson__n { background: var(--warn-bg); color: var(--warn-500); }
.amh-lesson.is-completed .amh-lesson__n { background: var(--ok-bg); color: var(--ok-500); }
.amh-lesson.is-mastered .amh-lesson__n { background: linear-gradient(135deg, #ffe27a, #f5b301); color: #3b2600; }
.amh-lesson.is-new { border-color: var(--accent); }
.amh-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.amh-badge { text-align: center; padding: 14px 10px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.amh-badge span { font-size: 1.9rem; display: block; filter: grayscale(1); opacity: .35; }
.amh-badge.is-earned span { filter: none; opacity: 1; }
.amh-badge b { font-size: .8rem; }
.amh-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--text-muted); margin-bottom: 18px; }
@media (max-width: 860px) { .amh-hero { grid-template-columns: 1fr; } }

/* ============================================================ natija */
.amr { max-width: 980px; margin: 0 auto; padding: 26px 18px 60px; }
.amr-score { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 18px; }
.amr-ring { --p: 0; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--border) 0); }
.amr-ring div { width: 112px; height: 112px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; }
.amr-ring b { font-size: 2rem; font-weight: 800; line-height: 1; }
.amr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.amr-item { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--surface); }
.amr-review .am-task { margin-bottom: 10px; }
@media (max-width: 640px) { .amr-score { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* ============================================================ o‘qituvchi */
.amt-table { font-size: .8rem; }
.amt-table td, .amt-table th { padding: 6px 6px; text-align: center; white-space: nowrap; }
.amt-table td:first-child, .amt-table th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
.amt-cell { display: inline-block; min-width: 30px; padding: 2px 4px; border-radius: 6px; font-weight: 700; }
.amt-cell--done { background: var(--ok-bg); color: var(--ok-500); }
.amt-cell--top { background: #fff3c4; color: #7a5600; }
.amt-cell--prog { background: var(--warn-bg); color: var(--warn-500); }

/* ------------------------------------------- bosiladigan sxema (hotspots) */
.am-hs { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); gap: 16px; align-items: start; }
.am-hs__map { display: grid; gap: 12px; }
.am-hs__zone { border-radius: var(--radius); padding: 14px; border: 2px solid var(--border); background: var(--surface-alt); }
.am-hs__zone--inside { background: linear-gradient(160deg, #0f3d2e, #0b2a20); border-color: #1f7a4d; color: #d9f7e8; }
.am-hs__zone-title { font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; display: flex; gap: 6px; align-items: center; }
.am-hs__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.am-hs__item {
  display: grid; justify-items: center; gap: 6px; padding: 12px 8px; border-radius: 12px; font-size: .8rem; font-weight: 700;
  border: 1px solid var(--border-firm); background: var(--surface); color: var(--text); position: relative; transition: transform .15s, box-shadow .15s;
}
.am-hs__zone--inside .am-hs__item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #e9fff4; }
.am-hs__item i { font-size: 1.4rem; color: var(--accent); }
.am-hs__zone--inside .am-hs__item i { color: #7fe3b0; }
.am-hs__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.am-hs__item.is-on { outline: 3px solid var(--accent); outline-offset: 1px; }
.am-hs__item.is-seen::after { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; top: 4px; right: 6px; font-size: .65rem; color: var(--ok-500); }
.am-hs__side { position: sticky; top: 90px; display: grid; gap: 10px; }
.am-hs__count { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-500); font-weight: 800; font-size: .8rem; }
.am-hs__info { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--surface); min-height: 160px; }
.am-hs__head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.am-hs__head b { display: block; font-size: 1.05rem; }
.am-hs__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; flex-shrink: 0; }
.am-hs__tag { display: inline-block; margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: var(--surface-alt); color: var(--text-muted); font-size: .72rem; font-weight: 700; }
@media (max-width: 860px) { .am-hs { grid-template-columns: 1fr; } .am-hs__side { position: static; } }

/* ------------------------------------------------- fotomuharrir (photolab) */
.am-pl { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.am-pl__toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; border-bottom: 1px solid var(--border); background: var(--surface-alt); }
.am-pl__toolbar .btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.am-pl__body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
.am-pl__stage { padding: 12px; background: repeating-conic-gradient(var(--surface-alt) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; display: grid; gap: 8px; align-content: start; }
.am-pl__canvas { max-width: 100%; max-height: 460px; width: auto; height: auto; justify-self: center; border-radius: 6px; box-shadow: var(--shadow); touch-action: none; }
.am-pl__canvas.is-crop { cursor: crosshair; }
.am-pl__info { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.am-pl__info span { padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .78rem; }
.am-pl__status { text-align: center; font-size: .85rem; color: var(--text-muted); min-height: 1.2em; }
.am-pl__panel { border-left: 1px solid var(--border); padding: 12px; display: grid; gap: 14px; align-content: start; }
.am-pl__group { display: grid; gap: 6px; }
.am-pl__group > b { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.am-pl__slider { display: grid; font-size: .85rem; }
.am-pl__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.am-pl__chip { border: 1px solid var(--border-firm); background: var(--surface); color: var(--text); border-radius: 999px; padding: 4px 10px; font-size: .8rem; }
.am-pl__chip.is-on { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.am-pl__size { display: flex; gap: 6px; align-items: center; }
.am-pl__keep { font-size: .82rem; display: flex; gap: 6px; align-items: center; }
.am-pl__lens { width: 160px; height: 160px; image-rendering: pixelated; border: 1px solid var(--border-firm); border-radius: 8px; background: var(--surface-alt); }
@media (max-width: 860px) { .am-pl__body { grid-template-columns: 1fr; } .am-pl__panel { border-left: 0; border-top: 1px solid var(--border); } }

/* ------------------------------------------------- HTML/CSS topshiriq */
.am-code { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.am-code__col { display: grid; gap: 4px; min-width: 0; }
.am-code__col small { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); }
.am-code-edit {
  width: 100%; min-height: 280px; resize: vertical; border-radius: 10px; border: 1px solid var(--border-firm);
  background: #0d1b2a; color: #e6eef5; font: 13px/1.5 ui-monospace, "Cascadia Code", Consolas, monospace; padding: 10px; tab-size: 2;
}
.am-code-view { width: 100%; min-height: 280px; height: 100%; border: 1px solid var(--border-firm); border-radius: 10px; background: #fff; }
.am-missing { margin: 4px 0 0; padding-left: 1.2rem; font-size: .88rem; color: var(--danger-500); }
[data-bs-theme="dark"] .am-missing { color: #f29b91; }
.am-widget__part + .am-widget__part { margin-top: 18px; }
@media (max-width: 760px) { .am-code { grid-template-columns: 1fr; } }

/* ------------------------------------------------- video montaj (videolab) */
.am-vl { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #10151f; color: #e6eef5; overflow: hidden; }
.am-vl__top { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; }
.am-vl__left { padding: 12px; border-right: 1px solid #263042; display: grid; gap: 8px; align-content: start; }
.am-vl__cap { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: #8fa0bf; }
.am-vl__lib { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.am-vl__src, .am-vl__clip { display: grid; text-align: left; border: 0; border-radius: 8px; padding: 8px; color: #fff; line-height: 1.2; }
.am-vl__src small, .am-vl__clip small { opacity: .8; font-size: .7rem; }
.am-vl__clip--sunrise { background: linear-gradient(135deg, #ff9a5a, #d9822b); }
.am-vl__clip--city { background: linear-gradient(135deg, #253a6b, #0f1c3a); }
.am-vl__clip--lesson { background: linear-gradient(135deg, #2f7a5c, #1d4d3a); }
.am-vl__clip--sport { background: linear-gradient(135deg, #3fae5c, #24713a); }
.am-vl__field { display: grid; gap: 2px; font-size: .8rem; }
.am-vl__check { display: flex; gap: 6px; align-items: center; font-size: .82rem; }
.am-vl__monitor { padding: 12px; display: grid; gap: 8px; justify-items: center; }
.am-vl__screen { width: 100%; max-width: 560px; aspect-ratio: 16 / 9; height: auto; background: #000; border-radius: 8px; }
.am-vl__controls { display: flex; gap: 8px; align-items: center; }
.am-vl__time { font-variant-numeric: tabular-nums; font-weight: 700; }
.am-vl__edit { width: 100%; max-width: 560px; display: grid; gap: 6px; padding: 10px; border-radius: 10px; background: #182131; }
.am-vl__edit .am-help { color: #8fa0bf; }
.am-vl__trim { display: grid; font-size: .82rem; }
.am-vl__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.am-vl__timeline { border-top: 1px solid #263042; padding: 10px 12px; display: grid; gap: 6px; background: #0b1018; }
.am-vl__row { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 8px; align-items: center; }
.am-vl__label { font-size: .75rem; color: #8fa0bf; font-weight: 700; }
.am-vl__track { display: flex; gap: 2px; min-height: 52px; align-items: stretch; border-radius: 8px; background: #151d2b; padding: 3px; }
.am-vl__track .am-vl__clip { min-width: 46px; overflow: hidden; }
.am-vl__track .am-vl__clip.is-on { outline: 3px solid #ffd95a; outline-offset: -3px; }
.am-vl__tr { align-self: center; font-size: .8rem; color: #ffd95a; margin: 0 -1px; z-index: 1; }
.am-vl__track--audio { min-height: 34px; }
.am-vl__wave { flex: 1; border-radius: 6px; background: repeating-linear-gradient(90deg, #22c55e 0 3px, #15803d 3px 6px); display: flex; align-items: center; padding-left: 8px; font-size: .75rem; font-weight: 700; color: #052e16; }
.am-vl__wave.is-fade { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.am-vl__hint { align-self: center; font-size: .8rem; color: #8fa0bf; padding: 0 8px; }
.am-vl__render { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid #263042; }
.am-vl__render .form-select { width: auto; }
.am-vl__export { flex-basis: 100%; font-size: .85rem; color: #86efac; }
.am-vl__export:empty { display: none; }
@media (max-width: 860px) { .am-vl__top { grid-template-columns: 1fr; } .am-vl__left { border-right: 0; border-bottom: 1px solid #263042; } }

/* ------------------------------------------------- veb konstruktor (weblab) */
.am-wl { display: grid; grid-template-columns: 230px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.am-wl__col { display: grid; gap: 6px; align-content: start; min-width: 0; }
.am-wl__col .am-vl__cap { color: var(--text-muted); }
.am-wl__controls { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-alt); }
.am-wl__field { display: grid; gap: 2px; font-size: .8rem; }
.am-wl__row { display: flex; gap: 8px; }
.am-wl .am-code-edit { min-height: 360px; font-size: 12px; }
.am-wl .am-code-view { min-height: 360px; }
@media (max-width: 1100px) { .am-wl { grid-template-columns: 1fr 1fr; } .am-wl__col:first-child { grid-column: 1 / -1; } }
@media (max-width: 700px) { .am-wl { grid-template-columns: 1fr; } }

/* ------------------------------------------------- interfeys konstruktori (uilab) */
.am-ui { display: grid; grid-template-columns: 210px minmax(0, 1fr) 240px; gap: 12px; }
.am-ui__col { display: grid; gap: 8px; align-content: start; min-width: 0; }
.am-ui__col .am-vl__cap { color: var(--text-muted); }
.am-ui__palette { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.am-ui__tool { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--border-firm); background: var(--surface); color: var(--text); font-size: .74rem; font-weight: 700; text-align: center; }
.am-ui__tool i { font-size: 1.1rem; color: var(--accent); }
.am-ui__tool:hover { border-color: var(--accent); }
.am-ui__tip { font-size: .82rem; padding: 10px; border-radius: 10px; background: var(--warn-bg); }
.am-ui__tip:empty { display: none; }
.am-ui__window { border: 1px solid var(--border-firm); border-radius: 12px; overflow: hidden; background: #fff; color: #1f2937; box-shadow: var(--shadow); }
.am-ui__bar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: #e5e7eb; }
.am-ui__bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.am-ui__bar span:nth-child(2) { background: #fbbf24; }
.am-ui__bar span:nth-child(3) { background: #34d399; }
.am-ui__bar b { margin-left: 8px; font-size: .8rem; color: #374151; }
.am-ui__form { padding: 14px; display: grid; gap: 6px; min-height: 260px; align-content: start; }
.am-ui__form .am-help { color: #6b7280; }
.am-ui__item { padding: 6px 8px; border: 2px dashed transparent; border-radius: 8px; cursor: pointer; }
.am-ui__item:hover { border-color: #cbd5e1; }
.am-ui__item.is-on { border-color: #f05a28; background: #fff7f3; }
.am-ui__h { margin: 0; font-size: 1.1rem; font-weight: 800; color: #0f3450; }
.am-ui__field { display: grid; gap: 3px; font-size: .85rem; border: 0; margin: 0; padding: 0; }
.am-ui__field legend { font-size: .85rem; margin: 0 0 3px; }
.am-ui__inline { display: flex; flex-wrap: wrap; gap: 12px; }
.am-ui__check { display: flex; gap: 6px; align-items: center; font-size: .85rem; }
.am-ui__window .form-control, .am-ui__window .form-select { background: #fff; color: #111; border-color: #cbd5e1; }
.am-ui__toast { padding: 0 14px 12px; color: #15803d; font-weight: 700; font-size: .85rem; }
.am-ui__toast:empty { display: none; }
.am-ui__inspector { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-alt); }
.am-ui__btns { display: flex; gap: 6px; flex-wrap: wrap; }
.am-ui__checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .85rem; }
.am-ui__checks li { color: var(--text-muted); }
.am-ui__checks li.is-ok { color: var(--ok-500); font-weight: 700; }
[data-bs-theme="dark"] .am-ui__checks li.is-ok { color: #7fd0a4; }
.am-ui__status { padding: 8px 10px; border-radius: 10px; background: var(--surface-alt); font-weight: 700; font-size: .85rem; }
.am-ui__status.is-ok { background: var(--ok-bg); color: var(--ok-500); }
@media (max-width: 1000px) { .am-ui { grid-template-columns: 1fr 1fr; } .am-ui__canvas { grid-column: 1 / -1; order: -1; } }
@media (max-width: 640px) { .am-ui { grid-template-columns: 1fr; } }

/* O'qituvchi paneli: darslarni ochish */
.amt-unlocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; }
.amt-unlock { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--border-firm); background: var(--surface); color: var(--text-muted); font-weight: 700; font-size: .85rem; }
button.amt-unlock:hover { border-color: var(--accent); color: var(--text); }
.amt-unlock.is-open { background: var(--ok-bg); border-color: var(--ok-500); color: var(--ok-500); }
.amt-unlock.is-all { background: var(--ok-bg); color: var(--ok-500); border-style: dashed; }
.amt-unlock.is-soon { opacity: .45; border-style: dashed; }
[data-bs-theme="dark"] .amt-unlock.is-open, [data-bs-theme="dark"] .amt-unlock.is-all { color: #7fd0a4; }

/* Dars guruhlari */
.amt-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.amt-group { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-firm); background: var(--surface); color: var(--text); text-decoration: none; }
.amt-group:hover { border-color: var(--accent); color: var(--text); }
.amt-group small { color: var(--text-muted); }
.amt-group__code { font-family: var(--bs-font-monospace, monospace); font-weight: 700; letter-spacing: .08em; color: var(--accent); }
.amg-key { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.amg-key__code { font-family: var(--bs-font-monospace, monospace); font-size: 1.9rem; font-weight: 800; letter-spacing: .18em; padding: 4px 16px; border-radius: 12px; background: var(--surface-alt); border: 1px dashed var(--accent); }
.amg-grade { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; font-weight: 800; }
.amg-grade--5 { background: var(--ok-bg); color: var(--ok-500); }
.amg-grade--4 { background: #e6f0fb; color: #1d5fa8; }
.amg-grade--3 { background: var(--warn-bg); color: var(--warn-500); }
.amg-grade--2 { background: #fdeaea; color: #b42318; }
[data-bs-theme="dark"] .amg-grade--4 { background: #16324f; color: #8ec1f5; }
[data-bs-theme="dark"] .amg-grade--2 { background: #4a1d1d; color: #f5a3a3; }
[data-bs-theme="dark"] .amg-grade--5 { color: #7fd0a4; }
.amg-lessons { display: grid; gap: 6px; }
.amg-lesson { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.amg-lesson__title { min-width: 0; flex: 1 1 220px; }

/* 12-dars: tarmoq simulyatori */
.am-nl { display: grid; gap: 10px; }
.am-nl .am-vl__cap { color: var(--text-muted); }
.am-nl__tabs { flex-wrap: wrap; margin-bottom: 0; }
.am-nl__svg { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); }
.am-nl__bg { fill: #f8fafc; }
.am-nl__box { fill: #eef2ff; stroke: #c7d2fe; stroke-dasharray: 5 4; }
.am-nl__boxlabel { font-size: 11px; font-weight: 700; fill: #4338ca; }
.am-nl__link { stroke: #94a3b8; stroke-width: 3; }
.am-nl__link.is-off { stroke: #fca5a5; stroke-dasharray: 4 4; }
.am-nl__tunnel { stroke: #16a34a; stroke-width: 6; stroke-dasharray: 10 5; opacity: .75; }
.am-nl__tunnellabel { font-size: 11px; font-weight: 700; fill: #15803d; }
.am-nl__sniff { stroke: #dc2626; stroke-width: 1.5; stroke-dasharray: 3 3; }
.am-nl__node circle { fill: #fff; stroke: #64748b; stroke-width: 2; }
.am-nl__node.is-off circle { fill: #fee2e2; stroke: #dc2626; }
.am-nl__node.is-off .am-nl__icon { opacity: .35; }
.am-nl__icon { font-size: 20px; }
.am-nl__label { font-size: 11px; fill: #334155; font-weight: 600; }
.am-nl__file { font-size: 14px; }
.am-nl__packet circle { fill: #f05a28; stroke: #fff; stroke-width: 2; }
.am-nl__packet text { font-size: 10px; }
.am-nl__packet { transition: transform .38s ease-in-out; }
.am-nl__packet.is-secure circle { fill: #16a34a; }
.am-nl__packet.is-lost circle { fill: #dc2626; }
.am-nl__explain { margin: 0; font-size: .88rem; }
.am-nl__controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.am-nl__mode { margin-bottom: 0; }
.am-nl__toggle { font-size: .86rem; font-weight: 600; margin: 0 4px; }
.am-nl__log { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .84rem; }
.am-nl__log li { padding: 6px 10px; border-radius: 8px; background: var(--surface-alt); }
.am-nl__log li.is-ok { background: var(--ok-bg); }
.am-nl__log li.is-bad { background: #fdeaea; }
[data-bs-theme="dark"] .am-nl__log li.is-bad { background: #4a1d1d; }

/* 11-dars: raqamli tengsizlik. Bitta ko‘rsatkich — bitta rang (palitra 1-slot) */
.am-dvl { display: grid; gap: 16px; --dv-series: #2a78d6; --dv-grid: #e2e8f0; }
[data-bs-theme="dark"] .am-dvl { --dv-series: #3987e5; --dv-grid: #334155; }
.am-dv { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.am-dv__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.am-dv__tabs { flex-wrap: wrap; margin-bottom: 0; }
.am-dv__title { font-size: .95rem; }
.am-dv__bars { display: grid; gap: 6px; }
.am-dv__row { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr); gap: 10px; align-items: center; padding: 3px 4px; border-radius: 8px; cursor: default; }
.am-dv__row:hover, .am-dv__row:focus { background: var(--surface-alt); outline: none; }
.am-dv__label { font-size: .84rem; color: var(--text); text-align: right; }
.am-dv__track { position: relative; display: flex; align-items: center; gap: 6px; height: 22px;
  background: repeating-linear-gradient(90deg, var(--dv-grid) 0 1px, transparent 1px 25%); }
.am-dv__bar { display: block; height: 14px; background: var(--dv-series); border-radius: 0 4px 4px 0; transition: width .35s; }
.am-dv__val { font-size: .8rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.am-dv__axis { display: flex; justify-content: space-between; margin-left: calc(34% + 14px); font-size: .7rem; color: var(--text-muted); }
.am-dv__tip { padding: 6px 10px; border-radius: 8px; background: var(--surface-alt); font-size: .84rem; }
.am-dv__note { margin: 0; font-size: .84rem; color: var(--text-muted); }
.am-dv__source { color: var(--text-muted); font-size: .72rem; }
.am-dv__table { font-size: .85rem; }
.am-dv__meter { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .86rem; }
.am-dv__track--big { height: 22px; border-radius: 6px; background: var(--surface-alt); }
.am-dv__bar--village { height: 22px; border-radius: 6px 4px 4px 6px; }
.am-dv__barrier { display: grid; gap: 6px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); }
.am-dv__options { display: flex; flex-wrap: wrap; gap: 6px; }
.am-dv__result { font-size: .84rem; }
.am-dv__result:empty { display: none; }
.am-dv__result.is-ok { color: var(--ok-500); }
.am-dv__result.is-bad { color: #b42318; }
[data-bs-theme="dark"] .am-dv__result.is-ok { color: #7fd0a4; }
[data-bs-theme="dark"] .am-dv__result.is-bad { color: #f5a3a3; }
.am-dv__msg:empty { display: none; }
.am-dv__msg.is-ok { padding: 8px 12px; border-radius: 10px; background: var(--ok-bg); font-weight: 700; }
@media (max-width: 640px) {
  .am-dv__row { grid-template-columns: 1fr; gap: 2px; }
  .am-dv__label { text-align: left; }
  .am-dv__axis { margin-left: 0; }
}

/* 10-dars: ergonomik ish joyi */
.am-er { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 14px; }
.am-er .am-vl__cap { color: var(--text-muted); }
.am-er__col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.am-er__controls { display: grid; gap: 8px; }
.am-er__field { display: grid; gap: 1px; font-size: .86rem; }
.am-er__field small, .am-er__toggle small { color: var(--text-muted); font-size: .76rem; }
.am-er__toggle { font-size: .86rem; font-weight: 600; }
.am-er__svg { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.am-er__bg { fill: #f8fafc; }
.am-er__floor { stroke: #94a3b8; stroke-width: 2; }
.am-er__desk { fill: #a16207; }
.am-er__desk-leg { stroke: #a16207; stroke-width: 4; }
.am-er__monitor { fill: #1e293b; }
.am-er__stand { stroke: #475569; stroke-width: 3; }
.am-er__chair { fill: #334155; stroke: #334155; stroke-width: 4; }
.am-er__body { fill: none; stroke: #f05a28; stroke-width: 5; stroke-linecap: round; }
circle.am-er__body { fill: #fde7dc; stroke-width: 3; }
.am-er__spine.is-bent { stroke-dasharray: 2 0; transform: skewX(-6deg); transform-origin: 100px 150px; }
.am-er__wrist { fill: #16a34a; }
.am-er__keyboard { fill: #64748b; }
.am-er__window { fill: #bae6fd; stroke: #7dd3fc; }
.am-er__glare { stroke: #facc15; stroke-width: 3; stroke-dasharray: 6 4; }
.am-er__sight { stroke-width: 1.5; stroke-dasharray: 4 3; }
.am-er__sight.is-ok { stroke: #16a34a; }
.am-er__sight.is-bad { stroke: #dc2626; }
.am-er__risks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.am-er__risk { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; font-size: .84rem; }
.am-er__risk.is-ok { background: var(--ok-bg); color: var(--ok-500); }
.am-er__risk.is-bad { background: #fdeaea; color: #b42318; }
[data-bs-theme="dark"] .am-er__risk.is-bad { background: #4a1d1d; color: #f5a3a3; }
[data-bs-theme="dark"] .am-er__risk.is-ok { color: #7fd0a4; }
.am-er__risk small { color: inherit; opacity: .85; }
.am-er__status { padding: 8px 10px; border-radius: 10px; background: var(--surface-alt); font-weight: 700; font-size: .86rem; }
.am-er__status.is-ok { background: var(--ok-bg); color: var(--ok-500); }
@media (max-width: 800px) { .am-er { grid-template-columns: 1fr; } .am-er__col:last-child { order: -1; } }

/* 9-dars: firibgarlik detektori */
.am-ph { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; }
.am-ph .am-vl__cap { color: var(--text-muted); }
.am-ph__side { display: grid; gap: 8px; align-content: start; min-width: 0; }
.am-ph__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.am-ph__list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.am-ph__list li:hover { border-color: var(--accent); }
.am-ph__list li.is-on { border-color: var(--accent); background: var(--warn-bg); }
.am-ph__icon { color: var(--accent); width: 18px; text-align: center; }
.am-ph__who { display: grid; min-width: 0; flex: 1; font-size: .84rem; }
.am-ph__who b, .am-ph__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-ph__who small { color: var(--text-muted); }
.am-ph__mark.is-ok { color: var(--ok-500); }
.am-ph__mark.is-bad { color: #d64545; }
.am-ph__score { padding: 8px 10px; border-radius: 10px; background: var(--surface-alt); font-weight: 700; font-size: .85rem; }
.am-ph__score.is-ok { background: var(--ok-bg); color: var(--ok-500); }
.am-ph__main { display: grid; gap: 10px; align-content: start; min-width: 0; }
.am-ph__card { border: 1px solid var(--border-firm); border-radius: 12px; overflow: hidden; background: #fff; color: #1f2937; box-shadow: var(--shadow); }
.am-ph__from { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; padding: 10px 14px; background: #f1f5f9; font-size: .88rem; }
.am-ph__from code { color: #475569; background: none; overflow-wrap: anywhere; }
.am-ph__from small { margin-left: auto; color: #64748b; }
.am-ph__subject { padding: 8px 14px 0; font-weight: 800; }
.am-ph__body { padding: 10px 14px 14px; font-size: .9rem; }
.am-ph__body p { margin: 0 0 8px; }
.am-ph__card--sms .am-ph__body p { display: inline-block; max-width: 92%; padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: #e2e8f0; }
.am-ph__card--call .am-ph__body p { padding-left: 10px; border-left: 3px solid #cbd5e1; }
.am-ph__bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #e5e7eb; font-size: .86rem; color: #b42318; }
.am-ph__bar.is-secure { color: #15803d; }
.am-ph__bar code { color: #111827; background: #fff; padding: 2px 8px; border-radius: 999px; flex: 1; overflow-wrap: anywhere; }
.am-ph__link { border: 0; padding: 0; background: none; color: #1d4ed8; text-decoration: underline; font: inherit; cursor: pointer; }
.am-ph__real { display: block; margin-top: 4px; padding: 4px 8px; border-radius: 6px; background: #fef3c7; font-size: .8rem; color: #78350f; }
.am-ph__real code { color: #7c2d12; background: none; overflow-wrap: anywhere; }
.am-ph__file { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 8px; background: #f1f5f9; font-size: .84rem; }
.am-ph__verdict { display: flex; flex-wrap: wrap; gap: 8px; }
.am-ph__result { flex: 1; padding: 10px 12px; border-radius: 10px; font-size: .88rem; }
.am-ph__result.is-ok { background: var(--ok-bg); }
.am-ph__result.is-bad { background: #fdeaea; }
[data-bs-theme="dark"] .am-ph__result.is-bad { background: #4a1d1d; }
.am-ph__result ul { margin: 6px 0; padding-left: 18px; }
.am-ph__result p { margin: 0; }
@media (max-width: 800px) { .am-ph { grid-template-columns: 1fr; } }

/* 8-dars: sensor laboratoriyasi */
.am-sl { display: grid; gap: 12px; }
.am-sl .am-vl__cap { color: var(--text-muted); }
.am-sl__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.am-sl__tabs { flex-wrap: wrap; margin-bottom: 0; }
.am-sl__tabs button.is-seen:not(.is-on) { color: var(--ok-500); }
.am-sl__count { font-size: .82rem; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: var(--surface-alt); }
.am-sl__count.is-ok { background: var(--ok-bg); color: var(--ok-500); }
.am-sl__body { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 14px; }
.am-sl__col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.am-sl__scene { display: grid; justify-items: center; gap: 2px; padding: 16px 10px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-alt); text-align: center; transition: background .3s; }
.am-sl__scene.is-on { background: var(--warn-bg); border-color: var(--accent); }
.am-sl__emoji { font-size: 2.6rem; line-height: 1.2; }
.am-sl__scene small { color: var(--text-muted); font-weight: 700; }
.am-sl__kind { justify-self: start; font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.am-sl__kind--control { background: var(--ok-bg); color: var(--ok-500); }
.am-sl__kind--monitoring { background: var(--warn-bg); color: var(--warn-500); }
.am-sl__field { display: grid; gap: 2px; font-size: .86rem; }
.am-sl__auto { font-size: .86rem; font-weight: 700; }
.am-sl__chain { display: flex; align-items: stretch; gap: 4px; }
.am-sl__node { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; align-content: start; gap: 3px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border-firm); background: var(--surface); text-align: center; transition: border-color .2s, background .2s; }
.am-sl__node > i { font-size: 1.2rem; color: var(--accent); }
.am-sl__node.is-on { border-color: var(--accent); background: var(--warn-bg); }
.am-sl__val { font-size: .92rem; overflow-wrap: anywhere; }
.am-sl__node small { font-size: .74rem; color: var(--text-muted); overflow-wrap: anywhere; }
.am-sl__arrow { display: grid; place-items: center; color: var(--text-muted); font-size: .8rem; }
.am-sl__loop { font-size: .8rem; padding: 6px 10px; border: 1px dashed var(--ok-500); border-radius: 10px; color: var(--ok-500); }
.am-sl__rule { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--surface-alt); font-size: .88rem; }
.am-sl__log { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .82rem; }
.am-sl__log li { padding: 5px 10px; border-radius: 8px; background: var(--surface-alt); }
.am-sl__log li.is-on { background: var(--warn-bg); }
[data-bs-theme="dark"] .am-sl__count.is-ok, [data-bs-theme="dark"] .am-sl__kind--control, [data-bs-theme="dark"] .am-sl__loop { color: #7fd0a4; }
@media (max-width: 800px) {
  .am-sl__body { grid-template-columns: 1fr; }
  .am-sl__chain { flex-direction: column; }
  .am-sl__arrow { transform: rotate(90deg); }
}

/* 13-dars: intranet / ekstranet / internet laboratoriyasi (intralab.js) */
.am-il__stage { display: grid; gap: 10px; }
.am-il__row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.am-il__row > b { font-size: .86rem; min-width: 110px; }
.am-il__seg { margin-bottom: 0; flex-wrap: wrap; }
.am-il__zone { stroke-width: 1.5; stroke-dasharray: 5 4; }
.am-il__zone--net { fill: #f0f9ff; stroke: #7dd3fc; }
.am-il__zone--extra { fill: #fef9c3; stroke: #facc15; }
.am-il__zone--intra { fill: #dcfce7; stroke: #4ade80; }
.am-il__fw rect { fill: #fff7ed; stroke: #f97316; stroke-width: 2; }
.am-nl__node.is-picked circle { stroke: #f05a28; stroke-width: 3.5; }
.am-il__matrixbox { display: grid; gap: 6px; }
.am-il__matrix { border-collapse: collapse; font-size: .84rem; width: 100%; max-width: 520px; }
.am-il__matrix th, .am-il__matrix td { border: 1px solid var(--border); padding: 5px 8px; text-align: center; }
.am-il__matrix tbody th { text-align: left; font-weight: 600; }
.am-il__matrix td.is-ok { background: var(--ok-bg); color: #15803d; font-weight: 800; }
.am-il__matrix td.is-bad { background: #fdeaea; color: #b91c1c; font-weight: 800; }
[data-bs-theme="dark"] .am-il__matrix td.is-bad { background: #4a1d1d; color: #fca5a5; }
.am-il__tool { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-alt); }
.am-il__toolicon { font-size: 2.4rem; line-height: 1; }
.am-il__toolhead { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 6px; font-size: 1.05rem; }
.am-il__tool p { margin: 0 0 6px; }
.am-il__tip { font-size: .88rem; color: var(--text-muted); }
.am-il__badge { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.am-il__badge.is-sync { background: #fee2e2; color: #b91c1c; }
.am-il__badge.is-async { background: #e0f2fe; color: #0369a1; }
.am-il__gens button { min-width: 54px; }
.am-il__gen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.am-il__gen > div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-alt); display: grid; gap: 2px; }
.am-il__gen small { color: var(--text-muted); font-size: .76rem; }
.am-il__gen-wide { grid-column: 1 / -1; }
.am-il__bar { flex: 1; min-width: 140px; height: 12px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); overflow: hidden; }
.am-il__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0ea5e9, #22c55e); }
.am-il__dl { font-weight: 700; font-size: .9rem; min-width: 160px; }
.am-il__cell { fill: rgba(14, 165, 233, .06); stroke: #7dd3fc; stroke-dasharray: 6 5; }
.am-il__cell.is-active { fill: rgba(34, 197, 94, .12); stroke: #22c55e; stroke-dasharray: none; stroke-width: 2; }
.am-il__phone { font-size: 26px; transition: transform .65s ease-in-out; }
@media (max-width: 575.98px) {
  .am-il__gen { grid-template-columns: 1fr 1fr; }
  .am-il__row > b { min-width: 0; width: 100%; }
}

/* 14-dars: videokonferensiya laboratoriyasi (meetlab.js) */
.am-ml__setup { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.am-ml__panel { display: grid; gap: 8px; }
.am-ml__tile { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; display: grid; place-items: center;
  background: #1f2937; color: #fff; border: 2px solid transparent; }
.am-ml__tile--preview { aspect-ratio: 16 / 9; }
.am-ml__tile.bg-messy { background: linear-gradient(160deg, #6b4f3a, #3f2d22); }
.am-ml__tile.bg-blur { background: radial-gradient(circle at 30% 30%, #94a3b8, #334155); }
.am-ml__tile.bg-plain { background: #475569; }
.am-ml__mess { position: absolute; left: 10px; bottom: 34px; font-size: 1.6rem; opacity: .9; }
.am-ml__face { display: grid; place-items: center; width: 100%; height: 100%; }
.am-ml__face.is-back .am-ml__person { filter: brightness(.25) contrast(1.2); }
.am-ml__face.is-back { background: radial-gradient(circle at 50% 10%, rgba(255, 255, 220, .55), transparent 55%); }
.am-ml__face.is-front .am-ml__person { filter: drop-shadow(0 0 18px rgba(255, 240, 200, .7)); }
.am-ml__person { font-size: 3.4rem; line-height: 1; }
.am-ml__grid .am-ml__person { font-size: 2.2rem; }
.am-ml__initials { width: 64px; height: 64px; border-radius: 50%; background: #2563eb; display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
.am-ml__name { position: absolute; left: 8px; bottom: 6px; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .55); }
.am-ml__warn { position: absolute; top: 8px; left: 8px; right: 8px; font-size: .78rem; font-weight: 700; padding: 4px 8px; border-radius: 8px; background: #dc2626; text-align: center; }
.am-ml__badge { position: absolute; top: 6px; right: 8px; font-size: 1.3rem; }
.am-ml__tile.is-hand { border-color: #f59e0b; }
.am-ml__tile.is-noise { border-color: #dc2626; animation: am-ml-shake .4s ease-in-out infinite alternate; }
.am-ml__tile.is-share { border-color: #22c55e; }
.am-ml__tile.is-guest { border-color: #a855f7; }
@keyframes am-ml-shake { from { transform: translateX(-1px); } to { transform: translateX(1px); } }
.am-ml__checks ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: .88rem; }
.am-ml__checks li { padding: 5px 10px; border-radius: 8px; background: #fdeaea; }
.am-ml__checks li.is-ok { background: var(--ok-bg); }
[data-bs-theme="dark"] .am-ml__checks li { background: #4a1d1d; }
[data-bs-theme="dark"] .am-ml__checks li.is-ok { background: var(--ok-bg); }
.am-ml__done { margin: 8px 0 0; font-weight: 700; color: #16a34a; }
.am-ml__meeting { border-radius: 14px; overflow: hidden; background: #111827; border: 1px solid var(--border); }
.am-ml__bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 12px; color: #e5e7eb; font-size: .85rem; }
.am-ml__rec { color: #f87171; font-weight: 800; font-size: .75rem; }
.am-ml__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 8px; }
.am-ml__grid--net { padding: 0; }
.am-ml__toolbar { display: flex; justify-content: center; gap: 18px; padding: 8px; font-size: 1.15rem; }
.am-ml__event .am-ml__step { display: block; color: var(--text-muted); margin-bottom: 4px; }
.am-ml__actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 8px; }
.am-ml__sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.am-ml__sliders label { display: block; font-size: .88rem; }
.am-ml__quality { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border); }
.am-ml__quality.is-none { background: #fdeaea; }
.am-ml__quality.is-audio { background: #fef3c7; }
.am-ml__quality.is-q360 { background: #e0f2fe; }
.am-ml__quality.is-q720, .am-ml__quality.is-q1080 { background: var(--ok-bg); }
[data-bs-theme="dark"] .am-ml__quality.is-none { background: #4a1d1d; }
[data-bs-theme="dark"] .am-ml__quality.is-audio { background: #3d3412; }
[data-bs-theme="dark"] .am-ml__quality.is-q360 { background: #0c3047; }
@media (max-width: 575.98px) {
  .am-ml__setup, .am-ml__sliders { grid-template-columns: 1fr; }
  .am-ml__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 15-dars: ekspert tizim laboratoriyasi (expertlab.js) */
.am-xl__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 16px; align-items: start; }
.am-xl__symptoms { display: grid; gap: 4px; margin: 6px 0 10px; font-size: .9rem; }
.am-xl__rules { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; font-size: .82rem; font-family: var(--bs-font-monospace, monospace); }
.am-xl__rules li { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); transition: background .25s, border-color .25s; }
.am-xl__rules li.is-now { background: #fef3c7; border-color: #f59e0b; }
.am-xl__rules li.is-fired { background: var(--ok-bg); border-color: #22c55e; }
[data-bs-theme="dark"] .am-xl__rules li.is-now { background: #3d3412; }
.am-xl__memory { display: flex; flex-wrap: wrap; gap: 6px; min-height: 34px; padding: 8px; border-radius: 12px; border: 1px dashed var(--border); }
.am-xl__fact { font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #e0f2fe; color: #075985; }
.am-xl__fact.is-mid { background: #ede9fe; color: #5b21b6; }
.am-xl__fact.is-final { background: #dcfce7; color: #166534; box-shadow: 0 0 0 2px #22c55e inset; }
.am-xl__fired { margin: 0; padding-left: 20px; display: grid; gap: 3px; font-size: .84rem; }
.am-xl__verdict { font-weight: 700; padding: 10px 14px; border-radius: 12px; min-height: 1em; }
.am-xl__verdict:empty { display: none; }
.am-xl__verdict.is-ok { background: var(--ok-bg); }
.am-xl__verdict.is-bad { background: #fdeaea; }
[data-bs-theme="dark"] .am-xl__verdict.is-bad { background: #4a1d1d; }
.am-xl__builder { display: grid; gap: 4px; margin: 10px 0; }
.am-xl__select { max-width: 360px; }
.am-xl__newrule { margin: 0; font-family: var(--bs-font-monospace, monospace); font-size: .84rem; }
.am-xl__ask strong { font-size: 1.05rem; }
@media (max-width: 767.98px) { .am-xl__grid { grid-template-columns: 1fr; } }
.am-xl__tests { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .88rem; }
.am-xl__tests li { padding: 6px 10px; border-radius: 8px; background: #fdeaea; }
.am-xl__tests li.is-ok { background: var(--ok-bg); }
[data-bs-theme="dark"] .am-xl__tests li { background: #4a1d1d; }
[data-bs-theme="dark"] .am-xl__tests li.is-ok { background: var(--ok-bg); }

/* 16-dars: ekspert tizim interfeysi laboratoriyasi (esuilab.js) */
.am-ux__screen { border-radius: 14px; border: 1px solid var(--border); padding: 14px; min-height: 170px; background: var(--surface); }
.am-ux__cli { background: #0b1220; color: #a7f3d0; font-family: var(--bs-font-monospace, monospace); font-size: .86rem; border-radius: 10px; padding: 12px; display: grid; gap: 4px; }
.am-ux__cli .is-user { color: #fde68a; }
.am-ux__cli .is-result { color: #fff; font-weight: 700; margin-top: 6px; }
.am-ux__cli-input { background: transparent; border: 0; border-bottom: 1px dashed #a7f3d0; color: #fde68a; font: inherit; outline: none; width: 100%; max-width: 360px; }
.am-ux__menu ol { margin: 8px 0 0; }
.am-ux__form fieldset { margin-bottom: 8px; }
.am-ux__form legend { font-size: .92rem; font-weight: 600; margin-bottom: 2px; }
.am-ux__formerr { color: #dc2626; font-size: .86rem; margin: 6px 0 0; }
.am-ux__chat { display: grid; gap: 6px; }
.am-ux__bot, .am-ux__me { max-width: 80%; padding: 8px 12px; border-radius: 14px; font-size: .9rem; }
.am-ux__bot { background: var(--surface-alt); border: 1px solid var(--border); border-bottom-left-radius: 4px; justify-self: start; }
.am-ux__me { background: #2563eb; color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.am-ux__quick { display: flex; gap: 6px; margin-top: 4px; }
.is-result { font-weight: 700; }
.am-ux__bot.is-result, .am-ux__result { background: var(--ok-bg); }
.am-ux__result { padding: 8px 12px; border-radius: 10px; margin: 8px 0 0; }
.am-ux__cfqs { display: grid; gap: 10px; }
.am-ux__cfq { display: grid; gap: 4px; font-size: .9rem; }
.am-ux__bars { display: grid; gap: 8px; margin: 6px 0 10px; }
.am-ux__barrow { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: .86rem; }
.am-ux__bar { height: 12px; border-radius: 999px; background: var(--surface-alt); border: 1px solid var(--border); overflow: hidden; }
.am-ux__bar span { display: block; height: 100%; background: linear-gradient(90deg, #f59e0b, #22c55e); transition: width .3s; }
.am-ux__fixes { display: grid; gap: 6px; }
.am-ux__fix { padding: 8px 10px 8px 34px; border-radius: 10px; border: 1px solid var(--border); background: #fdeaea; }
.am-ux__fix.is-on { background: var(--ok-bg); }
[data-bs-theme="dark"] .am-ux__fix { background: #4a1d1d; }
[data-bs-theme="dark"] .am-ux__fix.is-on { background: var(--ok-bg); }
.am-ux__fix .form-check-label { display: grid; gap: 2px; font-size: .88rem; }
.am-ux__fix small { color: var(--text-muted); }
.am-ux__mock { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #fff; color: #111827; margin-top: 6px; }
.am-ux__mockbar { background: #1e3a8a; color: #fff; padding: 8px 12px; font-weight: 700; }
.am-ux__mockq { padding: 14px 12px 6px; margin: 0; font-size: 1rem; }
.am-ux__mock.is-tiny .am-ux__mockq, .am-ux__mock.is-tiny .am-ux__fakebtn { font-size: .62rem; }
.am-ux__mock.is-tiny .am-ux__mockq { text-transform: uppercase; }
.am-ux__mockbtns, .am-ux__mocknav { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 12px 12px; align-items: center; }
.am-ux__fakebtn { padding: 6px 14px; border-radius: 8px; background: #2563eb; color: #fff; font-weight: 600; font-size: .86rem; }
.am-ux__fakebtn.is-ghost { background: #e5e7eb; color: #111827; }
.am-ux__progress { margin-left: auto; font-size: .78rem; color: #475569; }

/* 17-dars: ma’lumotlarni qayta ishlash laboratoriyasi (dplab.js) */
.am-dp__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.am-dp__steps li { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: .84rem; }
.am-dp__steps li small { color: var(--text-muted); font-size: .76rem; }
.am-dp__steps li.is-now { border-color: #f59e0b; background: #fef3c7; }
.am-dp__steps li.is-done { border-color: #22c55e; background: var(--ok-bg); }
[data-bs-theme="dark"] .am-dp__steps li.is-now { background: #3d3412; }
.am-dp__table { width: 100%; border-collapse: collapse; font-size: .84rem; margin-top: 4px; }
.am-dp__table th, .am-dp__table td { border: 1px solid var(--border); padding: 4px 8px; }
.am-dp__table th { background: var(--surface-alt); font-weight: 700; }
.am-dp__table tr.is-bad td { background: #fdeaea; color: #b91c1c; text-decoration: line-through; }
.am-dp__table tr.is-ok td { background: var(--ok-bg); }
[data-bs-theme="dark"] .am-dp__table tr.is-bad td { background: #4a1d1d; color: #fca5a5; }
.am-dp__bills { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-top: 4px; }
.am-dp__bill { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--border); background: var(--surface); font-size: .84rem; }
.am-dp__bill strong { font-size: 1rem; }
.am-dp__screens { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.am-dp__screen { display: grid; gap: 8px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.am-dp__db { font-weight: 700; font-size: .84rem; padding: 10px; border-radius: 12px; background: var(--surface-alt); text-align: center; }
.am-dp__seats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.am-dp__seat { border: 1px solid var(--border); border-radius: 6px; padding: 5px 0; font-size: .74rem; font-weight: 700; background: #ecfdf5; color: #065f46; }
.am-dp__seat:disabled { cursor: default; opacity: 1; }
.am-dp__seat.is-mine { background: #2563eb; color: #fff; border-color: #2563eb; }
.am-dp__seat.is-held { background: #fef3c7; color: #92400e; border-color: #f59e0b; }
.am-dp__seat.is-sold { background: #e5e7eb; color: #6b7280; text-decoration: line-through; }
.am-dp__seat.is-conflict { background: #dc2626; color: #fff; border-color: #dc2626; }
.am-dp__legend { display: flex; flex-wrap: wrap; gap: 6px; }
.am-dp__legend .am-dp__seat { padding: 3px 8px; }
.am-dp__cycle { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.am-dp__stage { display: grid; gap: 4px; align-content: start; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: .86rem; position: relative; }
.am-dp__stage:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 18px; color: var(--text-muted); font-weight: 800; }
.am-dp__stage small { color: var(--text-muted); }
.am-dp__stage.is-now { border-color: #f59e0b; box-shadow: 0 0 0 2px #fde68a inset; }
.am-dp__stage.is-done { border-color: #22c55e; }
.am-dp__icon { font-size: 1.6rem; }
@media (max-width: 767.98px) {
  .am-dp__steps, .am-dp__cycle { grid-template-columns: 1fr 1fr; }
  .am-dp__stage:not(:last-child)::after { display: none; }
  .am-dp__screens { grid-template-columns: 1fr; }
}

/* 18-dars: real vaqt tizimlari laboratoriyasi (rtlab.js) */
.am-rt__loop { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.am-rt__node { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .8rem; font-weight: 700; position: relative; }
.am-rt__node:not(:last-child)::after { content: "→"; margin-left: 10px; color: var(--text-muted); }
.am-rt__node.is-now { background: #fef3c7; border-color: #f59e0b; }
[data-bs-theme="dark"] .am-rt__node.is-now { background: #3d3412; }
.am-rt__status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.am-rt__status > div { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-alt); display: grid; }
.am-rt__status small { color: var(--text-muted); font-size: .76rem; }
.am-rt__band { fill: rgba(34, 197, 94, .14); stroke: #22c55e; stroke-dasharray: 5 4; }
.am-rt__line { fill: none; stroke: #f05a28; stroke-width: 2.5; stroke-linejoin: round; }
.am-rt__road { fill: #64748b; }
.am-rt__car { font-size: 30px; transition: transform .9s cubic-bezier(.2, .7, .3, 1); }
.am-rt__react { fill: #f59e0b; }
.am-rt__brakeline { fill: #dc2626; }
@media (max-width: 575.98px) { .am-rt__status { grid-template-columns: 1fr 1fr; } }

/* Kurs almashtirgich (1-kurs / 2-kurs) */
.amh-courses { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .12); margin-bottom: 10px; }
.amh-course { padding: 5px 14px; border-radius: 999px; font-size: .84rem; font-weight: 700; color: rgba(255, 255, 255, .8); text-decoration: none; }
.amh-course:hover { color: #fff; }
.amh-course.is-on { background: #fff; color: var(--navy-700); }
.amh-courses--light { background: var(--surface-alt); border: 1px solid var(--border); }
.amh-courses--light .amh-course { color: var(--text-muted); }
.amh-courses--light .amh-course.is-on { background: var(--navy-700); color: #fff; }

/* 2-kurs, 1-dars: video muharriri laboratoriyasi (editlab.js) */
.am-ed__mock { display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: #1f2430; border: 1px solid var(--border); }
.am-ed__menubar { display: grid; grid-template-columns: 1fr auto; gap: 6px; }
.am-ed__middle { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 6px; min-height: 150px; }
.am-ed__monitor { display: grid; }
.am-ed__bottom { display: grid; grid-template-columns: 60px 1fr; gap: 6px; min-height: 90px; }
.am-ed__timeline { position: relative; display: grid; background: repeating-linear-gradient(90deg, #2b3242 0 59px, #39414f 59px 60px); border-radius: 8px; }
.am-ed__zone { position: relative; border: 2px dashed rgba(255, 255, 255, .25); border-radius: 8px; background: rgba(255, 255, 255, .04); color: #e5e7eb;
  display: grid; place-items: center; padding: 6px; font-size: .78rem; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s; }
.am-ed__zone:hover { background: rgba(255, 255, 255, .1); }
.am-ed__zone.is-seen { border-style: solid; border-color: rgba(34, 197, 94, .6); }
.am-ed__zone.is-on { background: rgba(240, 90, 40, .25); border-color: #f05a28; }
.am-ed__zone--preview { background: #000; }
.am-ed__zone--export { background: #2563eb; border-color: #2563eb; color: #fff; padding: 6px 14px; }
.am-ed__zone--timeline { background: linear-gradient(#3b82f6 0 0) 8% 28% / 40% 26% no-repeat, linear-gradient(#a855f7 0 0) 52% 28% / 30% 26% no-repeat,
  linear-gradient(#22c55e 0 0) 8% 76% / 74% 22% no-repeat, transparent; }
.am-ed__zone--playhead { position: absolute; left: 46%; top: -4px; bottom: -4px; width: 26px; padding: 0; border: 0; background: none; }
.am-ed__zone--playhead::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 3px; background: #ef4444; }
.am-ed__zone--playhead .am-ed__tag { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #ef4444; color: #fff; padding: 1px 6px; border-radius: 6px; font-size: .68rem; }
.am-ed__stagebox { display: grid; place-items: center; padding: 14px; border-radius: 14px; background: repeating-conic-gradient(var(--surface-alt) 0 25%, var(--surface) 0 50%) 0 0 / 20px 20px; border: 1px solid var(--border); }
.am-ed__frame { background: #000; overflow: hidden; box-shadow: 0 0 0 3px #f05a28; border-radius: 4px; display: grid; }
.am-ed__scene { width: 100%; height: 100%; display: block; }
.am-ed__platforms { display: flex; flex-wrap: wrap; gap: 6px; }
.am-ed__platform { display: grid; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: .8rem; text-align: left; }
.am-ed__platform span { color: var(--text-muted); }
.am-ed__platform.is-on { border-color: #f05a28; box-shadow: 0 0 0 2px rgba(240, 90, 40, .25); }
.am-ed__inputs { display: flex; flex-wrap: wrap; gap: 12px; }
.am-ed__inputs label { display: grid; gap: 2px; font-size: .84rem; font-weight: 600; }
.am-ed__num { width: 120px; }
.am-ed__presets { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 575.98px) {
  .am-ed__middle { grid-template-columns: 1fr 1fr; }
  .am-ed__monitor { grid-column: 1 / -1; grid-row: 1; min-height: 110px; }
}
.am-ed__zone--timeline { place-items: start; }
.am-ed__zone--timeline .am-ed__tag { background: rgba(0, 0, 0, .45); padding: 1px 8px; border-radius: 6px; }

/* 2-kurs, 2-dars: montaj stoli (montagelab.js) */
.am-mt__top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.am-mt__library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 4px; }
.am-mt__media { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--border); border-inline-start: 5px solid var(--c); background: var(--surface); font-size: .84rem; }
.am-mt__media:hover { background: var(--surface-alt); }
.am-mt__media .am-mt__icon { grid-row: span 2; font-size: 1.5rem; }
.am-mt__media small { color: var(--text-muted); }
.am-mt__preview { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 4px;
  color: #fff; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); border: 3px solid #111827; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.am-mt__bigicon { font-size: 2.6rem; line-height: 1; }
.am-mt__tc { position: absolute; right: 8px; bottom: 6px; font-family: var(--bs-font-monospace, monospace); font-size: .78rem; background: rgba(0,0,0,.55); padding: 1px 6px; border-radius: 6px; }
.am-mt__tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.am-mt__tools .btn { min-width: 40px; font-weight: 700; }
.am-mt__select { width: auto; }
.am-mt__timeline { border-radius: 12px; background: #1f2430; padding: 6px 8px 10px; }
.am-mt__ruler { position: relative; height: 18px; font-size: .68rem; color: #9ca3af; }
.am-mt__ruler span { position: absolute; transform: translateX(-2px); border-left: 1px solid #4b5563; padding-left: 3px; }
.am-mt__track { position: relative; display: flex; align-items: center; min-height: 54px; background: repeating-linear-gradient(90deg, #262c38 0 49px, #2f3644 49px 50px); border-radius: 8px; }
.am-mt__clip { height: 46px; min-width: 18px; border-radius: 6px; border: 2px solid rgba(0,0,0,.25); background: var(--c); color: #fff; overflow: hidden;
  display: grid; align-content: center; padding: 0 6px; text-align: left; font-size: .74rem; text-shadow: 0 1px 2px rgba(0,0,0,.6); white-space: nowrap; }
.am-mt__clip.is-on { border-color: #fde047; box-shadow: 0 0 0 2px #fde047; z-index: 1; }
.am-mt__trans { margin: 0 -9px; z-index: 2; width: 18px; height: 18px; border-radius: 50%; background: #fde047; color: #111827; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.am-mt__playhead { position: absolute; top: -22px; bottom: -4px; width: 2px; background: #ef4444; z-index: 3; pointer-events: none; }
.am-mt__playhead::before { content: ""; position: absolute; top: 0; left: -5px; border: 6px solid transparent; border-top-color: #ef4444; }
.am-mt__tv { position: relative; aspect-ratio: 16 / 9; max-width: 460px; border-radius: 12px; overflow: hidden; background: #000; }
.am-mt__shot { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; color: #fff; font-size: 2.6rem;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); }
.am-mt__shot b { font-size: 1.1rem; }
.am-mt__shot.is-b { opacity: 0; }
.am-mt__tv.is-cut .am-mt__shot.is-b { animation: mt-cut 3s steps(1, end) .4s forwards; }
.am-mt__tv.is-fade .am-mt__shot.is-a { animation: mt-out 1.2s ease .4s forwards; }
.am-mt__tv.is-fade .am-mt__shot.is-b { animation: mt-in 1.2s ease 1.6s forwards; }
.am-mt__tv.is-dissolve .am-mt__shot.is-a { animation: mt-out 2s ease .4s forwards; }
.am-mt__tv.is-dissolve .am-mt__shot.is-b { animation: mt-in 2s ease .4s forwards; }
.am-mt__tv.is-wipe .am-mt__shot.is-b { opacity: 1; clip-path: inset(0 100% 0 0); animation: mt-wipe 1.6s ease-in-out .4s forwards; }
.am-mt__tv.is-slide .am-mt__shot.is-a { animation: mt-slide-out 1.4s ease-in-out .4s forwards; }
.am-mt__tv.is-slide .am-mt__shot.is-b { opacity: 1; transform: translateX(100%); animation: mt-slide-in 1.4s ease-in-out .4s forwards; }
@keyframes mt-cut { 0% { opacity: 0; } 30% { opacity: 1; } 100% { opacity: 1; } }
@keyframes mt-out { to { opacity: 0; } }
@keyframes mt-in { to { opacity: 1; } }
@keyframes mt-wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes mt-slide-out { to { transform: translateX(-100%); } }
@keyframes mt-slide-in { to { transform: translateX(0); } }
@media (max-width: 767.98px) { .am-mt__top { grid-template-columns: 1fr; } }

/* 2-kurs, 3-dars: titr, subtitr, effektlar va ovoz (titlelab.js) */
.am-tl__layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.am-tl__view, .am-tl__panel { display: grid; gap: 8px; min-width: 0; }
.am-tl__panel .am-seg { margin-bottom: 0; }
.am-tl__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.am-tl__two > * { min-width: 0; }
.am-tl__frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; container-type: inline-size; border: 3px solid #111827;
  background: radial-gradient(circle at 16% 18%, #facc15 0 7%, transparent 7.4%), linear-gradient(#38bdf8, #bae6fd 60%, #166534 60%); }
.am-tl__frame.is-studio { background: radial-gradient(circle at 50% 35%, #475569, #111827 75%); display: grid; place-items: center; }
.am-tl__safe { position: absolute; inset: 5%; border: 1px dashed rgba(253, 224, 71, .9); border-radius: 2px; pointer-events: none; }
.am-tl__text { position: absolute; left: 8%; top: 0; display: grid; width: max-content; padding: .25em .5em; line-height: 1.15; white-space: pre; font-family: system-ui, sans-serif; }
.am-tl__text b { font-weight: 800; }
.am-tl__text span { opacity: .92; }
.am-tl__text.is-s b { font-size: 4.2cqw; } .am-tl__text.is-s span { font-size: 2.6cqw; }
.am-tl__text.is-m b { font-size: 5.6cqw; } .am-tl__text.is-m span { font-size: 3.3cqw; }
.am-tl__text.is-l b { font-size: 8.4cqw; } .am-tl__text.is-l span { font-size: 4.6cqw; }
.am-tl__text.has-plate { background: rgba(0, 0, 0, .7); border-left: .35em solid #f05a28; border-radius: 4px; }
.am-tl__text.is-fade { animation: tl-fade 1s ease both; }
.am-tl__text.is-slide { animation: tl-rise .8s cubic-bezier(.2, .7, .3, 1) both; }
.am-tl__text.is-type { animation: tl-type 1.6s steps(18, end) both; }
@keyframes tl-fade { from { opacity: 0; } }
@keyframes tl-rise { from { opacity: 0; transform: translateY(60%); } }
@keyframes tl-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.am-tl__good { color: #16a34a; }
.am-tl__bad { color: #dc2626; }
.am-tl__field { display: grid; gap: 2px; font-size: .84rem; font-weight: 600; }
.am-tl__check { font-size: .86rem; margin: 0; }
.am-tl__swatches { display: flex; gap: 6px; margin-top: 4px; }
.am-tl__swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--border); background: var(--c); }
.am-tl__swatch.is-on { box-shadow: 0 0 0 3px #f05a28; }
.am-tl__speaker { font-size: 18cqw; line-height: 1; transition: transform .15s; }
.am-tl__speaker.is-talking { animation: tl-talk .3s ease-in-out infinite alternate; }
@keyframes tl-talk { to { transform: scale(1.05) translateY(-2%); } }
.am-tl__caption { position: absolute; left: 5%; right: 5%; bottom: 7%; display: grid; justify-items: center; gap: 2px; }
.am-tl__caption span { background: rgba(0, 0, 0, .75); color: #fff; padding: 1px 8px; border-radius: 4px; font-size: 3.6cqw; font-weight: 600; white-space: pre; }
.am-tl__clock { font-family: var(--bs-font-monospace, monospace); font-size: .82rem; color: var(--text-muted); }
.am-tl__row { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 6px; margin-top: 6px; }
.am-tl__rowname { color: #cbd5e1; font-size: .72rem; }
.am-tl__scrub { margin: 0 8px; }
.am-tl__lane { position: relative; height: 30px; border-radius: 6px; background: #262c38; }
.am-tl__lane .am-mt__playhead { top: -4px; }
.am-tl__seg { position: absolute; top: 3px; bottom: 3px; border-radius: 5px; display: grid; place-items: center; font-size: .74rem; font-weight: 800; padding: 0; border: 0; }
.am-tl__seg.is-speech { background: repeating-linear-gradient(90deg, #64748b 0 3px, #94a3b8 3px 5px); color: #fff; }
.am-tl__seg.is-sub { background: #fde047; color: #111827; border: 2px solid transparent; }
.am-tl__seg.is-sub.is-on { border-color: #f05a28; box-shadow: 0 0 0 2px #f05a28; z-index: 1; }
.am-tl__area { font-family: system-ui, sans-serif; resize: vertical; }
.am-tl__srt { margin: 4px 0 8px; padding: 8px 10px; max-height: 210px; overflow: auto; border-radius: 8px; background: #111827; color: #e5e7eb; font-size: .78rem; }
.am-tl__canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; border: 3px solid #111827; background: #000; }
.am-tl__gallery { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.am-tl__thumb { display: grid; gap: 2px; width: 150px; text-decoration: none; color: var(--text-muted); font-size: .74rem; }
.am-tl__thumb img { width: 100%; border-radius: 6px; border: 2px solid var(--border); }
.am-tl__thumb:hover img { border-color: #f05a28; }
.am-tl__tracks { display: grid; gap: 8px; }
.am-tl__track { display: grid; grid-template-columns: 220px 1fr; gap: 10px; align-items: stretch; padding: 8px; border-radius: 12px; background: #1f2430; color: #e5e7eb; }
.am-tl__trackhead { display: grid; gap: 4px; font-size: .84rem; }
.am-tl__volrow { display: grid; grid-template-columns: 1fr 44px; gap: 6px; align-items: center; }
.am-tl__flags { display: flex; flex-wrap: wrap; gap: 0 12px; }
.am-tl__wave { position: relative; display: flex; align-items: center; gap: 1px; min-height: 70px; padding: 0 2px; border-radius: 8px; background: #262c38; }
.am-tl__wave i { flex: 1; border-radius: 2px; background: #60a5fa; }
.am-tl__wave.is-orig i { background: #f87171; }
.am-tl__wave.is-music i { background: #a78bfa; }
.am-tl__wave.is-voice i { background: #34d399; }
.am-tl__wave.is-muted i { background: #4b5563; }
.am-tl__wave .am-mt__playhead { top: 0; bottom: 0; }
/* 2-kurs, 4-dars: audio sozlamalari (audiolab.js) */
.am-al__layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.am-al__view, .am-al__panel { display: grid; gap: 8px; min-width: 0; }
.am-al__panel .am-seg { margin-bottom: 0; }
.am-al__check { font-size: .88rem; margin: 0; }
.am-al__roll, .am-al__wave, .am-al__ir { width: 100%; height: auto; border-radius: 10px; background: #1f2430; display: block; }
.am-al__slot { fill: rgba(34, 197, 94, .14); }
.am-al__slottext { fill: #86efac; font-size: 12px; font-weight: 700; }
.am-al__tick { fill: #9ca3af; font-size: 11px; }
.am-al__note { fill: #60a5fa; }
.am-al__note.is-over { fill: #f87171; }
.am-al__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; }
.am-al__stat { display: grid; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.am-al__stat small { color: var(--text-muted); font-size: .72rem; }
.am-al__stat b { font-size: .95rem; }
.am-al__stat.is-good { border-color: #16a34a; background: var(--ok-bg); }
.am-al__stat.is-bad { border-color: #dc2626; background: #fdeaea; color: #111827; }
.am-al__ceil { stroke: #ef4444; stroke-dasharray: 4 4; stroke-width: 1; }
.am-al__bar { fill: #34d399; }
.am-al__bar.is-clip { fill: #ef4444; }
.am-al__meter { position: relative; height: 18px; border-radius: 9px; overflow: hidden;
  background: linear-gradient(90deg, #1f2430 0 calc(57 / 66 * 100%), #3f2a12 calc(57 / 66 * 100%) calc(60 / 66 * 100%), #3f1212 calc(60 / 66 * 100%)); }
.am-al__meterfill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #22c55e, #a3e635); transition: width .15s; }
.am-al__meterfill.is-hot { background: linear-gradient(90deg, #22c55e, #f59e0b); }
.am-al__meterfill.is-clip { background: linear-gradient(90deg, #22c55e, #f59e0b 70%, #ef4444); }
.am-al__meter i { position: absolute; top: 0; bottom: 0; border-left: 1px solid rgba(255, 255, 255, .35); }
.am-al__meter i::after { content: attr(data-db); position: absolute; left: 2px; top: 1px; font-size: 10px; font-style: normal; color: #e5e7eb; }
.am-al__grid { stroke: #374151; stroke-width: 1; }
.am-al__direct { stroke: #fde047; stroke-width: 4; }
.am-al__early { stroke: #fb923c; stroke-width: 2; }
.am-al__tail { fill: rgba(167, 139, 250, .45); stroke: #a78bfa; stroke-width: 2; }
.am-al__rt { stroke: #f87171; stroke-dasharray: 5 4; stroke-width: 1.5; }
.am-al__rttext { fill: #fca5a5; font-size: 12px; font-weight: 700; }
.am-al__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .8rem; color: var(--text-muted); }
.am-al__legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.am-al__legend .is-direct::before { background: #fde047; }
.am-al__legend .is-early::before { background: #fb923c; }
.am-al__legend .is-tail::before { background: #a78bfa; }
.am-al__echo { display: grid; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-alt); }
.am-al__echo p { margin: 0; }
.am-al__room { width: 100%; height: auto; border-radius: 10px; background: #1f2430; }
.am-al__person { font-size: 26px; }
.am-al__wall { fill: #94a3b8; }
.am-al__ray { stroke: #60a5fa; stroke-width: 2; stroke-dasharray: 6 4; }
.am-al__ray.is-back { stroke: #34d399; }
.am-al__ray.is-echo { stroke: #f87171; }
@media (max-width: 767.98px) { .am-al__layout { grid-template-columns: 1fr; } }

/* 2-kurs, 5-dars: audio muharriri (cutlab.js) */
.am-cl__mock { display: grid; gap: 6px; padding: 8px; border-radius: 14px; background: #1f2430; border: 1px solid var(--border); color: #e5e7eb; }
.am-cl__toolrow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.am-cl__trackrow { display: grid; grid-template-columns: 120px 1fr; gap: 6px; }
.am-cl__zone { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; min-height: 38px; padding: 6px 8px;
  border: 2px dashed rgba(255, 255, 255, .25); border-radius: 8px; background: rgba(255, 255, 255, .04); color: #e5e7eb; font-size: .78rem; font-weight: 600; cursor: pointer; overflow: hidden; }
.am-cl__zone:hover { background: rgba(255, 255, 255, .1); }
.am-cl__zone.is-seen { border-style: solid; border-color: rgba(34, 197, 94, .6); }
.am-cl__zone.is-on { background: rgba(240, 90, 40, .25); border-color: #f05a28; }
.am-cl__zone--menu { justify-content: flex-start; letter-spacing: .02em; }
.am-cl__zone--transport span { font-size: 1rem; letter-spacing: .1em; }
.am-cl__zone--meter { flex-direction: column; align-items: stretch; gap: 4px; }
.am-cl__meterbar { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #22c55e 70%, #f59e0b 85%, #ef4444); }
.am-cl__meterbar.is-short { width: 60%; }
.am-cl__zone--ruler { justify-content: flex-start; min-height: 26px; font-family: var(--bs-font-monospace, monospace); color: #9ca3af; white-space: pre; }
.am-cl__zone--trackhead { flex-direction: column; align-items: flex-start; gap: 2px; }
.am-cl__zone--wave { min-height: 96px; padding: 4px; }
.am-cl__mockwave { display: flex; align-items: center; gap: 2px; width: 100%; height: 80px; }
.am-cl__mockwave i { flex: 1; background: #60a5fa; border-radius: 1px; }
.am-cl__mocksel { position: absolute; left: 30%; width: 22%; top: 4px; bottom: 4px; background: rgba(255, 255, 255, .18); pointer-events: none; }
.am-cl__zone--rate, .am-cl__zone--selection { font-family: var(--bs-font-monospace, monospace); }
.am-cl__zone--selection { grid-column: span 2; }
.am-cl__canvas { width: 100%; height: 180px; border-radius: 10px; cursor: text; touch-action: none; display: block; }
.am-cl__canvas:focus-visible { outline: 3px solid #f05a28; outline-offset: 2px; }
.am-cl__field { display: grid; gap: 2px; font-size: .78rem; font-weight: 600; }
.am-cl__num { width: 96px; }
.am-cl__stats { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .9rem; }
.am-cl__library { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.am-cl__track { position: relative; height: 92px; }
.am-cl__clip { position: absolute; height: 40%; min-width: 18px; border-radius: 6px; border: 2px solid rgba(0, 0, 0, .25); background: var(--c); color: #fff; overflow: hidden;
  display: grid; align-content: center; padding: 0 6px; text-align: left; font-size: .74rem; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.am-cl__clip.has-cross { background: linear-gradient(90deg, var(--c) calc(100% - 22px), color-mix(in srgb, var(--c) 30%, transparent)); }
.am-cl__clip.is-on { border-color: #fde047; box-shadow: 0 0 0 2px #fde047; z-index: 1; }
.am-cl__track .am-mt__playhead { top: 0; bottom: 0; }
.am-cl__empty { margin: 0; padding: 26px 0; text-align: center; color: #9ca3af; font-size: .86rem; }
.am-cl__check { font-size: .86rem; margin: 0; }
.am-cl__warn { color: #b45309; }
/* 2-kurs, 6-dars: eksport (exportlab.js) */
.am-ex__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.am-ex__panel, .am-ex__view { display: grid; gap: 8px; min-width: 0; }
.am-ex__row { display: grid; gap: 4px; }
.am-ex__row .am-seg { margin-bottom: 0; }
.am-ex__task { margin: 0; padding: 10px 12px; border-radius: 10px; border-inline-start: 4px solid #f05a28; background: var(--surface-alt); font-size: .9rem; }
.am-ex__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.am-ex__stat { display: grid; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.am-ex__stat small { color: var(--text-muted); font-size: .72rem; }
.am-ex__stat b { font-size: .98rem; }
.am-ex__stat.is-good { border-color: #16a34a; background: var(--ok-bg); }
.am-ex__band { position: relative; height: 16px; border-radius: 8px; background: #e5e7eb; overflow: hidden; }
.am-ex__bandfill { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #22c55e, #3b82f6 60%, #a855f7); transition: width .2s; }
.am-ex__bandmark { position: absolute; top: 0; bottom: 0; border-left: 2px dashed #111827; }
.am-ex__field { display: grid; gap: 2px; font-size: .84rem; font-weight: 600; }
.am-ex__filename { font-family: var(--bs-font-monospace, monospace); }
.am-ex__rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: .86rem; }
.am-ex__rules .is-ok { color: #16a34a; }
.am-ex__rules .is-bad { color: #dc2626; }
.am-ex__guessrow { display: flex; gap: 6px; align-items: center; }
.am-ex__guess { width: 140px; }
.am-ex__good { margin: 0; color: #16a34a; font-weight: 700; font-size: .88rem; }
.am-ex__bad { margin: 0; color: #dc2626; font-weight: 700; font-size: .88rem; }
.am-ex__files { display: grid; gap: 8px; }
.am-ex__file { display: grid; gap: 4px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: .86rem; }
.am-ex__file b { font-family: var(--bs-font-monospace, monospace); word-break: break-all; }
.am-ex__file audio { width: 100%; height: 36px; }
.am-ex__file .btn { justify-self: start; }
.am-ex__ratio { margin: 0; font-size: 1.05rem; font-weight: 800; color: #7c3aed; }
@media (max-width: 767.98px) { .am-ex__layout { grid-template-columns: 1fr; } }

/* 2-kurs, 7-dars: 3D printer va tarmoq tezligi (printlab.js) */
.am-3d { display: grid; gap: 12px; --p3-a: #1f5a82; --p3-b: #3b82c4; --p3-frame: #94a3b8; --p3-bed: #eef3f8; }
[data-bs-theme="dark"] .am-3d { --p3-a: #5fa3d9; --p3-b: #8cc0e6; --p3-frame: #64748b; --p3-bed: #17293a; }
.am-3d__tabs { flex-wrap: wrap; margin-bottom: 0; justify-self: start; }
.am-3d__pane { display: grid; gap: 10px; min-width: 0; }
.am-3d__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.am-3d__field { flex: 1 1 160px; min-width: 0; display: grid; gap: 4px; font-size: .84rem; font-weight: 600; }
.am-3d__go { flex: 0 0 auto; }
.am-3d__canvas { width: 100%; height: auto; border-radius: 14px; background: var(--p3-bed); display: block; }
.am-3d__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 6px; }
.am-3d__stat { display: grid; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); }
.am-3d__stat small { color: var(--text-muted); font-size: .72rem; }
.am-3d__stat b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.am-3d__note { margin: 0; font-size: .84rem; color: var(--text-muted); }
.am-3d__bars { display: grid; gap: 8px; }
.am-3d__bar { display: grid; grid-template-columns: 40px minmax(0, 1fr) 120px; gap: 10px; align-items: center; font-size: .88rem; }
.am-3d__track { height: 22px; border-radius: 6px; background: var(--surface-alt); overflow: hidden; }
.am-3d__fill { display: block; height: 100%; background: var(--p3-a); border-radius: 0 4px 4px 0; transition: width .35s; }
.am-3d__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.am-3d__ratio { margin: 0; font-weight: 800; color: #7c3aed; }
.am-3d__ratio:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .am-3d__fill { transition: none; } }
@media (max-width: 575.98px) { .am-3d__bar { grid-template-columns: 34px minmax(0, 1fr) 96px; } }
/* 2-kurs, 8-dars: AI va biometriya (ailab.js) */
.am-ai { display: grid; gap: 12px; --ai-apple: #d83a3a; --ai-orange: #f08c00; --ai-owner: #16a34a; --ai-stranger: #64748b;
  --ai-grid: #cbd5e1; --ai-text: #475569; --ai-ink: #0f172a; --ai-bed: #f8fafc; }
[data-bs-theme="dark"] .am-ai { --ai-apple: #ff6b6b; --ai-orange: #ffa94d; --ai-owner: #4ade80; --ai-stranger: #94a3b8;
  --ai-grid: #334155; --ai-text: #cbd5e1; --ai-ink: #f1f5f9; --ai-bed: #0f1b27; }
.am-ai__tabs { flex-wrap: wrap; margin-bottom: 0; justify-self: start; }
.am-ai__pane { display: grid; gap: 10px; min-width: 0; }
.am-ai__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.am-ai__seg { flex-wrap: wrap; margin-bottom: 0; }
.am-ai__canvas { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--border); background: var(--ai-bed); display: block; cursor: crosshair; }
.am-ai__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.am-ai__msg { margin: 0; font-size: .9rem; }
.am-ai__msg--bio_low { color: #b42318; }
.am-ai__msg--bio_high { color: #b45309; }
.am-ai__msg--bio_mid { color: var(--ok-500); }
[data-bs-theme="dark"] .am-ai__msg--bio_low { color: #ff8a80; }
[data-bs-theme="dark"] .am-ai__msg--bio_high { color: #fbbf24; }
.am-ai__count, .am-ai__note { color: var(--text-muted); font-size: .8rem; margin: 0; }
.am-ai__field { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; }
.am-ai__thr { font-variant-numeric: tabular-nums; }
.am-ai__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 6px; }
.am-ai__stat { display: grid; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); border-inline-start-width: 4px; }
.am-ai__stat--far { border-inline-start-color: var(--ai-stranger); }
.am-ai__stat--frr { border-inline-start-color: var(--ai-owner); }
.am-ai__stat small { color: var(--text-muted); font-size: .72rem; }
.am-ai__stat b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (max-width: 575.98px) {
  .am-cl__toolrow { grid-template-columns: 1fr 1fr; }
  .am-cl__zone--menu, .am-cl__zone--selection { grid-column: 1 / -1; }
  .am-cl__trackrow { grid-template-columns: 90px 1fr; }
}

@media (max-width: 767.98px) {
  .am-tl__layout, .am-tl__two { grid-template-columns: 1fr; }
  .am-tl__track { grid-template-columns: 1fr; }
}
