/* =====================================================================
   Elektron kabinet (portal) — sayt shabloni ranglari va shriftida
   ===================================================================== */
:root {
  --green: #8abe3f;
  --green-d: #6f9e2b;
  --green-soft: #eef5e4;
  --blue: #015285;
  --blue-soft: #e8f1f7;
  --navy: #053655;
  --text: #5f6366;
  --muted: #8a9aa5;
  --line: #e3e9ec;
  --bg: #eef2f5;
  --card: #fff;
  --red: #e5484d;
  --red-soft: #fdecec;
  --amber: #e8a032;
  --amber-soft: #fdf3e2;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(5, 54, 85, .04), 0 8px 24px rgba(5, 54, 85, .06);
  --font: "Mona Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { color: var(--navy); margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }

/* ---------- Asosiy qobiq ---------- */
.p-app { display: flex; min-height: 100vh; }
.p-side { width: 264px; flex-shrink: 0; background: linear-gradient(180deg, #053655 0%, #04304b 100%); color: #c4d3dd; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 40; transition: transform .25s; }
.p-brand { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.p-brand img { height: 40px; }
.p-nav { padding: 14px 12px; overflow-y: auto; flex: 1; }
.p-nav .sep { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6f8ea3; padding: 16px 12px 6px; font-weight: 600; }
.p-nav a { display: flex; align-items: center; gap: 12px; color: #c4d3dd; padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: 15px; margin-bottom: 2px; transition: background .15s, color .15s; }
.p-nav a i { width: 20px; text-align: center; font-size: 16px; color: #7fa2b9; }
.p-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.p-nav a.on { background: var(--green); color: #fff; }
.p-nav a.on i { color: #fff; }
.p-nav a .cnt { margin-left: auto; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 20px; }
.p-side-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.p-side-foot a { color: #9fc0d4; }
.p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-top { height: 70px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 30; }
.p-top h1 { font-size: 21px; margin: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-burger { display: none; border: 0; background: var(--blue-soft); color: var(--blue); width: 42px; height: 42px; border-radius: 10px; font-size: 18px; }
.p-icon-btn { position: relative; border: 0; background: var(--bg); color: var(--navy); width: 42px; height: 42px; border-radius: 50%; font-size: 17px; cursor: pointer; }
.p-icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; background: var(--red); border-radius: 50%; border: 2px solid #fff; }
.p-user { display: flex; align-items: center; gap: 10px; cursor: pointer; position: relative; padding: 4px 6px; border-radius: 12px; }
.p-user:hover { background: var(--bg); }
.p-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green)); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.p-user b { display: block; color: var(--navy); font-size: 14px; line-height: 1.2; }
.p-user small { color: var(--muted); font-size: 12px; }
.p-menu { position: absolute; right: 0; top: 54px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 210px; padding: 6px; z-index: 50; }
.p-menu a { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 8px; color: var(--navy); font-size: 14px; }
.p-menu a:hover { background: var(--bg); }
.p-content { padding: 26px 28px 60px; }
.p-overlay { display: none; }

/* ---------- Kartochkalar va to'r ---------- */
.p-grid { display: grid; gap: 20px; }
.p-grid.k4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.p-grid.c2 { grid-template-columns: 1fr 1fr; }
.p-grid.c3-1 { grid-template-columns: 2fr 1fr; }
.p-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.p-card + .p-card { margin-top: 20px; }
.p-grid > .p-card + .p-card { margin-top: 0; }
.p-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.p-card-h h3 { font-size: 18px; margin: 0; }
.p-card-h h3 i { color: var(--green); margin-right: 8px; }
.p-kpi { display: flex; align-items: center; gap: 16px; }
.p-kpi .ic { width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.p-kpi small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.p-kpi strong { font-size: 26px; color: var(--navy); line-height: 1.15; }
.p-kpi .sub { font-size: 12px; font-weight: 600; }
.ic-blue { background: var(--blue-soft); color: var(--blue); }
.ic-green { background: var(--green-soft); color: var(--green-d); }
.ic-amber { background: var(--amber-soft); color: var(--amber); }
.ic-red { background: var(--red-soft); color: var(--red); }
.ic-purple { background: #efedff; color: #6a5acd; }
.up { color: var(--green-d); } .down { color: var(--red); }
.p-hello { background: linear-gradient(120deg, #053655, #015285 70%); color: #d8e6ef; border-radius: var(--radius); padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; position: relative; overflow: hidden; }
.p-hello::after { content: ''; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; background: rgba(138,190,63,.18); }
.p-hello h2 { color: #fff; font-size: 24px; margin-bottom: 4px; }
.p-hello p { margin: 0; }
.p-hello .p-btn { position: relative; z-index: 1; }

/* ---------- Tugmalar va forma ---------- */
.p-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; cursor: pointer; transition: all .15s; white-space: nowrap; }
.p-btn:hover { border-color: #c7d3da; background: #f8fafb; }
.p-btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.p-btn.green:hover { background: var(--green-d); }
.p-btn.blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.p-btn.blue:hover { background: var(--navy); }
.p-btn.ghost { border-color: transparent; background: transparent; }
.p-btn.danger { color: var(--red); border-color: #f5c2c4; }
.p-btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.p-btn:disabled { opacity: .5; cursor: not-allowed; }
.p-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.p-input, .p-select, .p-textarea { height: 42px; border: 1px solid #cfd9df; border-radius: 10px; padding: 0 12px; background: #fff; color: var(--navy); outline: none; font-size: 14px; min-width: 0; }
.p-textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; width: 100%; }
.p-input:focus, .p-select:focus, .p-textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(1,82,133,.12); }
.p-search { position: relative; }
.p-search i { position: absolute; left: 13px; top: 14px; color: var(--muted); font-size: 13px; }
.p-search .p-input { padding-left: 34px; width: 240px; }
.p-field { display: block; margin-bottom: 14px; }
.p-field > span { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.p-field .p-input, .p-field .p-select { width: 100%; }
.p-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

/* ---------- Jadval ---------- */
.p-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.p-table { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.p-table th, .p-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; white-space: nowrap; }
.p-table th { background: #f5f8fa; color: var(--navy); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; position: sticky; top: 0; z-index: 1; }
.p-table tbody tr:hover { background: #fafcfd; }
.p-table tr:last-child td { border-bottom: 0; }
.p-table td.wrap { white-space: normal; min-width: 220px; }
.p-table .num { text-align: center; }
.p-table tr.click { cursor: pointer; }
.p-name { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; }
.p-name .p-avatar { width: 32px; height: 32px; font-size: 12px; }
.p-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; color: var(--muted); gap: 10px; flex-wrap: wrap; }
.p-pager .btns { display: flex; gap: 6px; }

.p-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-green { background: var(--green-soft); color: #4d7a17; }
.b-blue { background: var(--blue-soft); color: var(--blue); }
.b-amber { background: var(--amber-soft); color: #a86812; }
.b-red { background: var(--red-soft); color: #b42318; }
.b-gray { background: #eef2f5; color: #52626d; }
.mark { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.m5 { background: var(--green-soft); color: #4d7a17; }
.m4 { background: var(--blue-soft); color: var(--blue); }
.m3 { background: var(--amber-soft); color: #a86812; }
.m2 { background: var(--red-soft); color: #b42318; }

/* ---------- Davomat belgilash ---------- */
.att-row { display: flex; gap: 6px; }
.att-btn { width: 38px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--muted); }
.att-btn.on.p { background: var(--green); border-color: var(--green); color: #fff; }
.att-btn.on.a { background: var(--red); border-color: var(--red); color: #fff; }
.att-btn.on.s { background: var(--amber); border-color: var(--amber); color: #fff; }
.att-btn.on.l { background: var(--blue); border-color: var(--blue); color: #fff; }
.att-sum { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.att-sum b { color: var(--navy); }
.cal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.cal div { border-radius: 8px; padding: 8px 6px; text-align: center; font-size: 12px; background: #f5f8fa; }
.cal div b { display: block; font-size: 15px; color: var(--navy); }
.cal .p { background: var(--green-soft); } .cal .a { background: var(--red-soft); } .cal .s { background: var(--amber-soft); } .cal .l { background: var(--blue-soft); }

/* ---------- Jurnal ---------- */
.jr td.cell { text-align: center; padding: 6px; cursor: pointer; min-width: 44px; }
.jr td.cell:hover { background: var(--blue-soft); }
.jr th.d { text-align: center; font-size: 11px; padding: 8px 6px; }
.jr td.avg { font-weight: 700; color: var(--navy); text-align: center; }
.jr td.name { position: sticky; left: 0; background: #fff; z-index: 1; }
.mark-pick { position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 6px; display: flex; gap: 4px; z-index: 60; }
.mark-pick button { border: 0; width: 34px; height: 34px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* ---------- Grafiklar ---------- */
.chart { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: #e8edf0; }
.chart text { font-size: 11px; fill: var(--muted); font-family: var(--font); }
.chart .lbl { fill: var(--navy); font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; font-size: 13px; }
.bar-row .lb { width: 120px; color: var(--navy); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-row .tr { flex: 1; height: 10px; background: #eef2f5; border-radius: 10px; overflow: hidden; }
.bar-row .tr i { display: block; height: 100%; border-radius: 10px; }
.bar-row .vl { width: 46px; text-align: right; font-weight: 700; color: var(--navy); }

/* ---------- Ro'yxatlar ---------- */
.p-list { list-style: none; margin: 0; padding: 0; }
.p-list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.p-list li:last-child { border-bottom: 0; }
.p-list .ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-list b { color: var(--navy); display: block; font-size: 14px; }
.p-list small { color: var(--muted); font-size: 12px; }
.p-list p { margin: 2px 0 0; font-size: 14px; }
.lesson { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.lesson:last-child { border-bottom: 0; }
.lesson .t { width: 92px; font-size: 13px; color: var(--muted); }
.lesson .n { width: 28px; height: 28px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.lesson.now { background: var(--green-soft); border-radius: 10px; padding: 10px; border-bottom-color: transparent; }
.lesson.now .n { background: var(--green); color: #fff; }
.lesson b { color: var(--navy); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.empty i { font-size: 34px; display: block; margin-bottom: 8px; opacity: .6; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; }
.tabs button.on { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- Modal va xabar ---------- */
.p-modal-bg { position: fixed; inset: 0; background: rgba(5, 54, 85, .45); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 50px 16px; overflow-y: auto; }
.p-modal { background: #fff; border-radius: 18px; width: 100%; max-width: 560px; box-shadow: 0 30px 70px rgba(0,0,0,.25); }
.p-modal.wide { max-width: 860px; }
.p-modal-h { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.p-modal-h h3 { margin: 0; font-size: 18px; }
.p-modal-b { padding: 22px; }
.p-modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); }
#p-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; opacity: 0; transition: all .25s; z-index: 200; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: 90vw; }
#p-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#p-toast.ok { background: var(--green-d); } #p-toast.err { background: var(--red); }

/* ---------- Kirish sahifasi ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: linear-gradient(140deg, #053655, #015285); color: #cfe0ea; padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art::before { content: ''; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: rgba(138,190,63,.16); }
.login-art::after { content: ''; position: absolute; left: -80px; top: 30%; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.05); }
.login-art h1 { color: #fff; font-size: 40px; line-height: 1.15; margin: 40px 0 16px; }
.login-art ul { list-style: none; padding: 0; margin: 26px 0 0; position: relative; z-index: 1; }
.login-art li { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; font-size: 16px; }
.login-art li i { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); color: var(--green); display: flex; align-items: center; justify-content: center; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.login-box { width: 100%; max-width: 400px; }
.login-box h2 { font-size: 28px; margin-bottom: 6px; }
.login-box .p-input { width: 100%; height: 50px; }
.login-box .p-btn { width: 100%; height: 50px; font-size: 16px; }
.demo-roles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.demo-roles button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; text-align: left; font-weight: 600; color: var(--navy); font-size: 14px; transition: all .15s; }
.demo-roles button i { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.demo-roles button:hover { border-color: var(--green); background: var(--green-soft); }
.login-err { background: var(--red-soft); color: #b42318; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 22px 0 10px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 1100px) {
  .p-grid.c2, .p-grid.c3-1 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .p-side { position: fixed; left: 0; top: 0; transform: translateX(-100%); }
  .p-side.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .p-overlay.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 35; }
  .p-burger { display: inline-flex; align-items: center; justify-content: center; }
  .p-top { padding: 0 16px; }
  .p-content { padding: 18px 16px 50px; }
  .p-user .who { display: none; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .p-search .p-input { width: 100%; }
  .p-search { flex: 1; }
}
@media (max-width: 560px) {
  .p-form-grid { grid-template-columns: 1fr; }
  .p-top h1 { font-size: 17px; }
}
@media print {
  .p-side, .p-top, .p-tools, .no-print { display: none !important; }
  .p-content { padding: 0; }
  .p-card { box-shadow: none; border: 0; }
}

/* ---------- Test tizimi (kabinet ichida) ---------- */
.t-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.t-filters label span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 5px; }
.t-filters .p-select, .t-filters .p-input { width: 100%; }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chip { border: 1.5px solid var(--line); border-radius: 9px; padding: 6px 12px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--navy); user-select: none; }
.t-chip input { display: none; }
.t-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.t-check { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; font-size: 14px; cursor: pointer; }
.t-check input { width: 18px; height: 18px; accent-color: var(--green); }
.t-q { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.t-qn { width: 36px; height: 36px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 800; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.t-qtools { display: flex; flex-direction: column; gap: 4px; }
.t-opt { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.t-opt input[type=radio] { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; cursor: pointer; }
.t-opt .lt { width: 22px; font-weight: 800; color: var(--muted); text-align: center; }
.t-opt .p-input { flex: 1; }
.t-opt.correct .p-input { border-color: var(--green); background: var(--green-soft); }
.t-save { position: sticky; bottom: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; background: rgba(238, 242, 245, .96); padding: 14px 0; margin-top: 18px; border-top: 1px solid var(--line); z-index: 5; }
.t-review { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; }
.t-review.ok { border-color: #cfe5b0; background: #f8fbf3; }
.t-review.bad { border-color: #f5c2c4; background: #fff8f8; }
.t-ropt { padding: 6px 10px; border-radius: 8px; margin-top: 6px; font-size: 14px; }
.t-ropt.correct { background: var(--green-soft); color: #4d7a17; font-weight: 600; }
.t-ropt.wrong { background: var(--red-soft); color: #b42318; text-decoration: line-through; }
.t-expl { margin-top: 10px; font-size: 13px; background: #fff; border: 1px dashed #cfd9df; padding: 8px 10px; border-radius: 8px; }
.t-expl i { color: var(--amber); }
.t-ostat { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; padding: 3px 0; }
.t-review .bar-row .lb { width: 110px; }
span.click { cursor: pointer; }
code { background: #eef2f5; padding: 2px 6px; border-radius: 6px; font-size: 13px; color: var(--navy); }

/* ================= Sayt boshqaruvi (superadmin) ================= */
.b-purple { background: #efedff; color: #6a5acd; }
.c-card { margin-bottom: 20px; }
.c-intro { margin: -4px 0 16px; font-size: 14px; color: var(--muted); }
.c-intro code, .c-help code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-size: 12px; }
.c-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.c-field { min-width: 0; }
.c-field.wide, .c-field.c-bool { grid-column: 1 / -1; }
.c-field.c-bool + .c-field.c-bool { margin-top: -6px; }
.c-label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.c-label small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.c-help { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; }
.c-field .p-input, .c-field .p-select, .c-field .p-textarea { width: 100%; margin: 0; }
.c-field .p-textarea { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; font-family: inherit; }
.c-inline { display: flex; gap: 8px; align-items: center; }
.c-inline .p-input { flex: 1; min-width: 0; }
.c-inline .p-btn { flex-shrink: 0; cursor: pointer; }
.c-icon-prev { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--green-soft); color: #4d7a17; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.c-img { width: 100%; max-width: 260px; height: 120px; border-radius: 10px; background: var(--bg); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 8px; color: var(--muted); font-size: 26px; }
.c-img img { width: 100%; height: 100%; object-fit: cover; }
.c-icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.c-icons button { height: 52px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 19px; color: var(--navy); cursor: pointer; }
.c-icons button:hover { border-color: var(--green); background: var(--green-soft); color: #4d7a17; }

.c-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: var(--navy); font-weight: 600; user-select: none; }
.c-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.c-switch i { width: 40px; height: 22px; border-radius: 22px; background: #cfd8de; position: relative; transition: background .2s; flex-shrink: 0; }
.c-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.c-switch input:checked + i { background: var(--green); }
.c-switch input:checked + i::after { transform: translateX(18px); }
.c-switch input:focus-visible + i { outline: 2px solid var(--blue); outline-offset: 2px; }
.c-switch.sm { font-size: 12px; font-weight: 500; gap: 8px; }
.c-switch.sm i { width: 32px; height: 18px; }
.c-switch.sm i::after { width: 12px; height: 12px; }
.c-switch.sm input:checked + i::after { transform: translateX(14px); }

.c-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 16px; background: #fbfcfd; }
.c-group-h { font-weight: 700; color: var(--navy); margin-bottom: 12px; font-size: 15px; }
.c-list { display: flex; flex-direction: column; gap: 8px; }
.c-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.c-item-h { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; cursor: pointer; min-height: 48px; }
.c-item-h b { flex: 1; min-width: 0; font-weight: 600; color: var(--navy); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-caret { color: var(--muted); transition: transform .2s; font-size: 12px; }
.c-item.open > .c-item-h .c-caret { transform: rotate(90deg); }
.c-item.open > .c-item-h { border-bottom: 1px solid var(--line); background: #fbfcfd; border-radius: 12px 12px 0 0; }
.c-item-b { display: none; padding: 16px; }
.c-item.open > .c-item-b { display: block; }
.c-row-tools { display: inline-flex; gap: 2px; flex-shrink: 0; }
.c-row-tools .p-btn { padding: 0 8px; min-width: 30px; }
.c-row-tools .p-btn[disabled] { opacity: .35; pointer-events: none; }
.c-row { display: flex; gap: 10px; align-items: flex-end; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.c-row > .c-form { flex: 1; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.c-row .c-label { font-size: 12px; margin-bottom: 4px; }
.c-add { align-self: flex-start; border-style: dashed !important; }

.c-save { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px -22px -22px; padding: 14px 22px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); backdrop-filter: blur(4px); }
.c-state { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.c-state.warn { color: #a86812; font-weight: 600; }
.c-state.ok { color: #4d7a17; font-weight: 600; }

.c-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.c-q { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; transition: .2s; }
.c-q i { font-size: 20px; color: var(--green); }
.c-q:hover { border-color: var(--green); background: var(--green-soft); }
.c-tabs { margin-bottom: 16px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .c-form { grid-template-columns: 1fr; }
  .c-save { margin: 16px -16px -16px; padding: 12px 16px; }
  .c-row { flex-direction: column; align-items: stretch; }
  .c-row-tools .p-btn[data-copy] { display: none; }
  .c-item-h { padding-left: 10px; gap: 6px; }
}
.login-box .p-select { width: 100%; height: 50px; }
.login-tabs { margin-bottom: 18px; }
.login-tabs button { flex: 1; }

/* ---------- Rasmlar (avatar) ---------- */
.p-avatar { overflow: hidden; }
.p-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-avatar.xl { width: 84px; height: 84px; font-size: 26px; }
.p-photo { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 12px; border: 1px dashed var(--line); border-radius: 14px; background: #fbfcfd; }
.p-photo > div { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p-photo small { flex-basis: 100%; color: var(--muted); font-size: 12px; }
.p-photo label.p-btn { cursor: pointer; }
.p-ava-up { position: relative; cursor: pointer; flex-shrink: 0; }
.p-ava-up i { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; border: 2px solid #fff; }
#uAva { overflow: hidden; }
#uAva img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Fanlar ---------- */
.s-grades { display: flex; gap: 4px; flex-wrap: wrap; }
.s-g { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: .15s; }
.s-g.on { background: var(--green); border-color: var(--green); color: #fff; }
.s-g:hover { border-color: var(--green); }
.s-grades.big .s-g { width: 40px; height: 40px; font-size: 14px; }

/* ---------- Parollar ---------- */
.a-pass { font-family: ui-monospace, Consolas, monospace; font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: 2px; }
.a-none { color: var(--muted); font-size: 13px; }
.a-warn { background: var(--amber-soft); color: #a86812; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-weight: 600; font-size: 14px; }
.cnt-b { background: var(--red); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11px; margin-left: 4px; }

/* ---------- Kutubxona ---------- */
.l-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.l-book { display: flex; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: #fff; min-width: 0; }
.l-cover { width: 92px; height: 128px; border-radius: 8px; overflow: hidden; flex-shrink: 0; box-shadow: 0 4px 12px rgba(5,54,85,.15); background: var(--bg); }
.l-cover img { width: 100%; height: 100%; object-fit: cover; }
.l-cover.ph { --hue: 200; background: linear-gradient(160deg, hsl(var(--hue) 55% 42%), hsl(calc(var(--hue) + 40) 60% 28%)); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; text-align: center; }
.l-cover.ph i { font-size: 22px; opacity: .8; }
.l-cover.ph span { font-size: 11px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.l-cover.sm { width: 40px; height: 54px; border-radius: 5px; }
.l-cover.sm.ph i { font-size: 14px; } .l-cover.sm.ph span { display: none; }
.l-cover.lg { width: 150px; height: 210px; }
.l-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.l-info > b { color: var(--navy); font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l-info > small { color: var(--muted); font-size: 13px; }
.l-info p { margin: 2px 0 0; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.l-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.l-foot { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.l-av { font-size: 12px; font-weight: 700; }
.l-av.ok { color: #4d7a17; } .l-av.no { color: var(--red); }
.l-form { display: grid; grid-template-columns: 170px 1fr; gap: 20px; }
.l-form-cover { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.l-file { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .l-form { grid-template-columns: 1fr; } .l-grid { grid-template-columns: 1fr; } }
.login-srv { font-size: 13px; border-radius: 10px; padding: 8px 12px; margin: 14px 0 0; display: none; }
.login-srv.ok { display: block; background: var(--green-soft); color: #4d7a17; }
.login-srv.warn { display: block; background: var(--amber-soft); color: #a86812; }

/* ---------- Shaxsiy ma'lumotlar ---------- */
.pp-tabs { margin-bottom: 16px; }
.pp-tabs button { display: inline-flex; gap: 6px; align-items: center; }
.pp-sec .p-form-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pp-wide { grid-column: 1 / -1; }
.pp-lock { color: #a86812; font-size: 11px; }
.pp-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.pp-note i { color: #a86812; }
.pp-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pp-head h3 { margin: 0 0 6px; font-size: 20px; }
.pp-head small { color: var(--muted); display: block; margin-top: 6px; }
.pp-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-view { margin-bottom: 14px; }
.pp-view h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.pp-view h5 i { color: var(--green); }
.pp-view dl { display: grid; grid-template-columns: minmax(140px, 42%) 1fr; margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pp-view dt, .pp-view dd { margin: 0; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.pp-view dt { color: var(--muted); background: #fbfcfd; }
.pp-view dd { color: var(--navy); font-weight: 600; word-break: break-word; }
.pp-view dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 560px) { .pp-view dl { grid-template-columns: 1fr; } .pp-view dt { border-bottom: 0; padding-bottom: 0; } .pp-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Yo'riqnoma ---------- */
.hp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }
.hp-grid .p-card + .p-card { margin-top: 0; }
.hp-steps { margin: 0; padding-left: 22px; }
.hp-steps li { margin-bottom: 8px; line-height: 1.55; }
.hp-steps li::marker { color: var(--green); font-weight: 700; }
.hp-faq { border-top: 1px solid var(--line); padding: 12px 0; }
.hp-faq summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.hp-faq p { margin: 8px 0 0; }
@media (max-width: 560px) { .hp-grid { grid-template-columns: 1fr; } }
@media print { .hp-grid { display: block; } .hp-sec { break-inside: avoid; margin-bottom: 12px; } #hpTabs, #hpPrint { display: none !important; } }

/* ---------- Til tanlash ---------- */
.i18n-sw { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; flex-shrink: 0; }
.i18n-sw button { border: 0; background: none; padding: 6px 9px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.i18n-sw button.on { background: var(--blue); color: #fff; }
.i18n-sw button:not(.on):hover { background: var(--bg); color: var(--navy); }
.p-top .i18n-sw { margin-right: 4px; }
@media (max-width: 560px) { .p-top .i18n-sw button { padding: 5px 6px; font-size: 11px; } }
.c-langbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.c-langbar > span { font-size: 13px; color: var(--muted); margin-right: 6px; display: inline-flex; gap: 6px; align-items: center; }
.c-langbar button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font-weight: 600; font-size: 13px; color: var(--navy); cursor: pointer; }
.c-langbar button.on { background: var(--green); border-color: var(--green); color: #fff; }
.c-trnote { background: var(--amber-soft); color: #a86812; border-radius: 10px; padding: 10px 12px; margin: -4px 0 16px; font-size: 13px; font-weight: 600; }

/* ---------- Tarjimalar ---------- */
.tr-table td { vertical-align: middle; }
.tr-table .p-input { min-width: 160px; width: 100%; height: 36px; }
.s-tr { color: var(--muted); font-size: 11px; }
.s-miss { color: #a86812; font-weight: 600; }

/* Boshqa foydalanuvchilar o'zgarishlari haqida xabar */
.p-fresh { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #dfe6ee; box-shadow: 0 8px 30px rgba(0,0,0,.15); border-radius: 12px; padding: 10px 12px 10px 16px; font-size: 14px; max-width: calc(100% - 32px); }
.p-fresh > i { color: #2a9d5c; }
@media (max-width: 600px) { .p-fresh span { font-size: 13px; } }

/* DSh hisobotlari */
.d-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 20px; align-items: start; }
.d-side { position: sticky; top: 90px; max-height: calc(100vh - 110px); display: flex; flex-direction: column; }
.d-side .p-search { margin-bottom: 10px; }
.d-list { overflow-y: auto; flex: 1; margin: 0 -8px; padding: 0 8px; }
.d-fold { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #8a9aa5; margin: 14px 0 6px; }
.d-item { display: block; padding: 8px 10px; border-radius: 8px; color: inherit; text-decoration: none; font-size: 13px; line-height: 1.35; }
.d-item b { display: block; color: #015285; }
.d-item span { color: #5b6b78; }
.d-item:hover { background: #f2f6fa; }
.d-item.on { background: #e5f0fa; }
.d-side-btns { display: grid; gap: 8px; margin-top: 12px; }
.d-info { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; margin-bottom: 20px; }
.d-info > i { color: #015285; margin-top: 3px; }
.d-warn { color: #b26a00; font-weight: 600; }
.d-ok { color: #2a9d5c; }
.d-tabs { margin-bottom: 12px; flex-wrap: wrap; }
.d-title { font-weight: 700; margin: 4px 0 10px; }
.d-wrap { overflow-x: auto; }
.d-tab { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.d-tab th, .d-tab td { border: 1px solid #d6dee6; padding: 6px 7px; text-align: center; vertical-align: middle; }
.d-tab th { background: #f2f6fa; font-weight: 600; font-size: 11.5px; min-width: 54px; }
.d-tab td.d-l { text-align: left; white-space: normal; min-width: 40px; max-width: 320px; }
.d-tab td.d-l + td.d-l { min-width: 110px; }
.d-tab a.d-n { font-weight: 700; color: #015285; text-decoration: underline dotted; }
@media (max-width: 1100px) { .d-layout { grid-template-columns: 1fr; } .d-side { position: static; max-height: none; } .d-list { max-height: 320px; } }
.d-item small.d-orig { display: block; font-size: 11px; color: #8a9aa5; margin-top: 2px; }
.d-tab td.d-wide { min-width: 230px; }

/* Ma'lumotnoma (obyektivka) — o'qituvchi, xodim va o'quvchi kartochkasi */
.mn-doc { font-family: "Times New Roman", Times, serif; color: #000; font-size: 14px; line-height: 1.38; background: #e9eef3; padding: 14px; border-radius: 10px; }
.mn-page { background: #fff; padding: 30px 40px 34px; max-width: 780px; margin: 0 auto; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.mn-page + .mn-page { margin-top: 14px; }
.mn-title { text-align: center; font-weight: 700; font-size: 16px; letter-spacing: .5px; margin-bottom: 10px; }
.mn-top { display: flex; gap: 16px; align-items: flex-start; }
.mn-main { flex: 1; min-width: 0; }
.mn-name { text-align: center; font-weight: 700; font-size: 17px; margin: 2px 0 14px; }
.mn-photo { width: 100px; height: 130px; border: 1px solid #bbb; display: flex; align-items: center; justify-content: center; color: #999; flex: none; overflow: hidden; }
.mn-photo img { width: 100%; height: 100%; object-fit: cover; }
.mn-grid { width: 100%; border-collapse: collapse; margin-top: 10px; }
.mn-grid td { width: 50%; vertical-align: top; padding: 5px 10px 5px 0; }
.mn-h { text-align: center; font-weight: 700; font-size: 15px; margin: 18px 0 8px; }
.mn-hist p { margin: 0 0 8px; }
.mn-rtitle { text-align: center; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.mn-rel { width: 100%; border-collapse: collapse; font-size: 13px; }
.mn-rel th, .mn-rel td { border: 1px solid #000; padding: 5px 6px; text-align: center; vertical-align: middle; }
.mn-empty { color: #888; }
.pp-rel td { padding: 4px; } .pp-rel .p-input { min-width: 110px; padding: 6px 8px; }
.pp-ptabs { margin-bottom: 12px; }
@media (max-width: 640px) { .mn-page { padding: 18px 14px; } .mn-top { flex-direction: column-reverse; align-items: center; } .mn-grid td { display: block; width: 100%; } .mn-rel { font-size: 11px; } }
.r-tabs { margin-bottom: 18px; flex-wrap: wrap; }
.d-mode { display: inline-flex; border: 1px solid #d6dee6; border-radius: 10px; overflow: hidden; margin-right: 6px; }
.d-mode button { border: 0; background: #fff; padding: 8px 12px; font: inherit; font-size: 13px; cursor: pointer; color: #5b6b78; }
.d-mode button.on { background: #015285; color: #fff; }
.d-chart .bar-row .lb { min-width: 200px; max-width: 320px; }
.d-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.d-mini a { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid #e3e9ef; border-radius: 12px; color: inherit; text-decoration: none; }
.d-mini a:hover { background: #f2f6fa; }
.d-mini i { color: #015285; } .d-mini b { font-size: 24px; color: #053655; } .d-mini span { font-size: 13px; color: #5b6b78; }

/* Faqat ko'rish huquqi (rollar matritsasi): o'zgartirish tugmalari yashiriladi */
body.p-ro #page .p-btn.green:not(.ro-ok), body.p-ro #page .p-btn.danger, body.p-ro #page [data-ed], body.p-ro #page [data-del], body.p-ro #page [data-up],
body.p-ro #page label.p-btn, body.p-ro #page [data-rok], body.p-ro #page [data-rno], body.p-ro #page .s-g,
body.p-ro .p-modal-f .p-btn.green:not(.ro-ok), body.p-ro .p-modal-f .p-btn.danger { display: none !important; }
body.p-ro #page .s-grades .s-g.on { display: inline-flex !important; pointer-events: none; }
.p-ro-note { background: #fff8e6; border: 1px solid #f1d38a; color: #7a5a00; border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }

/* Rollar va huquqlar matritsasi */
.rm-wrap { overflow-x: auto; }
.rm { border-collapse: collapse; width: 100%; font-size: 13px; }
.rm th, .rm td { border-bottom: 1px solid #e6ecf1; padding: 6px 8px; text-align: center; }
.rm thead th { position: sticky; top: 0; background: #f6f9fb; z-index: 1; vertical-align: bottom; min-width: 110px; }
.rm td.rm-s { text-align: left; min-width: 260px; }
.rm tr.rm-g td { background: #f2f6fa; font-weight: 700; color: #015285; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.rm select { border: 1px solid #d6dee6; border-radius: 8px; padding: 4px 6px; font: inherit; font-size: 12.5px; background: #fff; }
.rm select.l0 { color: #9aa7b3; } .rm select.l1 { color: #015285; background: #eef5fb; } .rm select.l2 { color: #2e7d32; background: #eef8ea; font-weight: 600; }
.rm .rm-lock { color: #9aa7b3; font-size: 12px; }
.rm-head { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.rm-head small { color: #8a9aa5; font-weight: 400; }
.rm-head .rm-tools { display: flex; gap: 4px; }

/* Dars jadvali, jurnal, kundalik, ish rejalar, to'garaklar */
.sc-grid td, .sc-grid th { text-align: center; vertical-align: top; min-width: 110px; }
.sc-grid td.n { min-width: 60px; color: #8a9aa5; }
.sc-grid td b { display: block; color: #053655; }
.sc-grid td small { display: block; color: #6b7c88; font-size: 11.5px; }
.sc-grid td small.r { color: #9aa7b3; }
.sc-grid .today { background: #f2f8ec; }
.sc-grid .sc-conf { background: #fde9e9; }
.sc-meta, .sc-cal { color: #6b7c88; font-size: 13px; margin-top: 10px; }
.sc-edit td { min-width: 150px; vertical-align: top; padding: 4px; }
.sc-edit .p-select, .sc-edit .p-input { width: 100%; padding: 4px 6px; font-size: 12px; margin-bottom: 3px; }
.j-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-bottom: 10px; font-size: 13.5px; color: #4a5b68; }
.jr2 th.d { font-size: 11px; line-height: 1.2; position: relative; min-width: 38px; }
.jr2 th.d.has { background: #eef8ea; }
.jr2 th.d.clk { cursor: pointer; }
.jr2 th.d .hw { position: absolute; top: 2px; right: 3px; font-size: 9px; color: #e8a032; }
.jr2 th.ex { background: #fff4e0; color: #9a5b00; cursor: pointer; }
.jr2 td.ex { background: #fffaf0; }
.jr2 td.w { cursor: pointer; }
.jr2 td.qm { background: #f2f6fa; font-weight: 700; }
.jr2 .sug { color: #9aa7b3; font-size: 12px; }
.mk-chip { display: inline-flex; flex-direction: column; align-items: center; margin: 2px; }
.mk-chip small { font-size: 10px; color: #9aa7b3; }
.mk-chip.ex small { color: #9a5b00; font-weight: 700; }
.dy-week { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.dy-day { padding: 14px; }
.dy-day.today { border: 2px solid #8abe3f; }
.dy-h { display: flex; justify-content: space-between; margin-bottom: 8px; color: #015285; }
.dy-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dy-t td { border-bottom: 1px solid #eef2f5; padding: 6px 4px; vertical-align: top; }
.dy-t td.n { color: #9aa7b3; width: 20px; } .dy-t td.m { width: 34px; text-align: center; }
.dy-topic { color: #4a5b68; font-size: 12.5px; }
.dy-hw { color: #9a5b00; font-size: 12.5px; margin-top: 2px; }
.dy-ex { margin-top: 8px; font-size: 13px; color: #9a5b00; }
.chk { display: inline-flex; gap: 6px; align-items: center; margin: 3px 10px 3px 0; font-size: 13.5px; }
.cl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cl-card { border: 1px solid #e3e9ef; border-radius: 14px; padding: 14px; }
.cl-card.off { opacity: .6; }
.cl-h { display: flex; gap: 8px; align-items: center; justify-content: space-between; color: #053655; }
.cl-card ul { list-style: none; padding: 0; margin: 8px 0; font-size: 13.5px; color: #4a5b68; }
.cl-card li { margin: 3px 0; } .cl-card li i { width: 18px; color: #015285; }
.cm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-height: 420px; overflow: auto; }
.pl-items td { padding: 4px; } .pl-items .p-input, .pl-items .p-select { padding: 5px 8px; }
.msg-reply{margin:6px 0 0;padding:6px 10px;border-left:3px solid var(--green,#16a34a);background:rgba(22,163,74,.08);border-radius:6px;font-size:.88em}
.cl-pend{margin-top:10px;padding:8px 10px;background:#fdf6e8;border-radius:8px;font-size:13px}
.cl-pr{display:flex;align-items:center;gap:6px;margin-top:6px}.cl-pr span{flex:1}
/* test sessiyasi — jonli kuzatish */
.ts-card .p-card-h h3{font-size:17px}
.ts-time{font-weight:700;color:#053655;margin:0 6px}
.ts-sum{display:flex;flex-wrap:wrap;gap:8px 18px;font-size:13px;color:#53687a;margin:-4px 0 14px}.ts-sum .red{color:#e5484d}
.ts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}
.ts-st{position:relative;border:1px solid #e3eaf0;border-left:4px solid #b9c8d4;border-radius:10px;padding:8px 10px;background:#fff;font-size:13px;line-height:1.35}
.ts-st b{display:block;font-size:13px;color:#053655;padding-right:28px}.ts-st small{display:block;color:#6b7f90}
.ts-st.blue{border-left-color:#015285;background:#f3f8fc}.ts-st.green{border-left-color:#8abe3f;background:#f6faef}.ts-st.red{border-left-color:#e5484d;background:#fdf1f1}
.ts-bar{height:5px;background:#e3eaf0;border-radius:3px;margin:5px 0 3px;overflow:hidden}.ts-bar i{display:block;height:100%;background:#015285}
.ts-warn{position:absolute;top:6px;right:8px;color:#e5484d;font-weight:700;font-size:12px}
/* ===== Jonli dars ===== */
.lv-pulse{color:#e5484d;font-size:10px;animation:lvp 1.2s infinite}@keyframes lvp{50%{opacity:.25}}
.lv-now{display:flex;flex-direction:column;gap:8px;background:#f6faef;border:1px solid #d9ebbf}.lv-now>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lv-add{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.lv-ed{border:1px solid #e3eaf0;border-radius:12px;padding:12px;margin-bottom:10px;background:#fbfdfe;display:flex;flex-direction:column;gap:8px}
.lv-ed-h{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.lv-ed-h span{display:flex;align-items:center;gap:4px}.lv-ed-h label{font-size:13px;display:flex;align-items:center;gap:6px;margin-right:6px}
.lv-ed-row{display:flex;gap:8px;align-items:center}.lv-ed-row .p-input{flex:1}
.lv-ed-opts{display:flex;flex-direction:column;gap:6px}.lv-ed-o{display:flex;gap:8px;align-items:center}.lv-ed-o input[type=radio],.lv-ed-o input[type=checkbox]{width:20px;height:20px;accent-color:#8abe3f;flex:none}
.lv-mono,.lv-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:14px}
.lv-head h2{font-size:22px}.lv-on{color:#e5484d}.lv-cnt{font-weight:700;color:#fff;margin-right:6px}
.lv-grid{display:grid;grid-template-columns:230px 1fr 230px;gap:16px;align-items:start;margin-top:14px}
.lv-list,.lv-people{padding:12px;max-height:75vh;overflow:auto;position:sticky;top:80px}
.lv-li{display:flex;align-items:center;gap:8px;width:100%;text-align:left;border:0;background:none;padding:8px;border-radius:8px;font-size:13px;color:#053655;cursor:pointer}
.lv-li span{width:22px;height:22px;border-radius:50%;background:#e8f1f7;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex:none}
.lv-li em{font-style:normal;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lv-li small{background:#eef5e4;border-radius:10px;padding:0 7px;color:#4b7a12}
.lv-li.on{background:#015285;color:#fff}.lv-li.on span{background:#8abe3f;color:#fff}.lv-li:disabled{cursor:default}
.lv-people h4{font-size:14px;margin:0 0 8px}.lv-p{display:flex;align-items:center;gap:6px;font-size:13px;padding:4px 2px;color:#8a9aa5}
.lv-p i{width:9px;height:9px;border-radius:50%;background:#cfd8df;flex:none}.lv-p.on{color:#053655}.lv-p.on i{background:#8abe3f}.lv-p.away i{background:#e5484d}.lv-p.away{color:#c0392b;font-weight:600}
.lv-p span{flex:1}.lv-leave{color:#e5484d;font-size:12px}.lv-ans{color:#6f9e2b}
.lv-stage{background:#fff;padding:6px}.lv-stage:fullscreen{padding:5vh 6vw;overflow:auto;font-size:1.6em}.lv-stage:fullscreen h2{font-size:2.2em}
.lv-step h2{font-size:24px;color:#053655;margin:0 0 10px}.lv-body{font-size:17px;line-height:1.6;color:#2b3d4d}.lv-body code{background:#eef3f7;border-radius:4px;padding:1px 5px}
.lv-img{max-width:100%;max-height:420px;border-radius:10px;margin:12px 0;display:block}
.lv-code{background:#0f2537;color:#e2f0fa;border-radius:10px;padding:14px;overflow:auto;white-space:pre;margin:12px 0}.lv-code.sm{font-size:13px;padding:10px;margin:6px 0 0;max-height:260px}
.lv-opts{display:flex;flex-direction:column;gap:8px;margin-top:12px}.lv-opt{display:flex;align-items:center;gap:10px;border:1px solid #e3eaf0;border-radius:10px;padding:10px 12px;position:relative}
.lv-opt .l,.lv-ch .l{width:28px;height:28px;border-radius:50%;background:#e8f1f7;display:inline-flex;align-items:center;justify-content:center;font-weight:700;flex:none;color:#015285}
.lv-opt .t{flex:1}.lv-opt.ok{border-color:#8abe3f;background:#f2f8e8}.lv-opt.ok .l{background:#8abe3f;color:#fff}
.lv-dist{width:38%;display:flex;align-items:center;gap:8px}.lv-dist i{display:block;height:10px;background:#015285;border-radius:5px;min-width:2px}.lv-dist b{font-size:13px}
.lv-nav{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #eef2f5;padding-top:12px;margin-top:12px}.lv-nav span{font-weight:700;color:#053655}
.lv-answers{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:10px}
.lv-a{border:1px solid #e3eaf0;border-radius:10px;padding:10px;font-size:14px}.lv-a-h{display:flex;justify-content:space-between;align-items:center;gap:6px;margin-bottom:6px}.lv-a-h span{display:flex;align-items:center;gap:4px;font-size:13px}
.lv-sc{width:66px;height:32px;padding:0 6px}
.lv-hint{font-size:13px;color:#8a9aa5;margin:8px 0}.lv-warn{background:#fff4e5;color:#7a4a00;border-radius:8px;padding:8px 12px;font-size:14px}
.lv-sum td,.lv-sum th{padding:6px 8px}.lv-absent td{color:#a0adb8}.lv-na{color:#cfd8df}.lv-pend{color:#e8a032;font-weight:700}
.lv-frame{width:100%;height:340px;border:1px solid #e3eaf0;border-radius:10px;background:#fff;margin-top:10px}
/* o'quvchi */
.lv-stu{max-width:900px;margin:0 auto}
.lv-stu-h{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.lv-stu-h b{display:block;font-size:18px;color:#053655}.lv-stu-h small{color:#8a9aa5}
.lv-stu-card{padding:22px}
.lv-choose{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.lv-ch{display:flex;align-items:center;gap:12px;text-align:left;border:2px solid #e3eaf0;background:#fff;border-radius:12px;padding:14px;font-size:17px;min-height:56px;cursor:pointer;color:#053655}
.lv-ch.sel{border-color:#015285;background:#eaf3fa}.lv-ch.sel .l{background:#015285;color:#fff}.lv-ch:disabled{opacity:.6;cursor:default}
.lv-ta{width:100%;margin-top:12px;font-size:16px}.lv-code-ed{margin-top:12px;border-radius:10px;overflow:hidden;border:1px solid #0f2537}
.lv-code-bar{display:flex;justify-content:space-between;align-items:center;background:#0f2537;color:#9fc3dd;padding:6px 10px;font-size:13px}
.lv-code-ed textarea{margin:0;border:0;border-radius:0;background:#14304a;color:#e2f0fa;padding:12px;width:100%;resize:vertical;tab-size:4;min-height:220px}
.lv-send{margin-top:12px;min-height:48px;font-size:16px}.lv-done{margin-top:14px;font-size:17px}
.lv-st{margin-top:14px;padding:10px 12px;border-radius:10px;background:#f1f4f7;color:#53687a}.lv-st.ok{background:#f2f8e8;color:#4b7a12}
.lv-wait,.lv-locked{text-align:center;padding:50px 20px}.lv-wait .ic{font-size:44px;color:#015285;margin-bottom:12px}
.lv-locked{background:#053655;color:#fff;border-radius:16px;font-size:18px}.lv-locked .fa-solid{font-size:60px;margin-bottom:12px}.lv-locked h2{color:#fff}
.lv-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:18px;z-index:9999;background:#e5484d;color:#fff !important;padding:12px 20px;border-radius:30px;box-shadow:0 8px 24px rgba(0,0,0,.25);font-size:15px;text-decoration:none}
@media (max-width:1100px){.lv-grid{grid-template-columns:1fr}.lv-list,.lv-people{position:static;max-height:none}.lv-list{display:flex;overflow-x:auto;gap:4px}.lv-li{width:auto;white-space:nowrap}}
/* kirish sahifasi: rol tanlash */
.lg-roles{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:18px}
.lg-roles button{display:flex;flex-direction:column;align-items:center;gap:2px;border:2px solid var(--line);background:#fff;border-radius:14px;padding:12px 6px;cursor:pointer;color:var(--navy);transition:all .15s;font:inherit}
.lg-roles button i{font-size:22px;color:var(--blue);margin-bottom:4px}.lg-roles button b{font-size:15px}.lg-roles button small{font-size:12px;color:#8a9aa5}
.lg-roles button:hover{border-color:var(--green)}.lg-roles button.on{border-color:var(--blue);background:var(--blue-soft)}.lg-roles button.on i{color:var(--blue)}
.lg-pw{position:relative;display:block}.lg-pw .p-input{padding-right:48px}
.lg-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:none;color:#8a9aa5;width:40px;height:40px;cursor:pointer;font-size:16px}
.lg-caps{color:#b45309;background:#fff4e5;border-radius:8px;padding:6px 10px;font-size:13px;margin:-6px 0 12px}
.lg-note{font-size:13px;color:#6b7f90;margin:12px 0 0;line-height:1.5}
.lg-alt{display:block;text-align:center;margin-top:12px;font-size:14px;color:var(--blue)}
#sQ{margin-bottom:8px}
@media (max-width:420px){.lg-roles button small{display:none}.lg-roles button{padding:10px 4px}}
.lg-eye{display:flex;align-items:center;justify-content:center}
/* ===== Ijro tizimi ===== */
.ij-tabs .ij-cnt { background: #e5484d; color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; margin-left: 4px; }
.ij-tabs .ij-cnt:empty { display: none; }
.ij-tasks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.ij-task { border: 1px solid #e3eaf0; border-left: 4px solid #015285; border-radius: 12px; padding: 12px 14px; cursor: pointer; background: #fff; }
.ij-task:hover { box-shadow: 0 4px 14px rgba(5,54,85,.08); }
.ij-task.late { border-left-color: #e5484d; background: #fff8f8; }
.ij-task-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: #53687a; }
.ij-task-t { font-weight: 700; color: #053655; margin: 6px 0; }
.ij-task-f { font-size: 13px; color: #53687a; margin-top: 6px; }
.ij-res { background: #f3f7fa; border-left: 3px solid #015285; border-radius: 6px; padding: 6px 10px; font-size: 14px; margin-top: 4px; }
.ij-res.big { font-size: 15px; margin: 6px 0; }
.ij-res small { display: block; color: #8a9aa5; margin-top: 4px; }
.ij-ret { background: #fff1f1; border-left: 3px solid #e5484d; border-radius: 6px; padding: 6px 10px; font-size: 14px; margin-top: 6px; color: #9b2c2c; }
.ij-rep { background: #f2f8e8; border-left: 3px solid #8abe3f; border-radius: 6px; padding: 6px 10px; font-size: 14px; margin-top: 6px; }
.ij-table tr.ij-late td { background: #fff6f6; }
.ij-doc .ij-head { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ij-title { font-size: 20px; color: #053655; margin: 10px 0 6px; }
.ij-sum { margin: 0 0 10px; color: #2b3d4d; }
.ij-meta { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 14px; }
.ij-meta th { text-align: left; color: #6b7f90; font-weight: 600; width: 190px; padding: 5px 8px 5px 0; vertical-align: top; }
.ij-meta td { padding: 5px 0; }
.ij-sec { border-top: 1px solid #eef2f5; padding-top: 10px; margin-top: 12px; }
.ij-sec > b, .ij-sec > summary { display: block; color: #053655; margin-bottom: 6px; cursor: default; }
.ij-sec > summary { cursor: pointer; }
.ij-files { list-style: none; padding: 0; margin: 4px 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.ij-files small { color: #8a9aa5; }
.ij-up { font-size: 13px; margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.ij-tl { display: flex; flex-direction: column; gap: 8px; }
.ij-t { border: 1px solid #e3eaf0; border-radius: 10px; padding: 8px 12px; }
.ij-t.late { border-color: #f3b4b4; background: #fffafa; }
.ij-t-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ij-mine { background: #f7fbf2; border: 1px solid #d9ebbf; border-radius: 12px; padding: 12px; }
.ij-acks { display: flex; flex-wrap: wrap; gap: 6px; }
.ij-acks span { font-size: 13px; background: #f1f4f7; border-radius: 14px; padding: 3px 10px; color: #6b7f90; }
.ij-acks span.ok { background: #eef5e4; color: #4b7a12; }
.ij-log { list-style: none; padding: 0; margin: 0; font-size: 13px; }
.ij-log li { padding: 6px 0; border-bottom: 1px dashed #e3eaf0; display: flex; flex-direction: column; }
.ij-log small { color: #8a9aa5; }
.ij-log span { color: #2b3d4d; }
.ij-pick { border: 1px solid #e3eaf0; border-radius: 10px; max-height: 320px; overflow: auto; }
.ij-pick-h, .ij-pr { display: grid; grid-template-columns: 1fr 70px 60px 80px; align-items: center; gap: 4px; padding: 6px 10px; }
.ij-pick-h { position: sticky; top: 0; background: #f3f7fa; font-size: 12px; font-weight: 700; color: #53687a; }
.ij-pick-h span:not(:first-child) { text-align: center; }
.ij-pr { border-top: 1px solid #f0f3f6; cursor: pointer; }
.ij-pr span small { display: block; color: #8a9aa5; font-size: 12px; }
.ij-pr input { width: 18px; height: 18px; justify-self: center; accent-color: #015285; }
.ij-pr[hidden] { display: none; }
.ij-mini { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; margin-bottom: 10px; }
.ij-mini .red { color: #e5484d; }
@media (max-width: 640px) { .ij-meta th { width: 120px; } .ij-pick-h, .ij-pr { grid-template-columns: 1fr 52px 48px 60px; } }
/* ===== CMS: vizual muharrir ===== */
.rt-wrap { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.rt-bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; background: #f6f9fb; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.rt-bar button { width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #33475b; cursor: pointer; font-size: 14px; }
.rt-bar button:hover { background: #e3edf5; } .rt-bar button.on { background: var(--blue); color: #fff; }
.rt-bar .rt-block { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; background: #fff; font-size: 13px; }
.rt-sep { width: 1px; background: var(--line); margin: 4px 4px; }
.rt-ed { min-height: 280px; max-height: 70vh; overflow-y: auto; padding: 16px 20px; outline: none; font-size: 16px; }
.rt-ed:focus { box-shadow: inset 0 0 0 2px rgba(1,82,133,.15); }
.rt-ed table td, .rt-ed table th { min-width: 60px; }
.rt-ed iframe { pointer-events: none; }
.rt-src { width: 100%; min-height: 320px; border: 0; padding: 14px; font: 13px/1.5 ui-monospace, Consolas, monospace; background: #0f2537; color: #e2f0fa; }
.rt-foot { display: flex; justify-content: space-between; gap: 10px; padding: 6px 12px; border-top: 1px solid var(--line); font-size: 12px; color: #8a9aa5; }
.rt-wrap.rt-full { position: fixed; inset: 10px; z-index: 9990; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.rt-wrap.rt-full .rt-ed { flex: 1; max-height: none; }
/* m-rich — kabinetdagi muharrirda ham saytdagidek */
.rt-ed.m-rich h2 { font-size: 24px; margin: 18px 0 8px; } .rt-ed.m-rich h3 { font-size: 20px; margin: 16px 0 8px; } .rt-ed.m-rich h4 { font-size: 17px; }
.rt-ed.m-rich p { margin: 0 0 12px; } .rt-ed.m-rich ul, .rt-ed.m-rich ol { padding-left: 24px; margin: 0 0 12px; }
.rt-ed.m-rich blockquote { border-left: 4px solid var(--green); background: #f6faef; padding: 10px 14px; margin: 0 0 12px; }
.rt-ed.m-rich img { max-width: 100%; border-radius: 8px; } .rt-ed.m-rich .rt-img-left { float: left; max-width: 45%; margin: 0 14px 8px 0; } .rt-ed.m-rich .rt-img-right { float: right; max-width: 45%; margin: 0 0 8px 14px; }
.rt-ed.m-rich table { border-collapse: collapse; width: 100%; margin-bottom: 12px; } .rt-ed.m-rich td, .rt-ed.m-rich th { border: 1px solid #ccd6df; padding: 6px 8px; } .rt-ed.m-rich th { background: #f3f7fa; }
.rt-ed.m-rich iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 8px; }
.rt-ed.m-rich .ta-center { text-align: center; } .rt-ed.m-rich .ta-right { text-align: right; } .rt-ed.m-rich .ta-justify { text-align: justify; }
.rt-ed.m-rich mark { background: #fff3b0; }
/* media kutubxona */
.md-tools-top { margin-bottom: 10px; flex-wrap: wrap; } .md-tools-top .tabs { margin: 0; }
.md-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.md-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; position: relative; transition: box-shadow .15s; }
.md-item:hover { box-shadow: 0 6px 18px rgba(5,54,85,.12); border-color: var(--blue); }
.md-thumb { aspect-ratio: 4/3; background: #f1f5f8; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.md-thumb img { width: 100%; height: 100%; object-fit: cover; }
.md-doc { flex-direction: column; gap: 4px; color: var(--blue); font-size: 34px; } .md-doc b { font-size: 12px; color: #6b7f90; }
.md-cap { display: flex; justify-content: space-between; padding: 6px 8px; font-size: 11px; color: #8a9aa5; }
.md-used { color: var(--blue); } .md-free { color: #e8a032; }
.md-item .md-tools { position: absolute; top: 6px; right: 6px; display: none; gap: 4px; } .md-item:hover .md-tools { display: flex; }
.md-item .md-tools .p-btn { padding: 0 8px; height: 28px; background: #fff; }
/* yangiliklar */
.nw-thumb { width: 64px; height: 48px; border-radius: 8px; overflow: hidden; background: #eef3f7; display: flex; align-items: center; justify-content: center; color: #b9c8d4; }
.nw-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nw-ed { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.nw-title { width: 100%; border: 0; border-bottom: 2px solid var(--line); font-size: 26px; font-weight: 700; color: var(--navy); padding: 6px 0 10px; margin-bottom: 14px; outline: none; background: none; }
.nw-title:focus { border-color: var(--green); }
.nw-side .p-card { margin-bottom: 14px; } .nw-side h4 { margin: 0 0 10px; font-size: 15px; }
.nw-cover { aspect-ratio: 3/2; background: #f1f5f8; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; color: #9aa7b3; margin-bottom: 8px; font-size: 13px; }
.nw-cover img { width: 100%; height: 100%; object-fit: cover; } .nw-cover span i { font-size: 30px; }
.nw-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 8px; }
.nw-gal div { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; } .nw-gal img { width: 100%; height: 100%; object-fit: cover; }
.nw-gal button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; }
@media (max-width: 1100px) { .nw-ed { grid-template-columns: 1fr; } }
