/* Kafedra portali — 2-dizayn: "zamonaviy ilova".
   Telefon birinchi; kompyuterda (>=960px) chapda to'q yon menyu.
   Shriftlar o'zimizda (static/fonts) — internetsiz ham ishlaydi. */
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/onest-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --navy: #0B2545; --navy-2: #134074; --teal: #13A89E;
  --hero: linear-gradient(140deg, #0B2545 0%, #134074 58%, #138C93 100%);
  --bg: #EEF2F7; --surface: #FFFFFF; --surface-2: #F3F6FA; --line: #E1E7EF; --line-2: #CFD8E4;
  --ink: #0F1B2D; --ink-2: #4A5A70; --ink-3: #6F7F96;
  --accent: #134074; --accent-ink: #FFFFFF; --accent-soft: #E3EBF6; --link: #1A5BB8;
  --now: #0E8F86; --now-soft: #DDF4F1;
  --ok: #0E8459; --ok-soft: #DFF4EA; --warn: #A86304; --warn-soft: #FDF0DA; --bad: #C8323A; --bad-soft: #FCE6E6;
  --ok-c: #119C6B; --warn-c: #E8920F; --bad-c: #E0474C;
  --lect: #3B6FE0; --prac: #E8762B;
  --r-xl: 24px; --r: 18px; --r-md: 14px; --r-sm: 10px;
  --lift: 0 1px 2px rgba(11, 37, 69, .05), 0 6px 20px -8px rgba(11, 37, 69, .14);
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Unbounded", "Onest", -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
  --side: 264px; --bar: 56px; --nav: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --hero: linear-gradient(140deg, #0A1A33 0%, #10325C 60%, #0F6E73 100%);
    --bg: #08111F; --surface: #0F1B2E; --surface-2: #15233A; --line: #1F2F48; --line-2: #2A3D5A;
    --ink: #E8EEF6; --ink-2: #A7B4C6; --ink-3: #8090AA;
    --accent: #8DB4F0; --accent-ink: #08111F; --accent-soft: #172B4A; --link: #8DB4F0;
    --now: #3DD1C4; --now-soft: #0E2F33;
    --ok: #4CC994; --ok-soft: #0F2C22; --warn: #F0B04C; --warn-soft: #33250E; --bad: #F2797D; --bad-soft: #351719;
    --ok-c: #34B985; --warn-c: #E8A33A; --bad-c: #EC6166;
    --lect: #78A0F2; --prac: #F09A5C;
    --lift: 0 0 0 1px var(--line);
  }
}

