/* Sherik — umumiy joylashuv. Maket: maket/eskiz/app.css (Kunduz). Faqat tokens.css dagi semantik nomlar. */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-m);
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
h1,
h2,
h3,
p,
ol,
ul,
dl,
dd {
  margin: 0;
  padding: 0;
}
ol,
ul {
  list-style: none;
}
:where(button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
:where(a) {
  color: inherit;
  text-decoration: none;
}
:where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
code {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}
[hidden] {
  display: none !important;
}
.sh-num {
  font-variant-numeric: tabular-nums;
}
.sh-muted {
  color: var(--text-3);
}
.sh-wrap {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/* ── ikonka ── */
.sh-ic {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sh-ic.is-s {
  width: 14px;
  height: 14px;
}
.sh-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── belgi (logo) ── */
.sh-mark {
  display: inline-flex;
  width: 26px;
  height: 26px;
  color: var(--text);
  flex: none;
}
.sh-mark svg {
  width: 100%;
  height: 100%;
}

/* ── kichik bo'laklar ── */
.sh-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  flex: none;
}
.sh-dot.is-ok {
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
}
.sh-dot.is-warn {
  background: var(--warning);
  box-shadow: 0 0 0 3px var(--warning-soft);
}
.sh-dot.is-danger {
  background: var(--danger);
  box-shadow: 0 0 0 3px var(--danger-soft);
}
.sh-dot.is-info {
  background: var(--info);
}
.sh-dot.is-primary {
  background: var(--primary);
}

.sh-ava {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
  font-size: var(--fs-s);
}
.sh-ava.is-lg {
  width: 40px;
  height: 40px;
  font-size: var(--fs-l);
  font-family: var(--font-display);
}

.sh-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 var(--s-2);
  border-radius: 11px;
  font-size: var(--fs-xs);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--text-2);
}
.sh-pill.is-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.sh-pill.is-ok {
  background: var(--success-soft);
  color: var(--success);
}
.sh-pill.is-warn {
  background: var(--warning-soft);
  color: var(--warning);
}
.sh-pill.is-danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.sh-pill.is-info {
  background: var(--info-soft);
  color: var(--info);
}

.sh-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  flex: none;
  height: 24px;
  padding: 0 var(--s-2);
  border-radius: var(--r-s);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--text-2);
}
.sh-tag.is-q {
  background: var(--primary-soft);
  color: var(--primary-text);
}
.sh-tag.is-perm {
  background: var(--info-soft);
  color: var(--info);
}
.sh-tag.is-warn {
  background: var(--warning-soft);
  color: var(--warning);
}
.sh-tag.is-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

/* ── tugmalar ── */
.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: var(--h-ctl);
  padding: 0 var(--s-4);
  border-radius: var(--r-m);
  font-size: var(--fs-s);
  font-weight: 600;
  white-space: nowrap;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.sh-btn:hover {
  background: var(--surface-3);
}
.sh-btn.is-primary {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
}
.sh-btn.is-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.sh-btn.is-soft {
  background: var(--primary-soft);
  color: var(--primary-text);
  border-color: transparent;
}
.sh-btn.is-soft:hover {
  border-color: var(--primary);
}
.sh-btn.is-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-2);
}
.sh-btn.is-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}
.sh-btn.is-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--border-strong);
}
.sh-btn.is-danger:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
}
.sh-btn.is-danger-fill {
  background: var(--danger);
  color: var(--on-primary);
  border-color: var(--danger);
}
.sh-btn.is-l {
  height: var(--h-ctl-l);
  padding: 0 var(--s-5);
  font-size: var(--fs-m);
}
.sh-btn.is-s {
  height: 28px;
  padding: 0 var(--s-3);
  font-size: var(--fs-xs);
}
.sh-btn:disabled,
.sh-btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
.sh-btn.is-busy {
  cursor: progress;
  opacity: 0.7;
}
.sh-btns {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
  align-items: center;
}
.sh-btns.is-end {
  justify-content: flex-end;
}