/* ---------- asos ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 23px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -.015em; font-weight: 700; }
h2 { font-size: 17px; line-height: 1.3; margin: 0 0 12px; font-weight: 650; letter-spacing: -.005em; }
h3 { font-size: 15px; margin: 0 0 8px; font-weight: 650; }
p { margin: 0 0 12px; }
.muted { color: var(--ink-2); } .small { font-size: 13.5px; } .tiny { font-size: 12.5px; color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.big { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.05; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2.5px solid var(--link); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- karkas ---------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--navy); color: #DCE6F4;
        display: flex; flex-direction: column; z-index: 40; transform: translateX(-102%); transition: transform .24s cubic-bezier(.2, .8, .2, 1); }
.side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 60% at 0% 100%, rgba(19, 168, 158, .28), transparent 60%); pointer-events: none; }
.side > * { position: relative; }
.side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(5, 14, 28, .45); }
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px 16px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(140deg, #1C5FA8, var(--teal)); color: #fff;
              display: grid; place-items: center; font: 700 15px var(--display); letter-spacing: .02em; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.brand b { display: block; font-size: 14.5px; line-height: 1.2; color: #fff; }
.brand span { font-size: 12px; color: #93A6C2; display: block; line-height: 1.3; margin-top: 2px; }
.side nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.side .grp { font-size: 12px; color: #8A9EBC; margin: 18px 12px 6px; font-weight: 500; }
.side nav a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; color: #C9D6E8; min-height: 44px; font-weight: 500; }
.side nav a:hover { background: rgba(255, 255, 255, .06); text-decoration: none; color: #fff; }
.side nav a.on { background: rgba(255, 255, 255, .11); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--teal); }
.side nav a.on svg.i { color: #6FE3D8; }
.side .iconbtn { color: #C9D6E8; } .side .iconbtn:hover { background: rgba(255, 255, 255, .08); }
.me { margin: 0 12px 12px; padding: 10px 10px 10px 12px; display: flex; gap: 10px; align-items: center; background: rgba(255, 255, 255, .06); border-radius: 14px; }
.me .who { flex: 1; min-width: 0; } .me .who b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.me .who .tiny { color: #93A6C2; }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 13px;
      display: grid; place-items: center; flex: none; overflow: hidden; letter-spacing: .02em; }
.side .av { background: rgba(255, 255, 255, .14); color: #fff; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av.lg { width: 64px; height: 64px; font-size: 20px; }

.bar { position: sticky; top: 0; z-index: 30; min-height: calc(var(--bar) + env(safe-area-inset-top)); background: var(--navy); color: #fff;
       display: flex; align-items: center; gap: 8px; padding: env(safe-area-inset-top) 6px 0 18px; }
.bar .title { flex: 1; font-weight: 650; font-size: 16.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .iconbtn { color: #fff; } .bar .iconbtn:hover { background: rgba(255, 255, 255, .1); }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); border-radius: 50%; cursor: pointer; flex: none; }
.iconbtn:hover { background: var(--surface-2); }
main { padding: 16px 16px calc(var(--nav) + 36px + env(safe-area-inset-bottom)); max-width: 1180px; margin: 0 auto; }

.bnav { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30; background: var(--surface);
        border-radius: 22px; display: flex; padding: 6px; box-shadow: 0 10px 30px -10px rgba(11, 37, 69, .35), 0 0 0 1px var(--line); }
.bnav a, .bnav button { flex: 1; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        font: 500 11.5px var(--font); color: var(--ink-3); border: 0; background: none; cursor: pointer; padding: 0 2px; border-radius: 16px; min-width: 0; }
.bnav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bnav svg.i { width: 46px; height: 28px; padding: 4px 13px; box-sizing: border-box; border-radius: 10px; transition: background .2s; }
.bnav a.on { color: var(--accent); font-weight: 650; }
.bnav a.on svg.i { background: var(--accent-soft); stroke-width: 2.1; }
.bnav a:hover { text-decoration: none; }
@media (min-width: 960px) {
  .side { transform: none; }
  .bar, .bnav, .side .close { display: none; }
  .shell { margin-left: var(--side); }
  main { padding: 28px 36px 56px; }
  h1 { font-size: 27px; }
}

/* ---------- sarlavha (hero) — gradient, sahifa boshida ---------- */
.hero { background: var(--hero); color: #fff; margin: -16px -16px 16px; padding: 8px 18px 22px; position: relative; overflow: hidden; isolation: isolate; }
.hero::after { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%;
               border: 36px solid rgba(255, 255, 255, .05); z-index: -1; }
.hero h1 { color: #fff; }
.hero .sub { color: #B9CAE2; font-size: 14px; }
.hero .sub a, .hero p a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero a:hover { text-decoration: none; }
.hero .head .sub { color: #B9CAE2; }
.hero.tuck { padding-bottom: 54px; margin-bottom: -38px; }
.pull { position: relative; z-index: 1; }
@media (min-width: 960px) {
  .hero { margin: 0 0 20px; border-radius: var(--r-xl); padding: 26px 30px; }
  .hero.tuck { padding-bottom: 26px; margin-bottom: 20px; }
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
        background: rgba(255, 255, 255, .12); color: #E6EEF9; white-space: nowrap; }
.chip b { color: #fff; }
.chip.now { background: rgba(61, 209, 196, .22); color: #B6F3EC; }
.back { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 600; margin: 0 0 10px -6px; color: #CFE0F5; }
.back svg.i { width: 18px; height: 18px; }
.back:hover { color: #fff; text-decoration: none; }

/* ---------- komponentlar ---------- */
.head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.head .sub { color: var(--ink-2); font-size: 14px; }
.card { background: var(--surface); border-radius: var(--r); padding: 18px; box-shadow: var(--lift); margin-bottom: 16px; min-width: 0; }
.card > h2:first-child { margin-top: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h2 { margin: 0; }
.card-h > a { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 16px; }
.grid2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .grid2 { grid-template-columns: 1fr 1fr; align-items: start; } .grid2.wide-l { grid-template-columns: 1.3fr 1fr; } }
.stat { background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; min-width: 0; box-shadow: var(--lift); position: relative; }
.stat .k { font-size: 13px; color: var(--ink-2); }
.stat .v { font: 600 22px/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.stat .s { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.stat.ok::before, .stat.bad::before, .stat.warn::before { content: ""; position: absolute; left: 16px; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; }
.stat.ok::before { background: var(--ok-c); } .stat.bad::before { background: var(--bad-c); } .stat.warn::before { background: var(--warn-c); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 650; padding: 3px 10px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.kam, .pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.ortiq, .pill.warn { background: var(--warn-soft); color: var(--warn); } .pill.q { background: var(--surface-2); color: var(--ink-2); }
.pill.now { background: var(--now-soft); color: var(--now); }
.hero .pill.ok { background: rgba(76, 201, 148, .2); color: #A8F0CF; } .hero .pill.kam { background: rgba(242, 121, 125, .22); color: #FFC4C6; }
.hero .pill.ortiq { background: rgba(240, 176, 76, .22); color: #FFDDA6; }
.note { border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 16px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.note svg.i { margin-top: 1px; }
.note.ok { background: var(--ok-soft); color: var(--ok); } .note.bad { background: var(--bad-soft); color: var(--bad); }
.note.warn { background: var(--warn-soft); color: var(--warn); } .note.info { background: var(--accent-soft); color: var(--accent); }
.note a { color: inherit; text-decoration: underline; font-weight: 600; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 14px;
       border: 0; background: var(--surface-2); color: var(--ink); font: 600 14.5px var(--font); cursor: pointer; text-decoration: none !important;
       transition: transform .12s ease, filter .15s ease, background .15s ease; box-shadow: inset 0 0 0 1px var(--line); }
.btn:hover { background: var(--accent-soft); }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--navy-2); color: #fff; box-shadow: 0 6px 16px -8px rgba(19, 64, 116, .7); }
.btn.pri:hover { filter: brightness(1.12); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.pri { background: #2E6FC4; } }
.btn.light { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.btn.light:hover { background: rgba(255, 255, 255, .22); }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; background: var(--surface); padding: 4px; border-radius: 16px; box-shadow: var(--lift); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; white-space: nowrap; min-height: 42px; display: flex; align-items: center; gap: 6px; flex: 1; justify-content: center; font-size: 14px; }
.tabs a .cnt { font-size: 12px; font-weight: 650; color: var(--ink-2); background: var(--surface-2); border-radius: 999px; padding: 0 7px; }
.tabs a.on { color: #fff; background: var(--navy-2); } .tabs a.on .cnt { background: rgba(255, 255, 255, .18); color: #fff; }
.tabs a:hover { text-decoration: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tabs a.on { background: #2E6FC4; } }
.seg { display: inline-flex; border-radius: 14px; padding: 4px; background: var(--surface); box-shadow: var(--lift); gap: 2px; }
.seg a { padding: 6px 14px; color: var(--ink-2); font-weight: 600; font-size: 13.5px; min-height: 38px; display: flex; align-items: center; gap: 6px; border-radius: 10px; white-space: nowrap; }
.seg a.on { background: var(--accent-soft); color: var(--accent); } .seg a:hover { text-decoration: none; }
.seg a i { width: 6px; height: 6px; border-radius: 50%; background: var(--now); }
.hero .seg { background: rgba(255, 255, 255, .1); box-shadow: none; }
.hero .seg a { color: #CFE0F5; text-decoration: none; } .hero .seg a.on { background: #fff; color: var(--navy); }
.hero .seg a i { background: #6FE3D8; } .hero .seg a.on i { background: var(--now); }

/* filtr "chip"lari */
.fchips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px 10px; }
.fchips::-webkit-scrollbar { display: none; }
.fchips a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; min-height: 40px; border-radius: 999px; background: var(--surface);
            box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.fchips a:hover { text-decoration: none; background: var(--surface-2); }
.fchips a i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.fchips a b { font-variant-numeric: tabular-nums; color: var(--ink); }
.fchips a.on { background: var(--navy-2); color: #fff; box-shadow: none; } .fchips a.on b { color: #fff; }
.dot-ok { background: var(--ok-c); } .dot-kam { background: var(--bad-c); } .dot-ortiq { background: var(--warn-c); }

/* ---------- forma ---------- */
.form { display: grid; gap: 16px; }
.form.two { grid-template-columns: 1fr; } @media (min-width: 720px) { .form.two { grid-template-columns: 1fr 1fr; } .form.two .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field .help { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.field .err { font-size: 13px; color: var(--bad); margin-top: 5px; font-weight: 500; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=date], input[type=search], input[type=tel], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; font: 16px var(--font); color: var(--ink); background: var(--surface-2);
  border: 1.5px solid var(--line); border-radius: 14px; transition: border-color .15s, background .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--link); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--link) 15%, transparent); }
.field:has(.err) input { border-color: var(--bad); }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237D8CA2' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
input[type=file] { width: 100%; font: 14px var(--font); padding: 12px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); color: var(--ink-2); }
input[type=file]::file-selector-button { font: 600 14px var(--font); padding: 8px 14px; margin-right: 10px; border: 0; border-radius: 10px; background: var(--navy-2); color: #fff; cursor: pointer; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--navy-2); flex: none; }
.check { display: flex; gap: 10px; align-items: center; min-height: 44px; font-weight: 500 !important; }
.filters { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 12px; }
@media (min-width: 720px) { .filters { grid-template-columns: 2fr 1fr auto; } }
.search { position: relative; margin-bottom: 12px; display: flex; gap: 8px; }
.search > svg.i { position: absolute; left: 14px; top: 15px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 44px; background: var(--surface); box-shadow: var(--lift); border-color: transparent; }
.pw { position: relative; }
.pw input { padding-right: 52px; }
.pw button { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 12px; display: grid; place-items: center; }
.pw button:hover { color: var(--ink); }

/* ---------- jadvallar: telefonda kartochka ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tr.total td { font-weight: 700; border-top: 2px solid var(--line); }
.tbl a.rowlink { color: var(--ink); font-weight: 600; }
@media (max-width: 719px) {
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody, .tbl.cards tr, .tbl.cards td { display: block; width: 100%; }
  .tbl.cards tr { border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; background: var(--surface-2); }
  .tbl.cards td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .tbl.cards td::before { content: attr(data-l); color: var(--ink-3); font-size: 13px; text-align: left; flex: none; }
  .tbl.cards td.lead { display: block; text-align: left; font-weight: 600; font-size: 15px; padding-bottom: 6px; }
  .tbl.cards td.lead::before { content: none; }
  .tbl.cards td.n { white-space: normal; }
  .tbl.cards tr.total { background: var(--accent-soft); }
  .tbl.cards td.z { display: none; }
}

/* ---------- me'yor shkalasi (chiziqli) ---------- */
.gauge { position: relative; height: 12px; background: var(--surface-2); border-radius: 99px; margin: 8px 0 4px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.gauge .band { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--ok-c) 22%, transparent);
               border-left: 2px solid var(--ok-c); border-right: 2px solid var(--ok-c); }
.gauge .val { position: absolute; left: 0; top: 3px; bottom: 3px; border-radius: 99px; background: var(--ink-2); }
.gauge .val.ok { background: var(--ok-c); } .gauge .val.kam { background: var(--bad-c); } .gauge .val.ortiq { background: var(--warn-c); }
.gauge.sm { height: 8px; margin: 0; } .gauge.sm .val { top: 2px; bottom: 2px; }
.ticks { position: relative; height: 16px; font-size: 11px; color: var(--ink-3); }
.ticks span { position: absolute; transform: translateX(-50%); }
.prog { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; display: flex; }
.prog > i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.hero .prog { background: rgba(255, 255, 255, .14); } .hero .prog > i { background: linear-gradient(90deg, #6FE3D8, #fff); }
.split { display: flex; height: 10px; border-radius: 99px; overflow: hidden; gap: 3px; margin: 10px 0 8px; }
.split > i { display: block; height: 100%; border-radius: 99px; min-width: 4px; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- SVG halqa ---------- */
.ring { position: relative; display: grid; place-items: center; flex: none; width: 120px; height: 120px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring circle { fill: none; }
.ring .trk { stroke: var(--surface-2); }
.ring .bnd { stroke: var(--ok-c); stroke-linecap: round; }
.ring .val { stroke: var(--ink-2); stroke-linecap: round; animation: draw 1s cubic-bezier(.3, .7, .2, 1) both .1s; }
.ring .val.ok { stroke: var(--ok-c); } .ring .val.kam { stroke: var(--bad-c); } .ring .val.ortiq { stroke: var(--warn-c); }
.ring .val.now { stroke: #6FE3D8; }
.ring .seg { animation: draw .9s cubic-bezier(.3, .7, .2, 1) both .1s; }
.ring .seg.ok { stroke: var(--ok-c); } .ring .seg.kam { stroke: var(--bad-c); } .ring .seg.ortiq { stroke: var(--warn-c); }
.ring .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; }
.ring .mid .big { font-size: 26px; }
.ring .mid small { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.hero .ring .trk { stroke: rgba(255, 255, 255, .13); }
.hero .ring .mid small { color: #B9CAE2; }
.hero .ring .mid .big { color: #fff; }
@keyframes draw { from { stroke-dasharray: 0 1000; } }

/* ---------- BUGUN ---------- */
.hello { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.hello .av { width: 46px; height: 46px; background: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 0 0 2px rgba(255, 255, 255, .22); }
.focus { margin-top: 18px; background: rgba(255, 255, 255, .08); border-radius: 20px; padding: 16px; display: flex; gap: 16px; align-items: center;
         box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.focus .ring { width: 104px; height: 104px; }
.focus .ring .mid .big { font-size: 24px; }
.focus .info { min-width: 0; flex: 1; }
.focus .state { font-size: 13px; font-weight: 650; color: #6FE3D8; display: flex; align-items: center; gap: 7px; }
.focus .state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.focus.live .state::before { animation: pulse 1.6s ease-in-out infinite; }
.focus .fan { font-size: 17px; font-weight: 700; line-height: 1.25; margin: 4px 0 6px; color: #fff; overflow-wrap: anywhere; }
.focus .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: #C7D6EA; }
.focus .meta span { display: inline-flex; align-items: center; gap: 4px; } .focus .meta svg.i { width: 15px; height: 15px; }
.focus.rest .state { color: #C7D6EA; }
.focus.rest .ring .mid .big { font-size: 22px; }
@media (min-width: 960px) { .focus { max-width: 640px; padding: 18px 22px; } .focus .fan { font-size: 19px; } }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }

.week { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.week a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 0 8px; border-radius: 14px; color: var(--ink-2); background: var(--surface-2); }
.week a:hover { text-decoration: none; background: var(--accent-soft); }
.week a small { font-size: 11.5px; font-weight: 600; }
.week a b { font: 600 16px/1.25 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.week a .dots { display: flex; gap: 3px; height: 6px; align-items: center; }
.week a .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.week a.today { background: var(--navy-2); color: #B9CAE2; } .week a.today b { color: #fff; } .week a.today .dots i { background: #6FE3D8; }
.week a.past { opacity: .5; }

/* ---------- dars kartochkalari ---------- */
.lesson { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 12px 14px 12px 16px; border-radius: var(--r-md);
          background: var(--surface-2); margin-bottom: 8px; position: relative; overflow: hidden; }
.lesson::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--prac); }
.lesson.lect::before { background: var(--lect); }
.lesson.now { background: var(--now-soft); box-shadow: inset 0 0 0 1.5px var(--now); }
.lesson.now::before { background: var(--now); }
.lesson.past { opacity: .55; }
.lesson .t { font-variant-numeric: tabular-nums; } .lesson .t b { display: block; font-size: 15.5px; font-weight: 650; } .lesson .t span { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.lesson .f { font-weight: 650; line-height: 1.3; } .lesson .m { font-size: 13px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; }
.lesson .m span { display: inline-flex; align-items: center; gap: 4px; } .lesson .m svg.i { width: 14px; height: 14px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 1px; }
.tag.lect { background: color-mix(in srgb, var(--lect) 15%, transparent); color: var(--lect); }
.tag.prac { background: color-mix(in srgb, var(--prac) 15%, transparent); color: var(--prac); }
.day h3 { margin: 18px 0 8px; display: flex; gap: 8px; align-items: center; }
.subh { font-size: 14px; color: var(--ink-2); font-weight: 600; margin: 16px 0 8px; }
.empty { text-align: center; padding: 26px 16px; color: var(--ink-2); }
.empty svg.i { width: 30px; height: 30px; color: var(--ink-3); display: block; margin: 0 auto 8px; stroke-width: 1.5; }

/* ---------- Dars jadvali ---------- */
.daytabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 12px; }
.daytabs button { border: 0; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 0; border-radius: 14px;
                  background: var(--surface); box-shadow: var(--lift); color: var(--ink-2); min-height: 52px; }
.daytabs button small { font-size: 12px; font-weight: 650; }
.daytabs button b { font: 600 15px/1.25 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.daytabs button.today small { color: var(--now); }
.daytabs button[aria-selected=true] { background: var(--navy-2); color: #B9CAE2; } .daytabs button[aria-selected=true] b { color: #fff; }
.daytabs button[aria-selected=true].today small { color: #6FE3D8; }
.daytabs button:disabled { opacity: .5; cursor: default; box-shadow: none; background: var(--surface-2); }
.js .tt-mob .day[data-off] { display: none; }
.js .tt-mob .day h3 { display: none; }
.no-js .daytabs { display: none; }
.tt-desk { display: none; } .tt-mob { display: block; }
@media (min-width: 960px) { .tt-desk { display: block; } .tt-mob { display: none; } }
.ttg { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; }
.ttg th { font-size: 13px; color: var(--ink-2); font-weight: 600; padding: 4px; }
.ttg thead th.today { color: var(--now); }
.ttg th.p { width: 88px; text-align: left; font-variant-numeric: tabular-nums; }
.ttg td { vertical-align: top; height: 76px; background: var(--surface-2); border-radius: 12px; padding: 0; }
.ttg td.today { background: color-mix(in srgb, var(--now) 9%, var(--surface-2)); }
.ttg .cell { padding: 8px 10px 8px 12px; font-size: 12.5px; line-height: 1.35; background: var(--surface); border-radius: 12px; height: 100%; margin-bottom: 3px;
             box-shadow: inset 3px 0 0 var(--prac), 0 0 0 1px var(--line); }
.ttg .cell.lect { box-shadow: inset 3px 0 0 var(--lect), 0 0 0 1px var(--line); } .ttg .cell b { display: block; font-size: 12.5px; font-weight: 650; }
.ttg .cell span { color: var(--ink-2); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 719px) { .ttg.heat { border-spacing: 3px; } .ttg.heat th.p { width: 40px; } .ttg.heat th.p .tiny { display: none; } .heat td { height: 42px; font-size: 13px; } }
.heat td { text-align: center; font-weight: 650; border-radius: 10px; height: 46px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.heat td a { display: grid; place-items: center; height: 100%; min-height: 42px; color: inherit; border-radius: 10px; }
.heat td a:hover { text-decoration: none; box-shadow: inset 0 0 0 2px var(--link); }
.heat td.sel a { box-shadow: inset 0 0 0 3px var(--now); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.toolbar .tabs { margin: 0; flex: 1 1 300px; }
.picker { margin-bottom: 12px; }
.picker select { background-color: var(--surface); box-shadow: var(--lift); font-weight: 600; border-color: transparent; }
.kv { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.kv span { background: var(--surface); box-shadow: var(--lift); border-radius: 12px; padding: 6px 12px; font-size: 13px; color: var(--ink-2); }
.kv b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Kafedra ---------- */
.kpi { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 16px; }
@media (min-width: 720px) { .kpi { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.kpi .big { font-size: 36px; color: #fff; }
.kpi .lbl { color: #B9CAE2; font-size: 13.5px; margin-bottom: 4px; }
.kpi .row2 { display: flex; justify-content: space-between; font-size: 13px; color: #C7D6EA; margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.kpi .row2 b { color: #fff; font-variant-numeric: tabular-nums; }
.kpi .prog { margin-top: 14px; }
.statusbox { display: flex; gap: 16px; align-items: center; }
.statusbox .ring { width: 112px; height: 112px; }
.statusbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; flex: 1; min-width: 0; }
.statusbox li a { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: inherit; padding: 6px 8px; border-radius: 10px; min-height: 36px; }
.statusbox li a:hover { text-decoration: none; background: rgba(127, 127, 127, .12); }
.statusbox li i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.statusbox li b { margin-left: auto; font-variant-numeric: tabular-nums; font-size: 15px; }
.hero .statusbox li a { color: #DCE6F4; text-decoration: none; } .hero .statusbox li b { color: #fff; }
.people { list-style: none; margin: 0; padding: 0; }
.people li + li { border-top: 1px solid var(--line); }
.people a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 12px 6px; color: var(--ink); border-radius: 12px; }
.people a:hover { text-decoration: none; background: var(--surface-2); }
.people .av { width: 40px; height: 40px; grid-row: span 2; }
.people .nm { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people .ds { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people .rt { text-align: right; grid-row: span 2; display: grid; gap: 5px; justify-items: end; }
.people .rt b { font: 600 15px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.people .gw { grid-column: 2 / -1; margin-top: 8px; }
.people .kb { display: none; }
@media (min-width: 960px) {
  .people.full a { grid-template-columns: 40px minmax(200px, 1.1fr) minmax(200px, 1fr) 150px; gap: 0 18px; padding: 10px 8px; }
  .people.full .gw { grid-column: 3; grid-row: 1 / span 2; margin: 0; }
  .people.full .rt { grid-column: 4; grid-row: 1 / span 2; grid-template-columns: auto auto; align-items: center; justify-content: end; gap: 10px; }
  .people.full .kb { font-size: 12px; color: var(--ink-3); display: flex; justify-content: space-between; margin-top: 6px; font-variant-numeric: tabular-nums; }
}
.ppl-h { display: none; }
@media (min-width: 960px) {
  .ppl-h { display: grid; grid-template-columns: 40px minmax(200px, 1.1fr) minmax(200px, 1fr) 150px; gap: 0 18px; padding: 0 8px 8px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; border-bottom: 1px solid var(--line); }
  .ppl-h span:last-child { text-align: right; }
}

/* ---------- O'qituvchi kabineti ---------- */
.prof { display: flex; gap: 14px; align-items: center; }
.prof .av { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .18); }
.prof h1 { font-size: 21px; margin: 0 0 2px; }
@media (min-width: 960px) { .prof h1 { font-size: 25px; } }
.hero .prof + .chips { margin-top: 14px; }
.normcard { display: flex; gap: 18px; align-items: center; }
.normcard .ring { width: 128px; height: 128px; }
.normcard .ring .mid .big { font-size: 27px; }
.normcard .txt { min-width: 0; flex: 1; }
.normcard .txt .lead { font-size: 15px; font-weight: 650; margin-bottom: 8px; line-height: 1.35; }
.normcard dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: 13.5px; }
.normcard dt { color: var(--ink-2); display: flex; align-items: center; gap: 6px; } .normcard dd { margin: 0; white-space: nowrap; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.normcard dt i { width: 10px; height: 10px; border-radius: 3px; }
@media (max-width: 380px) { .normcard { flex-direction: column; align-items: stretch; } .normcard .ring { align-self: center; } }

/* ---------- kirish sahifalari ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--bg); }
.auth-top { background: var(--hero); color: #fff; padding: calc(28px + env(safe-area-inset-top)) 22px 78px; position: relative; overflow: hidden; isolation: isolate; }
.auth-top::after { content: ""; position: absolute; right: -80px; top: -100px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .05); z-index: -1; }
.auth-top .brand-mark { width: 52px; height: 52px; font-size: 18px; border-radius: 16px; margin-bottom: 20px; }
.auth-top h1 { color: #fff; font-size: 25px; }
.auth-top p { color: #B9CAE2; margin: 0; font-size: 14.5px; }
.auth-body { padding: 0 16px 32px; margin-top: -54px; position: relative; z-index: 1; }
.auth .box { width: 100%; max-width: 420px; margin: 0 auto; }
.auth .card { padding: 22px; border-radius: 22px; }
.auth .foot { font-size: 13px; color: var(--ink-2); margin: 16px 4px 0; display: flex; gap: 8px; align-items: flex-start; }
.auth .foot svg.i { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ink-3); }
.loginline { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--ink-2); }
.loginline b { font: 650 16px var(--font); color: var(--ink); letter-spacing: .01em; }
@media (min-width: 900px) {
  .auth { grid-template-rows: none; grid-template-columns: minmax(380px, 44%) 1fr; }
  .auth-top { padding: 56px; display: flex; flex-direction: column; justify-content: flex-end; }
  .auth-top h1 { font-size: 36px; max-width: 13ch; line-height: 1.12; margin-bottom: 12px; }
  .auth-top p { max-width: 38ch; font-size: 15px; }
  .auth-top .brand-mark { position: absolute; top: 48px; left: 56px; }
  .auth-body { margin: 0; display: grid; place-items: center; padding: 40px; }
}
.consent { max-height: 46vh; overflow-y: auto; font-size: 14px; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 14px; }
.side nav a.install { display: none; }
.side nav a.install.show { display: flex; }

/* ---------- harakat: kamaytirilgan rejim; chop etish ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .side, .bar, .bnav { display: none !important; }
  .shell { margin: 0 !important; } .hero { background: none; color: var(--ink); } .hero h1, .hero .sub { color: var(--ink); }
}
.day.card h3 { margin-top: 0; }
@media (max-width: 420px) { .tabs a { padding: 8px 8px; font-size: 13.5px; } }