/* ── karta ── */
.sh-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
  padding: var(--s-4) var(--s-5);
  min-width: 0;
}
.sh-card.is-flat {
  box-shadow: none;
}
.sh-card.is-stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.sh-card-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  min-width: 0;
}
.sh-card-h h2,
.sh-sec-h h2 {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.sh-card.is-stack .sh-card-h {
  margin-bottom: 0;
}
.sh-sub {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.sh-link {
  font-size: var(--fs-s);
  color: var(--primary-text);
  font-weight: 600;
}
.sh-link:hover {
  text-decoration: underline;
}

/* ── formalar ── */
.sh-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.sh-field {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
}
.sh-field > span {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
}
.sh-field > small {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.sh-row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.sh-in {
  width: 100%;
  min-width: 0;
  height: var(--h-ctl);
  padding: 0 var(--s-3);
  border-radius: var(--r-m);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-s);
}
.sh-in:focus {
  border-color: var(--primary);
  outline: 2px solid var(--primary-soft);
  outline-offset: 0;
}
textarea.sh-in {
  height: auto;
  min-height: 88px;
  padding: var(--s-2) var(--s-3);
  line-height: 1.5;
  resize: vertical;
}
select.sh-in {
  padding-right: var(--s-6);
}
.sh-in:disabled {
  background: var(--surface-2);
  color: var(--text-3);
}
.sh-chk {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-s);
  cursor: pointer;
}
.sh-chk input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  margin: 0;
}
.sh-form-err {
  font-size: var(--fs-s);
  color: var(--danger);
  background: var(--danger-soft);
  border-radius: var(--r-m);
  padding: var(--s-2) var(--s-3);
}

/* ── segment (filtr) ── */
.sh-seg {
  display: flex;
  gap: var(--s-1);
  flex-wrap: wrap;
}
.sh-seg button {
  height: 32px;
  padding: 0 var(--s-3);
  border-radius: var(--r-m);
  font-size: var(--fs-s);
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--surface);
}
.sh-seg button:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.sh-seg button.is-on {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-text);
  font-weight: 600;
}

/* ── holatlar: yuklanmoqda / bo'sh / xato ── */
.sh-state-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-6) var(--s-4);
  text-align: center;
  color: var(--text-2);
  font-size: var(--fs-s);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-l);
  background: var(--surface);
}
.sh-state-box b {
  color: var(--text);
  font-size: var(--fs-m);
}
.sh-state-box.is-err {
  border-color: var(--danger);
  background: var(--danger-soft);
  color: var(--danger);
}
.sh-state-box.is-err b {
  color: var(--danger);
}
.sh-spin {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--surface-3);
  border-top-color: var(--primary);
  animation: sh-aylan 0.8s linear infinite;
}
@keyframes sh-aylan {
  to {
    transform: rotate(360deg);
  }
}

/* ════════════ KOMPYUTER PANELI ════════════ */
/* Sidebar «Oq karta» (egasi tanlovi, maket/eskiz/sidebar.html #v=3): keng 264px ↔ tor 92px (faqat belgilar). */
.sh-app {
  --side-w: 264px;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  transition: grid-template-columns 220ms cubic-bezier(0.2, 0, 0, 1);
}
.sh-app.is-tor {
  --side-w: 92px;
}

.sh-side {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
  min-height: 0;
  overflow-y: auto;
  margin: var(--s-3) 0 var(--s-3) var(--s-3);
  padding: var(--s-5) var(--s-4);
  border: 1px solid var(--border);
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.sh-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-2);
  height: 32px;
}
/* Faqat sidebar'da: logo chapda, toraytirish tugmasi o'ngda (kirish kartalarida logo+nom yonma-yon qoladi). */
.sh-side .sh-brand {
  justify-content: space-between;
}
.sh-brand-l {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
}
.sh-side-tor {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-s);
  color: var(--text-2);
}
.sh-side-tor:hover {
  background: var(--surface-2);
  color: var(--text);
}
.sh-side-tor .sh-ic {
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);
}
.sh-app.is-tor .sh-side-tor .sh-ic {
  transform: rotate(180deg);
}
.sh-brand-name {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-size: var(--brand-size);
}
.sh-nav {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.sh-nav-i {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 40px;
  padding: 0 var(--s-3);
  border-radius: var(--r-m);
  color: var(--text-2);
  font-weight: 500;
  transition: background-color 120ms, color 120ms;
}
.sh-nav-i:hover {
  background: var(--surface-2);
  color: var(--text);
}
/* Nom cho'ziladi; raqam/belgi o'z o'lchamida o'ngda qoladi (avval belgi ham cho'zilib ketardi). */
.sh-nav-i > span:not(.sh-badge, .sh-count) {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-nav-i > .sh-count,
.sh-nav-i > .sh-badge {
  flex: none;
  margin-left: auto;
}
.sh-nav-i.is-on {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--primary) 30%, transparent);
}
.sh-nav-i.is-on .sh-count {
  color: inherit;
}
.sh-nav-i.is-on .sh-badge {
  background: var(--surface);
  color: var(--primary-text);
}
button.sh-nav-i {
  width: 100%;
  text-align: left;
}
.sh-count {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.sh-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.sh-side-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.sh-side-ajrat {
  align-self: stretch;
  height: 1px;
  margin: var(--s-1) var(--s-3);
  background: var(--border);
}
.sh-prorab,
.sh-me {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  min-width: 0;
  border-radius: var(--r-m);
}
.sh-prorab:focus-visible,
.sh-me:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.sh-prorab {
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.sh-side .sh-ava {
  background: var(--primary-soft);
  color: var(--primary-text);
}
.sh-prorab div,
.sh-me div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.sh-prorab b,
.sh-me b {
  font-size: var(--fs-s);
  font-weight: 600;
}
.sh-prorab small,
.sh-me small {
  font-size: var(--fs-xs);
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tor rejim — faqat kompyuterda (≤860px da sidebar tepadagi qatorga aylanadi, u yerda tor yo'q). */
@media (min-width: 861px) {
  .sh-app.is-tor .sh-side {
    align-items: center;
    padding-inline: var(--s-3);
    overflow: visible; /* ustiga borganda chiqadigan nom kesilmasin */
  }
  .sh-app.is-tor .sh-brand {
    flex-direction: column;
    height: auto;
    gap: var(--s-3);
    padding: 0;
  }
  .sh-app.is-tor .sh-brand-name {
    display: none;
  }
  /* Matn ekranda yashiriladi, lekin ekran o'quvchi uchun nomi qoladi. */
  .sh-app.is-tor .sh-nav-i > span:not(.sh-badge),
  .sh-app.is-tor .sh-prorab > div,
  .sh-app.is-tor .sh-me > div {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .sh-app.is-tor .sh-nav,
  .sh-app.is-tor .sh-side-foot {
    align-items: center;
  }
  .sh-app.is-tor .sh-nav-i,
  .sh-app.is-tor .sh-prorab,
  .sh-app.is-tor .sh-me {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
  }
  .sh-app.is-tor .sh-nav-i .sh-ic {
    width: 20px;
    height: 20px;
  }
  .sh-app.is-tor .sh-nav-i > .sh-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 var(--s-1);
    margin: 0;
    box-shadow: 0 0 0 2px var(--surface);
  }
  .sh-app.is-tor [data-nom]::after {
    content: attr(data-nom);
    position: absolute;
    left: calc(100% + var(--s-3));
    top: 50%;
    translate: -4px -50%;
    z-index: 20;
    padding: var(--s-1) var(--s-3);
    border-radius: var(--r-s);
    background: var(--text);
    color: var(--bg);
    font-size: var(--fs-s);
    font-weight: 500;
    white-space: nowrap;
    box-shadow: var(--shadow-2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 120ms, translate 120ms;
  }
  .sh-app.is-tor [data-nom]:hover::after,
  .sh-app.is-tor [data-nom]:focus-visible::after {
    opacity: 1;
    translate: 0 -50%;
  }
}
/* Past ekran (noutbuk ~760px): tor sidebar ixchamlashadi — pastki Prorab/Mehmed kesilmasin. */
@media (min-width: 861px) and (max-height: 760px) {
  .sh-app.is-tor .sh-side {
    gap: var(--s-3);
    padding-block: var(--s-3);
  }
  .sh-app.is-tor .sh-brand {
    gap: var(--s-2);
  }
  .sh-app.is-tor .sh-side-foot {
    gap: var(--s-1);
  }
  .sh-app.is-tor .sh-nav-i,
  .sh-app.is-tor .sh-prorab,
  .sh-app.is-tor .sh-me {
    width: 40px;
    height: 40px;
  }
}
/* Juda past ekranda — kesilgandan ko'ra skroll yaxshi (bu holatda ustiga borgandagi nom chiqmaydi). */
@media (min-width: 861px) and (max-height: 600px) {
  .sh-app.is-tor .sh-side {
    overflow-y: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sh-app,
  .sh-side-tor .sh-ic,
  .sh-nav-i,
  .sh-app.is-tor [data-nom]::after {
    transition: none;
  }
}

.sh-main {
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.sh-top {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-width: 0;
  padding: 0 var(--s-6);
  border-bottom: 1px solid var(--border);
}
.sh-title {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  flex: 1;
  min-width: 0;
}
.sh-title h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-size: var(--h1);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-title span {
  color: var(--text-3);
  font-size: var(--fs-m);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-search {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 320px;
  max-width: 100%;
  height: var(--h-ctl);
  padding: 0 var(--s-3);
  border-radius: var(--r-m);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-3);
  font-size: var(--fs-s);
}
.sh-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  outline: none;
}
.sh-search:focus-within {
  border-color: var(--primary);
}
.sh-search kbd {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 0 var(--s-1);
}
.sh-mode {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
  height: var(--h-ctl);
  padding: 0 var(--s-3);
  border-radius: var(--r-m);
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: var(--fs-s);
  font-weight: 600;
}
.sh-mode.is-on {
  background: var(--warning-soft);
  border-color: transparent;
}
.sh-mode small {
  color: var(--text-2);
  font-weight: 400;
}

.sh-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 384px;
  gap: var(--s-5);
  align-items: start;
  padding: var(--s-5) var(--s-6);
  min-height: 0;
  overflow-y: auto;
}
.sh-body.is-one {
  grid-template-columns: minmax(0, 1fr);
}
.sh-body.is-wide {
  grid-template-columns: minmax(0, 1fr) 320px;
}
.sh-col {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-width: 0;
}
.sh-right {
  gap: var(--s-4);
}
.sh-sec-h {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 28px;
  flex-wrap: wrap;
}
.sh-sec-h.is-gap {
  margin-top: var(--s-3);
}
.sh-sec-note {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-align: right;
}
.sh-toolbar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.sh-toolbar .sh-in {
  width: auto;
  flex: 1;
  min-width: 160px;
  max-width: 320px;
}

/* savol / ruxsat kartasi */
.sh-ask {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  border-color: var(--border-strong);
}
.sh-ask.is-main {
  box-shadow: var(--shadow-2);
  border-left: 3px solid var(--primary);
}
.sh-ask.is-perm {
  border-left: 3px solid var(--info);
}
.sh-ask-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-s);
  color: var(--text-2);
  min-width: 0;
  flex-wrap: wrap;
}
.sh-who {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-wait {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  color: var(--warning);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sh-ask h3 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-size: var(--h3);
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.sh-why {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  font-size: var(--fs-s);
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.sh-why .sh-ic {
  color: var(--info);
  margin-top: 1px;
}
.sh-opts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-2);
}
.sh-opt {
  min-height: var(--h-ctl-l);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-m);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: var(--fs-s);
  text-align: center;
  overflow-wrap: anywhere;
}
.sh-opt:hover {
  border-color: var(--primary);
}
.sh-opt.is-pick {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-text);
}
.sh-opt.is-own {
  background: transparent;
  border-style: dashed;
  color: var(--text-2);
}
.sh-ask-foot {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  font-size: var(--fs-s);
  color: var(--text-2);
  flex-wrap: wrap;
}
.sh-cont {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  margin-left: auto;
  color: var(--success);
}
.sh-perm {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.sh-perm-txt {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.sh-perm-txt h3 {
  font-size: var(--fs-l);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
}

/* shogird kartalari */
.sh-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--s-3);
}
.sh-stu {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.sh-stu-h {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
}
.sh-stu .sh-btns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex-wrap: nowrap;
}
.sh-stu .sh-btn {
  padding: 0 var(--s-2);
}
.sh-stu-name {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.sh-stu-name b {
  font-size: var(--fs-l);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-state {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-s);
  color: var(--text-2);
}
.sh-state.is-ok {
  color: var(--success);
}
.sh-state.is-warn {
  color: var(--warning);
}
.sh-state.is-info {
  color: var(--info);
}
.sh-lvl {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-1);
  font-size: var(--fs-xs);
  color: var(--text-2);
  font-weight: 600;
  flex: none;
}
.sh-pips {
  display: flex;
  gap: 3px;
}
.sh-pips i {
  width: 14px;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
}
.sh-pips i.on {
  background: var(--primary);
}
.sh-task {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-3);
  border-radius: var(--r-m);
  background: var(--surface-2);
  min-width: 0;
}
.sh-task small {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.sh-task b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-prog {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.sh-prog span {
  display: block;
  height: 100%;
  width: var(--p);
  background: var(--primary);
  border-radius: 3px;
}
.sh-prog.is-warn span {
  background: var(--warning);
}
.sh-prog-l {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.sh-kv {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
.sh-kv div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sh-kv dt {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.sh-kv dd {
  font-size: var(--fs-l);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sh-kv dd small {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: 400;
}
.sh-kv.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* uzoqdan buyruq */
.sh-cmd {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.sh-cmd .sh-card-h {
  margin-bottom: 0;
  flex-direction: column;
  gap: 2px;
}
.sh-text {
  width: 100%;
  min-height: 96px;
  padding: var(--s-3);
  border-radius: var(--r-m);
  resize: vertical;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-s);
  line-height: 1.5;
}
.sh-text:focus {
  border-color: var(--primary);
  outline: none;
}
.sh-cmd-foot {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.sh-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  flex: 1;
  min-width: 0;
  font-size: var(--fs-xs);
  color: var(--success);
}
.sh-chip.is-muted {
  color: var(--text-3);
}

/* bugungi raqamlar */
.sh-stat-g {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-3);
}
.sh-stat-g div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sh-stat-g b {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-size: var(--stat);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.sh-stat-g b small {
  font-size: var(--fs-m);
  font-family: var(--font-body);
  color: var(--text-2);
  font-weight: 500;
  margin-left: 2px;
}
.sh-stat-g span {
  font-size: var(--fs-xs);
  color: var(--text-2);
}
.sh-stat-g .is-good b {
  color: var(--success);
}
.sh-stat-g .is-warn b {
  color: var(--warning);
}
.sh-stat-g.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* jurnal (qisqa) */
.sh-feed ol {
  display: flex;
  flex-direction: column;
}
.sh-feed li {
  display: grid;
  grid-template-columns: 40px 8px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: baseline;
  padding: var(--s-2) 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-s);
}
.sh-feed li:first-child {
  border-top: 0;
  padding-top: 0;
}
.sh-feed time {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-xs);
}
.sh-feed .sh-dot {
  align-self: center;
}
.sh-feed p {
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.sh-feed p b {
  color: var(--text);
  font-weight: 600;
}

/* ro'yxat qatorlari */
.sh-list {
  display: flex;
  flex-direction: column;
}
.sh-li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-width: 0;
  padding: var(--s-3) 0;
  border-top: 1px solid var(--border);
}
.sh-li:first-child {
  border-top: 0;
  padding-top: 0;
}
.sh-li:last-child {
  padding-bottom: 0;
}
a.sh-li:hover .sh-li-main b {
  color: var(--primary-text);
}
.sh-li-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sh-li-main b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-li-main p {
  font-size: var(--fs-s);
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.sh-li-main small {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.sh-li-side {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
}
.sh-li.is-off {
  opacity: 0.55;
}

/* sinov bandlari */
.sh-bands {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.sh-band {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: var(--s-3);
  align-items: start;
  padding: var(--s-3);
  border-radius: var(--r-m);
  background: var(--surface-2);
  border: 1px solid transparent;
}
.sh-band.is-otdi {
  background: var(--success-soft);
}
.sh-band.is-yiqildi {
  background: var(--danger-soft);
  border-color: var(--danger);
}
.sh-band-n {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  padding-top: 2px;
}
.sh-band-t {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  min-width: 0;
}
.sh-band-t p {
  overflow-wrap: anywhere;
}
.sh-band-t small {
  font-size: var(--fs-xs);
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.sh-band-act {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sh-thumb {
  width: 96px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--r-s);
  border: 1px solid var(--border-strong);
  cursor: zoom-in;
  background: var(--surface-3);
}

/* sessiya jonli lentasi */
.sh-tl {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.sh-tl-i {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: start;
}
.sh-tl-i > time {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  padding-top: var(--s-2);
}
.sh-bub {
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-m);
  background: var(--surface);
  border: 1px solid var(--border);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
}
.sh-bub-h {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  flex-wrap: wrap;
}
.sh-bub-t {
  font-size: var(--fs-s);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-height: 360px;
  overflow-y: auto;
}
.sh-bub.is-shogird {
  background: var(--primary-soft);
  border-color: transparent;
}
.sh-bub.is-shogird .sh-bub-h {
  color: var(--primary-text);
}
.sh-bub.is-claude {
  background: var(--surface);
}
.sh-bub.is-savol {
  border-color: var(--warning);
  background: var(--warning-soft);
}
.sh-bub.is-savol .sh-bub-h {
  color: var(--warning);
}
.sh-bub.is-ustoz {
  background: var(--info-soft);
  border-color: transparent;
}
.sh-bub.is-ustoz .sh-bub-h {
  color: var(--info);
}
.sh-bub.is-tizim {
  background: transparent;
  border-style: dashed;
}
.sh-bub.is-xavf {
  border-color: var(--danger);
  background: var(--danger-soft);
}
.sh-bub.is-xavf .sh-bub-h {
  color: var(--danger);
}
.sh-tool {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-3);
  padding: 2px 0;
  min-width: 0;
}
.sh-tool code {
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.sh-tl.is-asbobsiz [data-asbob] {
  display: none;
}

/* tanlov ro'yxati (buyruqqa qaror qo'shish) */
.sh-pick {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-height: 200px;
  overflow-y: auto;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  background: var(--surface-2);
}
.sh-pick .sh-chk {
  align-items: flex-start;
  overflow-wrap: anywhere;
}
.sh-pick .sh-chk input {
  flex: none;
  margin-top: 1px;
}

/* jadval-ro'yxat (jurnal) */
.sh-log {
  display: flex;
  flex-direction: column;
}
.sh-log-i {
  display: grid;
  grid-template-columns: 112px 140px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: baseline;
  padding: var(--s-2) 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-s);
}
.sh-log-i:first-child {
  border-top: 0;
}
.sh-log-i time {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.sh-log-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sh-log-who b {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-log-who small {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.sh-log-t {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  color: var(--text-2);
  max-height: 200px;
  overflow-y: auto;
}
.sh-log-t b {
  color: var(--text);
}

/* ── kirish ekrani ── */
.sh-auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  background: var(--canvas);
}
.sh-auth .sh-card {
  width: 100%;
  max-width: 380px;
  padding: var(--s-6) var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.sh-auth h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-size: var(--fs-xl);
}
.sh-auth p {
  color: var(--text-2);
  font-size: var(--fs-s);
}

/* ── modal + toast ── */
.sh-modal-bg {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--scrim);
  display: grid;
  place-items: center;
  padding: var(--s-4);
}
.sh-modal {
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-2);
  border: 1px solid var(--border);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.sh-modal.is-wide {
  max-width: 720px;
}
.sh-modal h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-size: var(--fs-xl);
}
.sh-modal p {
  color: var(--text-2);
  font-size: var(--fs-s);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.sh-modal img {
  max-width: 100%;
  border-radius: var(--r-m);
}
.sh-secret {
  font-family: var(--font-mono);
  font-size: var(--fs-s);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-m);
  padding: var(--s-3);
  overflow-wrap: anywhere;
  user-select: all;
}
.sh-toasts {
  position: fixed;
  z-index: 60;
  right: var(--s-4);
  bottom: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  max-width: calc(100vw - 32px);
}
.sh-toast {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-m);
  background: var(--text);
  color: var(--surface);
  font-size: var(--fs-s);
  box-shadow: var(--shadow-2);
  max-width: 420px;
  animation: sh-kir 0.16s ease-out;
}
.sh-toast.is-err {
  background: var(--danger);
  color: var(--on-primary);
}
@keyframes sh-kir {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.sh-live {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* ════════════ TELEFON (haqiqiy ekran) ════════════ */
.sh-tel {
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) auto;
  height: 100vh;
  height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg);
}
.sh-ph-top {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  min-width: 0;
}
.sh-ph-top .sh-brand-name {
  flex: 1;
}
.sh-ph-top .sh-mark {
  width: 24px;
  height: 24px;
}
.sh-ph-title {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sh-ph-title b {
  font-size: var(--fs-l);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sh-ph-title small {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.sh-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-m);
  color: var(--text-2);
  flex: none;
}
.sh-icon-btn:hover {
  background: var(--surface-2);
}
.sh-icon-btn .sh-ic {
  width: 22px;
  height: 22px;
}
.sh-icon-btn b {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 10px;
  display: grid;
  place-items: center;
}
.sh-ph-body {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  overflow-y: auto;
  min-height: 0;
}
.sh-ph-body .sh-card {
  padding: var(--s-4);
}
.sh-ph-body .sh-opts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sh-ph-body .sh-ask h3 {
  font-size: calc(var(--h3) - 1px);
}
.sh-ph-body .sh-perm {
  flex-direction: column;
  align-items: stretch;
  gap: var(--s-3);
}
.sh-ph-body .sh-perm .sh-btns .sh-btn {
  flex: 1;
}
.sh-mode.is-ph {
  width: 100%;
  justify-content: flex-start;
}
.sh-mode.is-ph .sh-ic:last-child {
  margin-left: auto;
}
.sh-tabbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--s-1) var(--s-2) calc(var(--s-2) + env(safe-area-inset-bottom, 0px));
}
.sh-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  height: 52px;
  justify-content: center;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}
.sh-tab .sh-ic {
  width: 22px;
  height: 22px;
}
.sh-tab.is-on {
  color: var(--primary-text);
}
.sh-tab b {
  position: absolute;
  top: 2px;
  left: calc(50% + 6px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 10px;
  display: grid;
  place-items: center;
}
.sh-composer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--s-3) var(--s-4) calc(var(--s-3) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.sh-composer-row {
  display: flex;
  align-items: flex-end;
  gap: var(--s-2);
}
.sh-composer .sh-text {
  flex: 1;
  min-height: 56px;
}
.sh-send {
  width: 44px;
  height: 44px;
  border-radius: var(--r-m);
  background: var(--primary);
  color: var(--on-primary);
  display: inline-grid;
  place-items: center;
  flex: none;
}
.sh-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.sh-mini-feed li {
  display: grid;
  grid-template-columns: 40px 8px minmax(0, 1fr);
  align-items: baseline;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-top: 1px solid var(--border);
  font-size: var(--fs-s);
  color: var(--text-2);
}
.sh-mini-feed li:first-child {
  border-top: 0;
  padding-top: 0;
}
.sh-mini-feed time {
  color: var(--text-3);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.sh-mini-feed p {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  max-height: 160px;
  overflow-y: auto;
}
.sh-mini-feed b {
  color: var(--text);
  font-weight: 600;
}
.sh-mini-feed .sh-dot {
  align-self: center;
}
.sh-ctl-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
}
.sh-ctl-row .sh-btn {
  padding: 0 var(--s-2);
}
/* Ustun-flex ichida bolalar cho'zilmasin/qisilmasin; uzun ro'yxatda tana skroll bo'ladi. */
.sh-ph-body > * {
  flex: none;
}
/* Kompyuter uchun tor ekranda yashiriladigan nom va Bandman izohi telefonda kerak. */
.sh-tel .sh-brand-name {
  display: block;
}
.sh-tel .sh-mode.is-ph small {
  display: inline;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Telefonda ro'yxat qatori: matn to'liq kenglikda, tugmalar pastki qatorda. */
.sh-ph-body .sh-list.is-wrap .sh-li {
  flex-wrap: wrap;
}
.sh-ph-body .sh-list.is-wrap .sh-li-main {
  flex-basis: 100%;
}

/* ════════════ O'QUVCHI OYNASI ════════════ */
.sh-oyna {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}
.sh-oyna-top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: 64px;
  padding: 0 var(--s-5);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.sh-oyna-top .sh-brand-name {
  margin-right: auto;
}
.sh-oyna-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: var(--s-5);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-5);
}

/* ════════════ MOSLASHUV ════════════ */
@media (min-width: 1181px) {
  /* Sessiya ekrani: lenta uzun — boshqaruv paneli ko'z oldida qoladi, o'zi sig'masa ichida skroll. */
  .sh-right.is-sticky {
    position: sticky;
    top: 0;
    max-height: calc(100dvh - 72px - var(--s-5) * 2);
    overflow-y: auto;
  }
}
@media (max-width: 1180px) {
  .sh-body,
  .sh-body.is-wide {
    grid-template-columns: minmax(0, 1fr);
  }
  .sh-oyna-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .sh-search {
    width: 220px;
  }
  .sh-mode small {
    display: none;
  }
}
@media (max-width: 860px) {
  .sh-app {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }
  .sh-side {
    flex-direction: row;
    align-items: center;
    gap: var(--s-3);
    margin: 0;
    padding: var(--s-2) var(--s-3);
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .sh-side .sh-brand-name,
  .sh-side-tor,
  .sh-side-ajrat {
    display: none;
  }
  .sh-nav {
    flex-direction: row;
  }
  .sh-nav-i > span:not(.sh-badge, .sh-count) {
    overflow: visible;
  }
  .sh-side-foot {
    margin-top: 0;
    flex-direction: row;
  }
  .sh-prorab,
  .sh-me {
    display: none;
  }
  .sh-main {
    grid-template-rows: auto minmax(0, 1fr);
  }
  .sh-top {
    padding: var(--s-3) var(--s-4);
    flex-wrap: wrap;
  }
  .sh-search {
    order: 3;
    width: 100%;
  }
  .sh-body {
    padding: var(--s-4);
  }
  .sh-log-i {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-1);
  }
  .sh-row2 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .sh-kv,
  .sh-kv.is-4,
  .sh-stat-g.is-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sh-grid2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .sh-band {
    grid-template-columns: 20px minmax(0, 1fr);
  }
  .sh-band-act {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
  .sh-oyna-top {
    padding: 0 var(--s-3);
  }
  .sh-oyna-body {
    padding: var(--s-3);
  }
  .sh-tl-i {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .sh-tl-i > time {
    padding-top: 0;
  }
}

/* ════════════ O'QUVCHI OYNASI (qo'shimcha) ════════════ */
/* Bir ustunli ko'rinish: telefonda ham, kompyuterda ham 720px dan kengaymaydi. */
.is-oyna .sh-btn {
  height: var(--h-ctl-l);
}
.sh-oyna-top .sh-brand-name {
  display: inline;
  flex: none;
}
.sh-oyna-kim {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 0;
  line-height: 1.2;
  text-align: right;
}
.sh-oyna-kim b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-s);
  font-weight: 600;
}
.sh-oyna-kim small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.sh-oyna-one {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin: 0 auto;
  padding: var(--s-5) var(--s-4) var(--s-7);
}
.sh-oyna-one .sh-card {
  padding: var(--s-4);
}
.sh-oyna-nomi {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-track);
  font-size: var(--fs-xl);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.sh-oyna-meta {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  min-width: 0;
  color: var(--text-3);
}
.sh-oyna-meta .sh-ic {
  margin-top: 2px;
}
.sh-oyna-meta code {
  color: var(--text-2);
}
.sh-oyna-qayt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--s-3);
  border-radius: var(--r-m);
  background: var(--warning-soft);
  font-size: var(--fs-s);
  overflow-wrap: anywhere;
}
.sh-oyna-qayt b {
  font-weight: 600;
}
.sh-oyna-one .sh-btns .sh-chip {
  flex: 1 1 100%;
  font-size: var(--fs-s);
}
.sh-oyna-satr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.sh-oyna-izoh {
  padding-left: var(--s-2);
  border-left: 2px solid var(--border-strong);
  font-size: var(--fs-s);
  color: var(--text-2);
}
.sh-oyna-javob {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: var(--s-1);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-m);
  background: var(--success-soft);
  font-size: var(--fs-s);
}
.sh-oyna-javob b {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
}
.sh-oyna-h {
  margin-top: var(--s-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* sinov bandi: matn + tugmalar, skrinshot kichik rasm */
.sh-oyna-one .sh-band {
  grid-template-columns: 24px minmax(0, 1fr);
}
.sh-oyna-one .sh-band:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.sh-oyna-one .sh-band.is-tanlangan {
  box-shadow: 0 0 0 2px var(--primary);
}
.sh-oyna-one .sh-band-act {
  grid-column: 2 / -1;
  justify-content: flex-start;
}
.sh-oyna-one .sh-band-act .sh-btn {
  height: auto;
  min-height: var(--h-ctl-l);
  padding-block: var(--s-2);
  white-space: normal;
  text-align: center;
}
.sh-skrin {
  display: block;
  align-self: flex-start;
  width: 120px;
  height: 76px;
  padding: 0;
  overflow: hidden;
  border-radius: var(--r-s);
  border: 1px solid var(--border-strong);
  background: var(--surface-3);
}
.sh-skrin .sh-thumb {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}
.sh-skrin-b {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: var(--s-1);
  font-size: var(--fs-xs);
  color: var(--text-3);
  text-align: center;
}
.sh-fayl {
  display: none;
}

@media (max-width: 480px) {
  .sh-oyna-one {
    padding: var(--s-3) var(--s-3) var(--s-6);
  }
  .sh-oyna-one .sh-card {
    padding: var(--s-4) var(--s-3);
  }
  .sh-oyna-one .sh-band-act {
    grid-column: 1 / -1;
  }
  .sh-oyna-one .sh-btns > .sh-btn,
  .sh-oyna-one .sh-band-act .sh-btn {
    flex: 1 1 auto;
  }
}
