:root {
  --primary: #8b5cf6;
  --primary-dark: #6d3fd8;
  --appbar: #36245e;
  --bg: #121212;
  --card: #1e1e1e;
  --hint: #6c6f84;
  --text: #ffffff;
  --divider: rgba(255, 255, 255, 0.12);
  --hairline: rgba(255, 255, 255, 0.08);
  --gold: #ffc107;
  --silver: #b0bec5;
  --bronze: #cd7f32;
  --up: #2e7d32;
  --danger: #ff6767;
  --pending: #f28c28;
  --phone-w: 390px;
  --phone-h: 844px;
  --nav-h: 58px;
  --status-h: 44px;
  --appbar-h: 48px;
  --radius-card: 20px;
  --pad: 15px;
  --fs-xs: 10px;
  --fs-sm: 12px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 18px;
  font-family: "Roboto", sans-serif;
}

@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../assets/fonts/Roboto-Bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Student dark theme: primary #5B6EC2, appBar #2B3553 */
html[data-mode="student"] {
  --primary: #5b6ec2;
  --primary-dark: #3b418c;
  --appbar: #2b3553;
}

.chip-mode.active {
  border-color: var(--primary);
  color: #fff;
  background: color-mix(in srgb, var(--primary) 28%, #1c1c22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: #0a0a0c;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 12px;
}

.page-label {
  color: #9aa0b4;
  font-size: 13px;
  text-align: center;
  max-width: 440px;
  line-height: 1.4;
}

.toolbar-note {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.chip {
  background: #1c1c22;
  border: 1px solid #2e2e36;
  color: #c8cad4;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}

.chip:hover {
  border-color: var(--primary);
}

.phone {
  width: var(--phone-w);
  height: var(--phone-h);
  border-radius: 40px;
  background: #000;
  border: 10px solid #1a1a1e;
  box-shadow: 0 0 0 1px #333, 0 24px 60px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #000;
  border-radius: 20px;
  z-index: 50;
}

.app {
  height: 100%;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Material icon base size helpers */
.material-icons-round,
.material-icons-outlined {
  font-size: 24px;
  line-height: 1;
  user-select: none;
}

.status-bar {
  height: var(--status-h);
  background: var(--appbar);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 18px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.status-icons .material-icons-round {
  font-size: 14px;
}

.appbar {
  height: var(--appbar-h);
  background: var(--appbar);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  flex-shrink: 0;
}

.appbar-title-row {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  cursor: pointer;
}

.appbar-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appbar-title-row .material-icons-round {
  font-size: 22px;
  color: #fff;
}

.appbar-back {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.appbar-back .material-icons-round {
  font-size: 18px;
}

.appbar-profile {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 0;
  background: #fff;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 8px;
}

html[data-mode="student"] .appbar-profile {
  color: #000;
}

.appbar-icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  border-radius: 50%;
}

.appbar-icon-btn .material-icons-round,
.appbar-icon-btn .material-icons-outlined {
  font-size: 24px;
}

.appbar-profile .material-icons-round,
.appbar-profile .material-icons-outlined {
  font-size: 22px;
}

.content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: calc(var(--nav-h) + 34px);
  -webkit-overflow-scrolling: touch;
}

.content::-webkit-scrollbar {
  width: 0;
}

.list-pad {
  padding: 8px 16px 4px;
}

.list-pad.tight-top {
  padding-top: 0;
}

/* Bottom nav — Dimensions.mainMenuBarHeight 58 */
.bottom-nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--card);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 40;
}

.nav-hairline {
  height: 0.5px;
  background: var(--hairline);
}

.nav-row {
  height: var(--nav-h);
  display: flex;
  position: relative;
}

.nav-home-indicator {
  height: 8px;
  background: var(--card);
}

.nav-item {
  flex: 1;
  border: 0;
  background: transparent;
  color: #9e9e9e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  position: relative;
  z-index: 2;
  padding: 4px 2px;
  font-family: inherit;
  opacity: 0.72;
  transform: scale(0.92);
}

.nav-item.active {
  color: var(--primary);
  opacity: 1;
  transform: scale(1);
}

.nav-ico {
  font-size: 24px !important;
}

.nav-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item.active .nav-label {
  font-weight: 700;
}

.nav-center {
  flex: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}

.nav-fab {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  margin-top: 0;
}

html[data-mode="student"] .fab-core {
  background: var(--primary);
}

.fab-core img {
  width: 22px;
  height: 22px;
  display: block;
  filter: brightness(0) invert(1);
}

.fab-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.fab-core {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-dark);
  display: grid;
  place-items: center;
  color: #fff;
}

.fab-core .material-icons-round {
  font-size: 22px;
}

.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 20%;
  height: 2px;
  background: var(--primary);
  transition: transform 0.22s ease;
  z-index: 1;
}

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 12px;
  overflow: hidden;
}

.group-head {
  display: flex;
  align-items: center;
  padding: 14px 12px 14px 16px;
  gap: 8px;
  cursor: pointer;
}

.group-meta {
  flex: 1;
  min-width: 0;
}

.group-name {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-course {
  margin-top: 4px;
  font-size: 13px;
  color: var(--hint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 171, 124, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.chevron {
  color: var(--hint);
  transition: transform 0.2s;
}

.chevron .material-icons-round {
  font-size: 22px;
}

.card.expanded .chevron {
  transform: rotate(180deg);
}

.group-body {
  display: none;
  border-top: 1px solid var(--divider);
}

.card.expanded .group-body {
  display: block;
}

.rating-head {
  display: flex;
  align-items: center;
  padding: 8px 4px 4px 12px;
  gap: 6px;
}

.rating-head .material-icons-outlined {
  font-size: 16px;
  color: var(--primary);
}

.rating-head .label {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
}

.icon-btn .material-icons-round {
  font-size: 20px;
}

.icon-btn:active {
  background: rgba(37, 171, 124, 0.12);
}

/* Ranking row — padding 10,8,12,8 */
.rank-row {
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 10px;
  gap: 8px;
  cursor: pointer;
}

.rank-row:active {
  background: rgba(255, 255, 255, 0.03);
}

.rank-row .avatar { position: relative; overflow: visible; }
.rank-row .rank-info { min-width: 0; }
.rank-row .rank-phone { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-note { flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 4px 6px 4px 4px; border-radius: 999px; background: #e0873a; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.rank-note .material-icons-outlined { font-size: 14px; }
.pill.note-pill, html[data-mode="staff"] .pill.note-pill { gap: 3px; padding: 4px 8px; color: #fff; background: #e0873a; font-weight: 700; }
.pill.note-pill .material-icons-outlined { font-size: 14px; }
.note-sum { display: flex; align-items: center; gap: 8px; margin: 10px 12px 2px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; color: #ffd2a8; background: rgba(224,135,58,.12); border: 1px solid rgba(224,135,58,.35); }
.note-sum .material-icons-outlined { font-size: 18px; color: #e0873a; }
.note-sum b { color: #fff; }

.rank-sep {
  height: 1px;
  margin: 0 12px;
  background: var(--divider);
}

.rank-badge {
  width: 28px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  position: relative;
}

.rank-badge .trophy {
  font-size: 26px !important;
}

.rank-badge .num-bubble {
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 1.2px solid;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.rank-circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(51, 54, 70, 0.35);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.rank-info {
  flex: 1;
  min-width: 0;
}

.rank-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-phone {
  margin-top: 1px;
  font-size: 12px;
  color: var(--hint);
}

.rank-stats {
  text-align: right;
  flex-shrink: 0;
}

.rank-score-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
}

.rank-progress {
  font-size: 11px;
  color: var(--hint);
  margin-right: 6px;
}

.rank-score {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

.rank-points-today {
  font-size: 11px;
  font-weight: 500;
  color: var(--up);
}

.rank-change {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
}

.rank-change.up {
  color: var(--up);
}

.rank-change.down {
  color: var(--danger);
}

.rank-change .material-icons-round {
  font-size: 20px;
  margin-left: 2px;
}

.rank-seen {
  margin-top: 2px;
  font-size: 10px;
  color: var(--hint);
}

.rank-seen.online {
  color: var(--primary);
  font-weight: 600;
}

/* Search row */
.search-row {
  padding: 16px 16px 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.search-field {
  flex: 1;
  height: 48px;
  border-radius: 20px;
  border: 1px solid var(--divider);
  background: var(--card);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.search-field .material-icons-round {
  color: #9e9e9e;
  font-size: 24px;
}

.search-field input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.search-field input::placeholder {
  color: var(--hint);
}

.filter-btn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid var(--divider);
  background: var(--card);
  color: var(--primary);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.filter-btn .material-icons-outlined {
  font-size: 22px;
}

/* Students list */
.student-list {
  background: var(--card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.student-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 12px;
  cursor: pointer;
}

.student-row + .student-row {
  border-top: 1px solid var(--divider);
}

.student-name {
  font-size: 15px;
  font-weight: 600;
}

.student-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--hint);
}

.badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.badge-ok {
  background: rgba(37, 171, 124, 0.15);
  color: var(--primary);
}

.badge-warn {
  background: rgba(242, 140, 40, 0.18);
  color: var(--pending);
}

.badge-off {
  background: rgba(108, 111, 132, 0.2);
  color: var(--hint);
}

/* Enrollment */
.enroll-card {
  padding: 14px 16px;
}

.enroll-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.enroll-name {
  font-size: 16px;
  font-weight: 600;
}

.enroll-phone {
  margin-top: 4px;
  font-size: 13px;
  color: var(--hint);
}

.enroll-meta {
  margin-top: 8px;
  font-size: 12px;
  color: var(--hint);
  line-height: 1.45;
}

.enroll-chevron {
  color: var(--hint);
}

.push-card {
  padding: 14px 16px;
}

.push-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.push-body {
  font-size: 13px;
  color: var(--hint);
  line-height: 1.4;
}

.push-time {
  margin-top: 8px;
  font-size: 11px;
  color: var(--hint);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-row {
  display: flex;
  gap: 12px;
}

.btn-row .btn {
  flex: 1;
  min-height: 48px;
}

.btn .material-icons-round {
  font-size: 18px;
}

/* Sheet */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 60;
  display: none;
  align-items: flex-end;
}

.overlay.open {
  display: flex;
}

.sheet {
  width: 100%;
  background: var(--card);
  border-radius: 20px 20px 0 0;
  padding: 12px 20px 20px;
  animation: sheet-up 0.22s ease;
}

@keyframes sheet-up {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sheet-handle {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: var(--divider);
  margin: 0 auto 16px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 600;
}

.sheet-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--hint);
}

.sheet-label {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 500;
}

.period-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
}

.period-field .material-icons-outlined {
  font-size: 18px;
  color: var(--primary);
}

.period-field .material-icons-round {
  margin-left: auto;
  color: var(--hint);
  font-size: 22px;
}

.sheet-actions {
  margin-top: 24px;
}

.toast {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(var(--nav-h) + 28px);
  background: #2a2a2e;
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  z-index: 80;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.toast.show {
  display: block;
}

.toast.ok {
  border-left: 3px solid var(--primary);
}

.toast.error {
  border-left: 3px solid var(--danger);
}

.profile-block {
  padding: 20px 16px;
  text-align: center;
}

.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
}

.profile-phone {
  margin-top: 4px;
  color: var(--hint);
  font-size: 14px;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 16px 16px;
}

/* —— User profile (ProfileScreen) —— */
.user-profile {
  padding-bottom: 24px;
}

.user-card {
  margin: 24px 16px 12px;
  padding: 16px;
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

.user-card-edit {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  color: var(--hint);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  cursor: pointer;
  border-radius: 50%;
}

.user-card-edit .material-icons-outlined {
  font-size: 22px;
}

.user-card-body {
  padding-top: 8px;
  text-align: center;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.user-name {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.menu-block {
  margin: 0 16px 12px;
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
}

.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  min-height: 48px;
}

.menu-row:active {
  background: rgba(255, 255, 255, 0.04);
}

.menu-row .menu-ico {
  color: #9e9e9e;
  font-size: 22px !important;
  width: 22px;
  flex-shrink: 0;
}

.menu-row .menu-brand {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.menu-row .menu-brand svg {
  width: 22px;
  height: 22px;
}

.menu-row .menu-title {
  flex: 1;
  min-width: 0;
}

.menu-row .menu-chevron {
  color: #757575;
  font-size: 20px !important;
}

.menu-row.accent .menu-ico,
.menu-row.accent .menu-title {
  color: var(--menu-accent, var(--primary));
}

.menu-divider {
  height: 1px;
  margin-left: 56px;
  margin-right: 16px;
  background: var(--divider);
  opacity: 0.25;
}

.menu-row.switch-row {
  cursor: default;
}

.lang-switch {
  display: flex;
  gap: 0;
  padding: 2px;
  border-radius: 8px;
  background: #333;
}

.lang-chip {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.lang-chip.active {
  background: var(--primary);
  color: #fff;
}

.toggle {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #555;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.toggle.on {
  background: var(--primary);
}

.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.toggle.on::after {
  transform: translateX(18px);
}

/* Student home — sizes from Flutter Dimensions + screenshot */
.section-title {
  padding: 8px 15px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px 8px;
}

.section-row .section-title {
  padding: 0;
  flex: 1;
}

.section-date {
  font-size: 11px;
  color: var(--hint);
  font-weight: 400;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.banner-wrap {
  padding-top: 16px;
}

.banner-track {
  padding: 0 12px;
  overflow: hidden;
}

.banner-slide {
  width: 100%;
  aspect-ratio: 2.55 / 1;
  border-radius: 15px;
  overflow: hidden;
  background: linear-gradient(100deg, #f4b429 0%, #f08c16 55%, #e97812 100%);
  position: relative;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: block;
  font-family: inherit;
}

.banner-art {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 8px;
  gap: 6px;
}

.banner-pic {
  width: 42%;
  height: 100%;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 30%, #3b2a8a 0 18%, transparent 19%),
    radial-gradient(circle at 55% 70%, #2f6b4f 0 16%, transparent 17%),
    radial-gradient(circle at 70% 40%, #f2efe6 0 22%, transparent 23%);
}

.banner-copy {
  flex: 1;
  text-align: right;
  color: #fff;
}

.banner-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.2px;
}

.banner-copy small {
  display: block;
  margin-top: 6px;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.25;
  opacity: 0.95;
}

.banner-slide img,
.banner-slide .banner-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 10px 0 12px;
}

.banner-dots i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #fff;
  opacity: 0.35;
  display: block;
}

.banner-dots i.on {
  width: 14px;
  opacity: 1;
  background: #4caf50;
}

.service-grid {
  margin: 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.service-tile {
  margin: 4px;
  background: var(--card);
  border-radius: 20px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
  border: 0;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
}

.service-tile img,
.service-tile .material-icons-round {
  width: 26px;
  height: 26px;
  font-size: 26px;
  object-fit: contain;
}

.service-tile span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  text-align: center;
  padding: 0 2px;
  max-width: 100%;
}

.service-tile.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.service-tile .soon-badge {
  position: absolute;
  top: 8px;
  right: 6px;
  z-index: 1;
  background: #f8bb12;
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: lowercase;
}

.stopped-pad {
  padding: 0 15px 4px;
}

.stopped-card {
  background: var(--card);
  border-radius: 15px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.stopped-thumb {
  width: 92px;
  height: 92px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
  background: #3d2a6e;
}

.stopped-body {
  flex: 1;
  min-width: 0;
}

.stopped-card .cc-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.stopped-card .cc-meta {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

.stopped-progress {
  margin-top: 10px;
  height: 4px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.stopped-progress > i {
  display: block;
  height: 100%;
  background: var(--primary);
  border-radius: 5px;
}

.play-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.play-btn .material-icons-round {
  font-size: 22px;
}

.today-wrap {
  padding: 0 15px 4px;
}

.today-card {
  background: var(--card);
  border-radius: 15px;
  padding: 15px;
}

.today-div {
  height: 1px;
  margin: 8px 0;
  background: var(--divider);
}

.today-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.today-row .material-icons-outlined {
  font-size: 18px;
  flex-shrink: 0;
}

.today-row .tr-course {
  font-size: 10px;
  font-weight: 400;
  color: var(--hint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-row .tr-lesson {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.today-row .tr-lesson.done {
  text-decoration: underline;
}

.today-row .chev {
  color: var(--hint);
  font-size: 24px !important;
  margin-left: auto;
  flex-shrink: 0;
}

.seg-tabs {
  margin: 10px 15px 0;
  height: 40px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--divider);
  background: var(--bg);
  display: flex;
  position: relative;
}

.seg-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--hint);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9px;
  cursor: pointer;
  z-index: 1;
}

.seg-tabs button.on {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

.purchase-row {
  display: flex;
  gap: 10px;
  background: var(--card);
  border-radius: 15px;
  padding: 16px;
  margin-bottom: 10px;
}

.purchase-thumb {
  width: 30%;
  max-width: 118px;
  min-width: 96px;
}

.purchase-thumb img,
.purchase-thumb .ph {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.purchase-days {
  margin-top: 6px;
  font-size: 10px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}

.purchase-title {
  font-size: 16px;
  font-weight: 500;
}

.purchase-meta {
  margin-top: 5px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
}

.news-card,
.notif-card {
  background: var(--card);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 10px;
}

.news-card .n-time,
.notif-card .n-time {
  font-size: 12px;
  color: var(--hint);
  margin-top: 6px;
}

.news-card .n-title,
.notif-card .n-title {
  font-size: 16px;
  font-weight: 600;
}

.news-card .n-body,
.notif-card .n-body {
  font-size: 14px;
  color: var(--hint);
  margin-top: 4px;
  line-height: 1.35;
}

.stat-tile {
  background: var(--card);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.stat-val {
  font-size: 18px;
  font-weight: 700;
}

.stat-lbl {
  margin-top: 2px;
  font-size: 11px;
  color: var(--hint);
}

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--hint);
  font-size: 14px;
}

/* —— Action menu (long-press) —— */
.menu-layer {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.26);
}

.menu-layer[hidden],
.dialog-layer[hidden],
.screen-overlay[hidden] {
  display: none !important;
}

.action-menu {
  position: absolute;
  width: 156px;
  background: var(--card);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: menu-pop 0.14s ease;
}

@keyframes menu-pop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.action-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}

.action-menu-item + .action-menu-item {
  border-top: 1px solid var(--divider);
}

.action-menu-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.action-menu-item .material-icons-outlined,
.action-menu-item .material-icons-round {
  font-size: 16px;
  color: var(--primary);
}

.action-menu-item.danger {
  color: #ff5252;
}

.action-menu-item.danger .material-icons-outlined,
.action-menu-item.danger .material-icons-round {
  color: #ff5252;
}

/* —— Confirm dialog —— */
.dialog-layer {
  position: absolute;
  inset: 0;
  z-index: 75;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.confirm-dialog {
  width: 100%;
  background: var(--card);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
}

.confirm-title {
  font-size: 16px;
  font-weight: 600;
}

.confirm-msg {
  margin-top: 12px;
  font-size: 14px;
  color: var(--hint);
  line-height: 1.4;
}

.confirm-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

.confirm-actions .btn {
  flex: 1;
  min-height: 44px;
}

.btn-danger {
  background: #ff5252;
  color: #fff;
}

/* —— Form sheets —— */
.sheet.tall {
  max-height: 88%;
  overflow-y: auto;
}

.field-label {
  margin-top: 14px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--divider);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 14px;
  outline: none;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  border-color: var(--primary);
}

.field-textarea {
  min-height: 88px;
  resize: vertical;
}

.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='%236c6f84'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 36px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 171, 124, 0.15);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}

.chip-tag button {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}

.chip-tag .material-icons-round {
  font-size: 14px;
}

.picker-list {
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--divider);
  border-radius: 12px;
  margin-top: 8px;
}

.picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  border: 0;
  width: 100%;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-family: inherit;
  font-size: 14px;
}

.picker-row + .picker-row {
  border-top: 1px solid var(--divider);
}

.picker-row.selected {
  background: rgba(37, 171, 124, 0.1);
}

.picker-row .check {
  margin-left: auto;
  color: var(--primary);
  font-size: 18px !important;
  visibility: hidden;
}

.picker-row.selected .check {
  visibility: visible;
}

.radio-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--divider);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
}

.radio-item.active {
  border-color: var(--primary);
  background: rgba(37, 171, 124, 0.08);
}

.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--hint);
  display: grid;
  place-items: center;
}

.radio-item.active .radio-dot {
  border-color: var(--primary);
}

.radio-item.active .radio-dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

/* Full-screen overlay (эфир / nested picker) */
.screen-overlay {
  position: absolute;
  inset: 0;
  z-index: 55;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.screen-overlay .appbar {
  flex-shrink: 0;
}

.screen-overlay .content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 24px;
}

.efir-card {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.efir-card .material-icons-round {
  font-size: 28px;
  color: var(--primary);
}

.longpress-hint {
  color: var(--hint);
  font-size: 11px;
  text-align: center;
  padding: 4px 16px 8px;
}

@media (max-width: 440px) {
  body {
    padding: 0;
    justify-content: flex-start;
  }
  .page-label,
  .toolbar-note {
    display: none;
  }
  .phone {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }
  .phone-notch {
    display: none;
  }
}

.seg-tabs.seg-3 button { font-size: 13px; }

.blog-row, .push-row, .cat-row, .guide-row, .trainer-card, .purchase-row {
  width: 100%;
  border: 0;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.blog-row {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 16px;
}
.blog-row img {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  object-fit: contain;
  background: #121212;
  flex-shrink: 0;
}
.blog-title { font-size: 16px; font-weight: 600; }
.blog-body { margin-top: 8px; font-size: 14px; font-weight: 500; color: var(--hint); }

.push-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--card);
  border-radius: 15px;
  padding: 16px;
  margin-bottom: 12px;
}
.push-row img { width: 32px; height: 32px; object-fit: contain; filter: none; }
.push-line { width: 1px; align-self: stretch; background: var(--divider); }
.push-when, .push-title, .push-body { display: block; }
.push-when { font-size: 11px; color: var(--hint); font-weight: 500; }
.push-title { margin-top: 4px; font-size: 16px; font-weight: 600; }
.push-body { margin-top: 4px; font-size: 14px; font-weight: 500; color: #c8cad4; }

.cat-row {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border-radius: 20px;
  padding: 0 12px;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}
.cat-ico {
  width: 35px;
  height: 35px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.cat-ico img { width: 21px; height: 21px; object-fit: contain; filter: brightness(0) invert(1); }
.cat-row .chev, .guide-row .chev, .trainer-card .chev { margin-left: auto; color: var(--hint); font-size: 22px; }

.hub-head { padding: 12px 16px 0; }
.hub-title { font-size: 22px; font-weight: 700; }
.hub-sub { font-size: 13px; color: var(--hint); margin: 4px 0 12px; }
.guide-card { margin: 12px 16px; background: var(--card); border-radius: 16px; overflow: hidden; }
.guide-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  background: transparent;
  border-bottom: 1px solid var(--divider);
}
.guide-code { font-size: 11px; letter-spacing: 0.6px; color: var(--hint); }
.guide-name { font-size: 15px; font-weight: 500; margin-top: 2px; }
.guide-meta { font-size: 13px; color: var(--hint); margin-top: 4px; }

.trainer-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border-radius: 15px;
  padding: 12px;
  margin-bottom: 12px;
}
.trainer-card img {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
  background: #121212;
  padding: 8px;
}

.analytics { background: #1a1a2e; min-height: 100%; padding: 16px; }
.analytics .news-card { background: #2d2d44; margin-bottom: 12px; }


/* ============================================================
   Student screens — 1:1 with device screenshots (2026-10-02)
   ============================================================ */

/* Bottom nav: no top indicator in student app */
html[data-mode="student"] .nav-indicator { display: none; }

/* Inner app bar: white round back + left title, no profile */
.appbar-inner { gap: 14px; }
.appbar-inner .appbar-back { color: #111; width: 26px; height: 26px; }
.appbar-inner .appbar-back .material-icons-round { font-size: 18px; }

/* —— Home banner —— */
.banner-slide {
  background: linear-gradient(100deg, #f7a46a 0%, #f9c070 45%, #fbe27c 100%);
  display: flex;
  align-items: center;
  text-align: left;
}
.banner-logo {
  position: absolute;
  top: 4px;
  left: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.banner-slide .banner-pic {
  position: relative;
  width: 40%;
  height: 100%;
  background: none;
}
.banner-pic > span {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 6px;
}
.banner-pic .material-icons-round,
.banner-pic .material-icons-outlined { font-size: inherit; }
.bp-board { left: 26%; top: 18%; width: 46%; height: 70%; background: linear-gradient(#e9ecf8, #cfd6ef); color: #f4c430; font-size: 26px; box-shadow: 0 4px 8px rgba(0,0,0,.18); }
.bp-cap { left: 10%; top: 8%; color: #2d2f44; font-size: 34px; transform: rotate(-14deg); }
.bp-cal { left: 58%; top: 10%; width: 26px; height: 26px; background: #fff; color: #5b8fd6; font-size: 20px; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.bp-list { left: 8%; top: 52%; width: 30px; height: 40px; background: #e8f5e9; color: #3a9a5a; font-size: 22px; border: 2px solid #3a9a5a; box-shadow: 0 2px 4px rgba(0,0,0,.15); }
.bp-doc { left: 64%; top: 52%; width: 30px; height: 38px; background: #fff; color: #9aa0b4; font-size: 22px; box-shadow: 0 2px 4px rgba(0,0,0,.15); transform: rotate(8deg); }
.banner-slide .banner-copy {
  flex: 1;
  text-align: center;
  padding-right: 8px;
}
.banner-slide .banner-copy strong {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
  color: #2b3fcb;
}
.banner-slide .banner-copy small {
  margin-top: 10px;
  font-size: 7.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #2b3fcb;
  opacity: 1;
}
.banner-copy em { font-style: normal; color: #e8334a; }
.banner-dots i { opacity: 1; width: 5px; }
.banner-dots i.on { width: 14px; }

/* —— Today schedule (home) —— */
.ls-ico { width: 20px; height: 20px; flex-shrink: 0; font-size: 20px !important; }
.today-card { padding: 12px 15px; }
.today-div { background: rgba(255, 255, 255, 0.75); margin: 10px 0; }
.today-row .tr-course { font-size: 10px; }
.today-row .tr-lesson { font-size: 14px; font-weight: 500; text-decoration: none; }

/* —— News —— */
.news-list { padding-top: 22px; }
.blog-row {
  background: #2a2a2a;
  border-radius: 14px;
  padding: 14px 16px;
  gap: 16px;
}
.blog-title { font-size: 15.5px; font-weight: 500; line-height: 1.5; letter-spacing: 0.2px; }
.blog-body {
  margin-top: 6px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
  color: #e6e6e6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-thumb {
  width: 64px;
  height: 56px;
  border-radius: 5px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  display: block;
}
.news-thumb.ph { background: #efefef; color: #b9b9b9; display: grid; place-items: center; }
.news-thumb.ph .material-icons-outlined { font-size: 40px; }
.nt-light { background: linear-gradient(160deg, #fff 55%, #f6f39a); color: #222; }
.nt-light b { position: absolute; left: -2px; top: 13px; font-size: 6.5px; line-height: 1.15; font-weight: 800; }
.nt-light em { font-style: normal; color: #a43ce0; font-size: 9px; }
.nt-light s { text-decoration: none; font-size: 4px; }
.nt-tag { position: absolute; right: 2px; top: 1px; font-size: 3.5px; background: #a43ce0; color: #fff; padding: 0 2px; border-radius: 2px; }
.nt-blob { position: absolute; right: 2px; bottom: 6px; width: 20px; height: 22px; background: radial-gradient(circle at 50% 30%, #e05a7a 0 35%, transparent 36%), linear-gradient(#f2b36a, #c7652b); border-radius: 4px; }
.nt-coin { position: absolute; right: 4px; bottom: 8px; width: 16px; height: 12px; background: repeating-linear-gradient(#f2c230 0 3px, #d9a21c 3px 4px); border-radius: 2px; }
.nt-dark { background: radial-gradient(circle at 20% 15%, #7a7d93 0, transparent 40%), linear-gradient(135deg, #2b2d3c, #1d1e28 60%, #5c3ca8); }
.nt-search { position: absolute; left: 4px; right: 4px; top: 22px; height: 7px; border-bottom: 1px solid #555; font-size: 4px; color: #ccc; }
.nt-dark i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #b48cff; }
.nt-dark i:nth-of-type(1) { right: 6px; top: 8px; }
.nt-dark i:nth-of-type(2) { right: 12px; top: 15px; }
.news-open .news-thumb { width: 100%; height: 160px; border-radius: 15px; }
.news-open .nt-light b { font-size: 18px; left: 16px; top: 40px; }
.news-open .nt-light em { font-size: 24px; }
.news-open .nt-light s { font-size: 11px; }

/* —— Poster (course cover) —— */
.poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
}
.poster-text {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
}
.poster-text b { font-size: 10px; font-weight: 800; line-height: 1.05; letter-spacing: -0.2px; text-transform: uppercase; }
.poster-text i { font-style: normal; font-size: 4.5px; font-weight: 700; background: #fff; color: #333; padding: 1px 3px; border-radius: 1px; }
.poster img { position: absolute; right: 3%; bottom: 6%; width: 42%; height: 80%; object-fit: contain; }
.poster-logo { position: absolute; left: 3px; bottom: 6px; font-size: 7px; font-weight: 800; }
.poster.sq { width: 72px; height: 72px; aspect-ratio: auto; border-radius: 12px; flex-shrink: 0; }
.poster.sq .poster-text { width: 62%; }
.poster.sq .poster-text b { font-size: 8px; }
.poster.sq img { width: 40%; }
.poster.sq .poster-logo { display: none; }
.course-hero .poster { border-radius: 15px; }
.course-hero .poster-text b { font-size: 26px; }
.course-hero .poster-text i { font-size: 11px; padding: 2px 6px; }
.course-hero .poster-logo { font-size: 14px; left: 10px; bottom: 10px; }

/* —— My courses —— */
.courses-seg { margin: 10px 15px 0; height: 40px; }
html[data-mode="student"] .seg-tabs { border-color: #3b3f52; background: #141414; }
html[data-mode="student"] .seg-tabs button.on { background: #222; }
.purchase-row { display: block; padding: 16px 16px 16px; border-radius: 15px; background: #1e1e1e; }
.purchase-top { display: flex; gap: 10px; }
.purchase-thumb { width: 118px; max-width: none; min-width: 0; flex-shrink: 0; }
.purchase-days { font-size: 10px; color: rgba(255, 255, 255, 0.75); font-weight: 400; margin-top: 7px; }
.purchase-title { font-size: 15.5px; font-weight: 400; }
.purchase-meta { font-size: 13.5px; font-weight: 400; color: rgba(255, 255, 255, 0.55); margin-top: 4px; }
.purchase-bar { margin-top: 8px; height: 4px; border-radius: 3px; background: #3e4160; overflow: hidden; }
.purchase-bar i { display: block; height: 100%; background: var(--primary); }

/* —— Schedule —— */
.sch-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 15px 0; }
.sch-stat { background: #1e1e1e; border-radius: 10px; padding: 12px 4px 10px; text-align: center; }
.sch-stat b { display: block; font-size: 15px; font-weight: 700; }
.sch-stat span { display: block; margin-top: 4px; font-size: 9.5px; color: var(--hint); }
.sch-seg { margin-top: 12px; }
.sch-seg button { font-size: 12.5px !important; }
.sch-nav { display: flex; align-items: center; justify-content: space-between; margin: 10px 15px 12px; }
.sch-nav b { font-size: 13px; font-weight: 600; }
.sch-arrow { width: 40px; height: 40px; border-radius: 9px; border: 0; background: #1e1e1e; color: #9a9db0; display: grid; place-items: center; cursor: pointer; }
.sch-card {
  width: 100%;
  border: 0;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1e1e1e;
  border-radius: 12px;
  padding: 14px 14px 14px 18px;
  margin-bottom: 8px;
}
.sch-course { font-size: 10.5px; color: var(--hint); }
.sch-lesson { margin-top: 4px; font-size: 13px; font-weight: 600; }
.sch-tags { display: flex; gap: 6px; margin-top: 8px; }
.sch-tags span { background: #141414; color: #8c8f9e; font-size: 9.5px; padding: 4px 8px; border-radius: 999px; }
.sch-badge { font-size: 9.5px; font-weight: 600; padding: 5px 8px; border-radius: 999px; background: #262a33; color: #9a9db0; flex-shrink: 0; }
.sch-badge.ok { background: #1f2e24; color: #5cb36d; }
.sch-badge.bad { background: #3a2020; color: #e86b6b; }

/* —— Tests: ЕНТ комбинация —— */
.ent-card { background: #1e1e1e; border: 1px solid #2e2e36; border-radius: 15px; padding: 0 16px 16px; }
.ent-card-head {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 0 22px;
  font-size: 14.5px;
  cursor: pointer;
}
.ent-card-head span:first-child { flex: 1; text-align: left; }
.ent-card-head .material-icons-round { font-size: 20px; }
.ent-sec { border-top: 1px solid #34343c; padding: 16px 0 6px; }
.ent-sec-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.ent-sec-ico { width: 34px; height: 34px; border-radius: 9px; background: #262a38; color: #7f88c8; display: grid; place-items: center; flex-shrink: 0; }
.ent-sec-ico .material-icons-round, .ent-sec-ico .material-icons-outlined { font-size: 18px; }
.ent-sec-title { font-size: 14px; }
.ent-sec-sub { margin-top: 4px; font-size: 10.5px; color: #9a9db0; }
.ent-chips { display: flex; flex-wrap: wrap; gap: 7px 8px; }
.ent-chip {
  border: 1px solid #34343c;
  background: transparent;
  color: #6c6f84;
  font-family: inherit;
  font-size: 12px;
  padding: 0 14px;
  height: 40px;
  border-radius: 11px;
  cursor: pointer;
}
.ent-chip.on { border: 2px solid var(--c); color: var(--c); font-weight: 600; padding: 0 13px; }
.ent-summary { display: flex; flex-wrap: wrap; gap: 7px 8px; border-top: 1px solid #34343c; padding-top: 16px; }
.ent-start { width: 100%; margin-top: 16px; }
.sticky-foot { flex-shrink: 0; padding: 8px 15px 30px; background: var(--bg); }
.save-btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 22px;
  background: #5f6bbd;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

/* —— Trainer —— */
.trainer-list { padding-top: 12px; }
.trainer-intro { font-size: 12.5px; line-height: 1.5; color: #9a9db0; margin-bottom: 14px; }
.trainer-card { background: #1e1e1e; border-radius: 15px; padding: 12px 16px 12px 12px; margin-bottom: 12px; gap: 12px; }
.trainer-title { font-size: 13.5px; font-weight: 600; }
.trainer-bar { margin-top: 10px; height: 6px; border-radius: 4px; background: #3a2f2b; overflow: hidden; }
.trainer-bar i { display: block; height: 100%; min-width: 3px; background: #e07a3d; border-radius: 4px; }
.trainer-meta { margin-top: 8px; font-size: 11px; color: #6c6f84; }
.trainer-subject { padding-top: 12px; }
.trainer-meta-top { font-size: 12.5px; color: #6c6f84; }
.smart-btn {
  margin-top: 14px;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, #8a8fd6 0%, #5c61b3 55%, #44489a 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.smart-btn .material-icons-round { font-size: 18px; }
.trainer-hint { margin-top: 12px; font-size: 11px; line-height: 1.6; color: #6c6f84; }
.tsec { margin-top: 20px; background: #1e1e1e; border-radius: 13px; overflow: hidden; }
.tsec + .tsec { margin-top: 10px; }
.tsec-head { width: 100%; border: 0; background: transparent; color: #fff; font-family: inherit; display: flex; align-items: center; gap: 8px; padding: 18px 16px 18px 13px; text-align: left; cursor: pointer; }
.tsec-title { font-size: 13px; font-weight: 600; }
.tsec-meta { margin-top: 6px; font-size: 11px; color: #6c6f84; }
.tsec-body { border-top: 1px solid #2c2c33; padding: 4px 0; }
.tsec-topic { width: 100%; border: 0; background: transparent; color: #ddd; font-family: inherit; font-size: 12.5px; display: flex; justify-content: space-between; padding: 10px 16px 10px 13px; cursor: pointer; text-align: left; }
.tsec-pct { color: #6c6f84; }

/* —— AI for you —— */
.screen-overlay.ai-screen { background: #000; }
.ai-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px 6px; flex-shrink: 0; }
.ai-title { font-size: 15.5px; font-weight: 700; }
.ai-round { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #2a2a2c; color: #fff; display: grid; place-items: center; cursor: pointer; }
.ai-round .material-icons-round { font-size: 18px; }
.ai-feed { flex: 1; overflow-y: auto; padding: 0 22px 12px 32px; }
.ai-feed::-webkit-scrollbar { width: 0; }
.ai-msg { white-space: pre-wrap; font-size: 13.5px; line-height: 1.45; color: #f2f2f2; }
.ai-math { font-family: "Times New Roman", "STIX Two Math", serif; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.ai-math sub { font-size: 0.65em; }
.ai-frac { display: inline-flex; flex-direction: column; text-align: center; vertical-align: middle; margin: 0 2px; }
.ai-frac > span:first-child { border-bottom: 1px solid #fff; padding: 0 2px; }
.ai-copy { border: 0; background: transparent; color: #cfcfcf; cursor: pointer; padding: 0; margin: 14px 0 6px; display: block; }
.ai-copy .material-icons-outlined { font-size: 14px; }
.ai-user { margin: 16px 0 16px auto; max-width: 80%; width: fit-content; background: #2a2a2c; border-radius: 18px; padding: 9px 14px; font-size: 13.5px; }
.ai-chips { display: flex; gap: 8px; overflow-x: auto; padding: 8px 15px 10px; flex-shrink: 0; }
.ai-chips::-webkit-scrollbar { height: 0; }
.ai-chip { flex-shrink: 0; height: 36px; padding: 0 14px 0 12px; border-radius: 999px; border: 0; background: #1f1f21; color: #fff; font-family: inherit; font-size: 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ai-chip .material-icons-outlined { font-size: 16px; }
.ai-input { display: flex; align-items: center; gap: 10px; margin: 0 12px 26px; height: 56px; border-radius: 28px; background: #1f1f21; border: 1px solid #2c2c2e; padding: 0 8px 0 16px; flex-shrink: 0; }
.ai-input input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-family: inherit; font-size: 14px; outline: none; }
.ai-input input::placeholder { color: #8a8a8e; }
.ai-plus { border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ai-plus .material-icons-round { font-size: 24px; }
.ai-send { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #3a3a3c; color: #6b6b6f; display: grid; place-items: center; cursor: pointer; }
.ai-send.on { background: #fff; color: #000; }
.ai-send .material-icons-round { font-size: 20px; }

/* Full-screen pages keep the phone status bar visible (как на устройстве) */
.screen-overlay { top: var(--status-h); }
.app:has(.screen-overlay.ai-screen:not([hidden])) .status-bar { background: #000; }

/* Trainer square poster: undo generic .trainer-card img */
.trainer-card .poster img { width: 40%; height: 80%; padding: 0; background: none; border-radius: 0; }
.poster.sq .poster-text { width: 66%; }
.poster.sq .poster-text b { font-size: 7px; }
.poster.sq .poster-text i { font-size: 4px; }

/* AI text size as on device */
.ai-msg { font-size: 15px; line-height: 1.42; }
.ai-math { font-size: 15.5px; }
.ai-bar { padding-top: 6px; }

/* ============================================================
   Профессии / Аналитика / Умная практика (скриншоты 22:08)
   ============================================================ */

/* —— Профессии: список —— */
.hub-head .hub-title { font-size: 21px; }
.hub-head .hub-sub { font-size: 11.5px; margin: 6px 0 14px; }
.prof-tools { display: flex; gap: 8px; }
.prof-search {
  flex: 1;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: #1e1e1e;
  border: 1px solid #2c2c33;
  border-radius: 10px;
  color: #8a8d9c;
}
.prof-search .material-icons-round { font-size: 20px; }
.prof-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font-family: inherit; font-size: 13px; outline: none; }
.prof-search input::placeholder { color: #6c6f84; }
.prof-search.wide { margin: 14px 0 10px; height: 38px; background: #1a1a1a; }
.prof-drop {
  flex-shrink: 0;
  height: 32px;
  align-self: center;
  border: 0;
  border-radius: 8px;
  background: #2a2a2e;
  color: #fff;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 10px;
  cursor: pointer;
  max-width: 150px;
}
.prof-drop span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-drop .material-icons-round { font-size: 18px; color: #9a9db0; }
.prof-list { margin: 14px 15px; border: 1px solid #2c2c33; background: #1e1e1e; border-radius: 12px; }
.prof-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #2c2c33;
  background: transparent;
  color: #fff;
  font-family: inherit;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 13px;
  cursor: pointer;
}
.prof-row:last-child { border-bottom: 0; }
.prof-code, .prof-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  border: 1px solid #34343c;
  background: #232326;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
  color: #8a8d9c;
}
.prof-logo { color: #6f63e0; font-size: 11px; font-weight: 500; }
.prof-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.prof-num { font-size: 10.5px; color: #8a8d9c; }
.prof-name { font-size: 14px; line-height: 1.35; }
.prof-tag { display: inline-block; font-size: 10.5px; color: #6f63e0; background: #24223a; padding: 3px 8px; border-radius: 7px; }
.prof-tag.grey { color: #8a8d9c; background: #2a2a2e; }
.prof-city { font-size: 11.5px; color: #8a8d9c; display: flex; align-items: center; gap: 8px; }
.prof-row .chev { color: #6c6f84; font-size: 20px; }

/* —— Профессии: детали —— */
.prof-detail { padding-top: 12px; }
.pd-card { background: #1e1e1e; border: 1px solid #2c2c33; border-left: 3px solid #5b4fe0; border-radius: 13px; padding: 18px 18px 16px; }
.pd-over { font-size: 10.5px; color: #8a8d9c; }
.pd-code { display: inline-block; margin-top: 10px; font-size: 11.5px; font-weight: 600; color: #6f63e0; background: #24223a; padding: 5px 7px; border-radius: 6px; }
.pd-name { margin-top: 10px; font-size: 19px; font-weight: 700; line-height: 1.3; }
.pd-pill { display: inline-block; margin-top: 12px; font-size: 11px; background: #2a2a2e; padding: 7px 10px; border-radius: 999px; }
.where-card { margin-top: 12px; background: #1e1e1e; border: 1px solid #2c2c33; border-radius: 13px; padding: 16px 13px 4px; }
.where-head { display: flex; gap: 10px; align-items: flex-start; }
.where-head > div { flex: 1; }
.where-title { font-size: 15.5px; font-weight: 700; }
.where-sub { margin-top: 8px; font-size: 11.5px; line-height: 1.5; color: #8a8d9c; }
.where-count { min-width: 34px; height: 30px; border-radius: 15px; background: #2a2a2e; color: #8a8d9c; font-size: 11.5px; display: grid; place-items: center; padding: 0 8px; }
.where-tools { display: flex; gap: 8px; margin-bottom: 12px; }
.where-tools .prof-drop { height: 32px; }
.where-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #2c2c33;
  background: transparent;
  color: #fff;
  font-family: inherit;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0 12px;
  cursor: pointer;
}
.where-row:last-child { border-bottom: 0; }
.where-code { width: 40px; flex-shrink: 0; font-size: 11px; color: #8a8d9c; padding-top: 2px; }
.where-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.where-name { font-size: 13.5px; line-height: 1.35; }
.where-city { font-size: 11px; color: #8a8d9c; }
.where-score { font-size: 14px; font-weight: 700; color: #d9782f; padding-top: 1px; }

/* Выпадающий список (sheet) */
.pick-list { margin-top: 12px; display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; }
.pick-opt { border: 0; border-bottom: 1px solid var(--divider); background: transparent; color: var(--text); font-family: inherit; font-size: 14px; text-align: left; padding: 13px 4px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.pick-opt.on { color: var(--primary); font-weight: 600; }
.pick-opt .material-icons-round { font-size: 20px; }

/* —— Аналитика —— */
.screen-overlay.an-screen { background: #262637; }
.an-screen .appbar { background: #26283a; }
.appbar-centered { position: relative; }
.appbar-centered .appbar-title { text-align: center; padding-right: 26px; font-size: 16px; }
.appbar-centered .appbar-back { background: transparent; color: #fff; }
.appbar-centered .appbar-back .material-icons-round { font-size: 22px; }
.app:has(.screen-overlay.an-screen:not([hidden])) .status-bar { background: #26283a; }
.an-wrap { padding: 16px 12px 24px; }
.an-goal {
  background: linear-gradient(135deg, #6d74e6 0%, #5c63d8 50%, #4f55c8 100%);
  border-radius: 14px;
  padding: 18px 20px 20px;
  box-shadow: 0 10px 30px rgba(92, 99, 216, 0.25);
}
.an-goal-head { display: flex; gap: 16px; align-items: center; }
.an-goal-ico { width: 56px; height: 56px; border-radius: 12px; background: rgba(255, 255, 255, 0.18); display: grid; place-items: center; font-size: 28px; flex-shrink: 0; }
.an-goal-title { font-size: 18px; font-weight: 700; }
.an-goal-sub { margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, 0.75); }
.an-goal-text { margin-top: 16px; font-size: 13px; line-height: 1.6; }
.an-goal-score { margin-top: 14px; font-size: 13px; }
.an-goal-score b { font-size: 30px; font-weight: 800; margin-right: 4px; }
.an-goal-btn { margin-top: 14px; width: 100%; height: 48px; border: 0; border-radius: 10px; background: #fff; color: #5c63d8; font-family: inherit; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.an-goal-btn .material-icons-outlined { font-size: 20px; }
.an-card {
  width: 100%;
  margin-top: 12px;
  border: 1px solid #3a3a52;
  background: #2e2e44;
  color: #fff;
  font-family: inherit;
  text-align: left;
  border-radius: 13px;
  padding: 16px 16px 16px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: default;
}
.an-card[data-an] { cursor: pointer; }
.an-ico { width: 60px; height: 60px; border-radius: 11px; display: grid; place-items: center; font-size: 26px; flex-shrink: 0; }
.an-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.an-label { font-size: 12.5px; color: #c9cad6; }
.an-value { margin-top: 8px; font-size: 16px; font-weight: 700; }
.an-bar { margin-top: 10px; height: 6px; border-radius: 4px; background: #44465e; overflow: hidden; display: block; }
.an-bar i { display: block; height: 100%; background: #ee7a4a; border-radius: 4px; }
.an-meta { margin-top: 10px; font-size: 11px; color: #9a9cb2; }
.an-chev { color: #9a9cb2; font-size: 22px; }

/* —— Умная практика —— */
.pr-head { background: #1b1b1b; padding: 14px 15px 12px; }
.pr-top { display: flex; justify-content: space-between; align-items: center; }
.pr-top b { font-size: 14px; }
.pr-badge { font-size: 11px; color: #e0874a; background: #3a2a22; padding: 6px 9px; border-radius: 999px; }
.pr-bar { margin-top: 10px; height: 6px; border-radius: 4px; background: #3a2f2b; overflow: hidden; }
.pr-bar i { display: block; height: 100%; background: #e07a3d; transition: width 0.2s; }
.pr-status { margin-top: 10px; font-size: 11px; color: #6c6f84; }
.pr-body { padding: 16px 15px; }
.pr-q { font-size: 14.5px; line-height: 1.4; margin-bottom: 12px; }
.pr-opt {
  width: 100%;
  min-height: 44px;
  margin-bottom: 8px;
  border: 1px solid #3a3a40;
  background: #2a2a2c;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  cursor: pointer;
}
.pr-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #6c6f84; flex-shrink: 0; position: relative; }
.pr-opt.sel { border-color: #6c74d6; }
.pr-opt.sel .pr-radio { border-color: #8a8fd6; }
.pr-opt.sel .pr-radio::after,
.pr-opt.ok .pr-radio::after,
.pr-opt.bad .pr-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.pr-opt.sel .pr-radio { color: #8a8fd6; }
.pr-opt.ok { border-color: #5cb36d; background: #1f2e24; }
.pr-opt.ok .pr-radio { border-color: #5cb36d; color: #5cb36d; }
.pr-opt.bad { border-color: #e86b6b; background: #3a2020; }
.pr-opt.bad .pr-radio { border-color: #e86b6b; color: #e86b6b; }
.pr-go { height: 48px; border-radius: 24px; font-size: 14px; }
.pr-go.off { opacity: 0.85; }
.pr-result { padding: 70px 24px; text-align: center; }
.pr-result-ico { font-size: 54px; }
.pr-result-title { margin-top: 14px; font-size: 20px; font-weight: 700; }
.pr-result-score { margin-top: 10px; font-size: 32px; font-weight: 800; color: #e07a3d; }
.pr-result-sub { margin-top: 10px; font-size: 13px; color: #9a9db0; line-height: 1.5; }
.appbar-inner .appbar-icon-btn .material-icons-round { font-size: 24px; }

/* Умная практика: «Верно / Неверно» + түсіндірме */
.pr-bar.warm i { background: #e0a84a; }
.pr-fb { margin-top: 18px; border-radius: 12px; padding: 14px 16px 14px; border: 1px solid; }
.pr-fb.ok { background: #1c271f; border-color: #2f5a3a; }
.pr-fb.bad { background: #2a1c1c; border-color: #6a3030; }
.pr-fb-title { font-size: 15px; font-weight: 600; }
.pr-fb.ok .pr-fb-title { color: #5cb36d; }
.pr-fb.bad .pr-fb-title { color: #e06b5b; }
.pr-fb-sub { margin-top: 8px; font-size: 11.5px; color: #e6e6e6; }
.pr-explain { margin-top: 12px; padding: 2px 0 2px 10px; border-left: 3px solid; font-size: 12.5px; line-height: 1.5; color: #d6d6d6; }
.pr-fb.ok .pr-explain { border-color: #5cb36d; }
.pr-fb.bad .pr-explain { border-color: #e06b5b; }
.pr-fb.ok .pr-explain b:first-child { color: #5cb36d; }
.pr-fb.bad .pr-explain b:first-child { color: #e06b5b; }
.pr-explain b { color: #fff; }

/* ============================================================
   Курс беті / Видео сабақ / Сабақ тесті / Кесте сүзгілері / Профиль
   ============================================================ */

/* —— Курс: бөлімдер —— */
.course-secs { padding-top: 14px; }
.csec { border: 1px solid #2a3647; background: #1c1c1e; border-radius: 13px; margin-bottom: 10px; overflow: hidden; }
.csec-head { width: 100%; border: 0; background: transparent; color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 500; letter-spacing: 0.2px; display: flex; align-items: center; justify-content: space-between; padding: 17px 16px 17px 16px; cursor: pointer; text-align: left; }
.csec-head .material-icons-round { font-size: 22px; }
.csec.open .csec-head { border-bottom: 1px solid #2a2f38; }
.csec-body { padding: 6px 6px 8px; }
.ln-row { width: 100%; border: 1px solid transparent; background: transparent; color: #fff; font-family: inherit; text-align: left; display: flex; align-items: center; gap: 16px; padding: 12px 8px 12px 12px; border-radius: 10px; cursor: pointer; position: relative; }
.ln-row .ls-ico { width: 18px; height: 18px; font-size: 20px !important; }
.ln-title { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.4; }
.ln-act { font-size: 10.5px; font-weight: 600; flex-shrink: 0; }
.ln-act.teal { color: #4fb1ba; }
.ln-act.green { color: #5cb36d; }
.ln-row.current { border-color: #2f3c4c; background: #1e2126; }
.ln-row.current::before { content: ""; position: absolute; left: 20%; right: 20%; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #6f8fc8, transparent); }
.ln-row.locked .ln-title { color: #5c5f6e; }
.ln-row .lk { font-size: 20px; color: #7a7d8c; }

/* —— Видео сабақ —— */
.vplayer { position: relative; aspect-ratio: 16 / 9; background: #fff; overflow: hidden; }
.v-slide { position: absolute; inset: 0; display: flex; }
.v-cam { position: relative; width: 24%; background: linear-gradient(180deg, #5a3a2a, #2d2a2a 60%, #222); }
.v-logo { position: absolute; left: 0; right: 0; top: 0; background: #c0392b; color: #fff; text-align: center; font-weight: 800; font-size: 13px; padding: 3px 0; }
.v-face { position: absolute; left: 22%; right: 22%; top: 34%; bottom: 20%; border-radius: 40% 40% 10% 10%; background: radial-gradient(circle at 50% 26%, #f1c9a5 0 22%, transparent 23%), linear-gradient(#3a2418 0 30%, #f3f3f3 30%); }
.v-tag { position: absolute; left: 0; right: 0; bottom: 0; background: #5cc6c0; color: #fff; text-align: center; font-size: 7px; font-weight: 800; padding: 3px 0; overflow: hidden; }
.v-board { position: relative; flex: 1; display: grid; place-items: center; }
.v-bulb { position: absolute; top: 12%; left: 46%; color: #e0b040; }
.v-bulb .material-icons-outlined { font-size: 28px; }
.v-subject { font-size: 22px; color: #3c7fa8; letter-spacing: 0.5px; }
.v-name { position: absolute; right: 12%; bottom: 30%; font-size: 6.5px; font-weight: 700; color: #111; background: #7fc48a; border: 1px solid #333; padding: 3px 6px; max-width: 46%; }
.v-big { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(60, 60, 60, 0.8); color: #fff; display: grid; place-items: center; cursor: pointer; }
.v-big .material-icons-round { font-size: 34px; }
.v-big[hidden] { display: none; }
.v-ctrl { position: absolute; bottom: 12px; height: 32px; border-radius: 16px; background: rgba(40, 40, 40, 0.75); color: #fff; display: flex; align-items: center; gap: 2px; padding: 0 8px; font-size: 11px; }
.v-ctrl.left { left: 6px; }
.v-ctrl.right { right: 8px; gap: 8px; padding: 0 10px 0 12px; }
.v-ctrl button { border: 0; background: transparent; color: #fff; display: grid; place-items: center; padding: 2px 3px; cursor: pointer; font-family: inherit; }
.v-ctrl .material-icons-round { font-size: 20px; }
.v-speed { font-size: 11px; font-weight: 700; }
.v-line { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0, 0, 0, 0.25); }
.v-line i { display: block; height: 100%; width: 0; background: #5b6ec2; }
.v-note { margin: 14px 15px; display: flex; align-items: center; gap: 10px; background: #1e1e1e; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; }
.v-note span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-note .material-icons-round { color: #5cb36d; font-size: 20px; }
.lesson-foot { padding-top: 0; }
.attach-row { border: 0; background: transparent; color: #8a8d9c; font-family: inherit; font-size: 12px; display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 0; cursor: pointer; }
.attach-plus { width: 40px; height: 40px; border-radius: 50%; background: #5f6bbd; color: #fff; display: grid; place-items: center; }
.attach-plus .material-icons-round { font-size: 24px; }
.attach-title { margin-bottom: 16px; font-weight: 500; }
.attach-opt { width: 100%; border: 0; background: transparent; color: #fff; font-family: inherit; text-align: left; display: flex; align-items: center; gap: 22px; padding: 12px 10px; cursor: pointer; border-radius: 10px; }
.attach-opt:hover { background: rgba(255, 255, 255, 0.04); }
.attach-opt .material-icons-outlined { font-size: 26px; }
.attach-opt b { display: block; font-size: 14px; font-weight: 500; }
.attach-opt small { display: block; margin-top: 3px; font-size: 11.5px; color: #c8cad4; }

/* —— Сабақ тесті —— */
.tq-nums { display: flex; gap: 10px; overflow-x: auto; padding: 12px 15px 6px; }
.tq-nums::-webkit-scrollbar { height: 0; }
.tq-num { flex-shrink: 0; width: 40px; height: 40px; border: 0; border-radius: 6px; background: #2b3046; color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.tq-num.ans { background: #3d4670; }
.tq-num.on { background: #5b6ec2; }
.tq-body { padding: 18px 15px; }
.tq-q { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
.tq-opt { width: 100%; min-height: 44px; margin-bottom: 10px; border: 1px solid #3a3a40; background: #2a2a2c; border-radius: 10px; color: #fff; font-family: inherit; font-size: 14px; text-align: left; display: flex; align-items: center; gap: 16px; padding: 10px 14px; cursor: pointer; }
.tq-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; flex-shrink: 0; position: relative; }
.tq-opt.on { border-color: #6c74d6; }
.tq-opt.on .tq-radio { border-color: #8a8fd6; }
.tq-opt.on .tq-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #8a8fd6; }
.m { font-family: "Times New Roman", "STIX Two Math", serif; font-style: italic; font-size: 15px; white-space: nowrap; }
.sqrt { position: relative; padding-left: 9px; margin-left: 2px; border-top: 1px solid currentColor; }
.sqrt::before { content: "√"; position: absolute; left: -2px; top: -3px; font-style: normal; }
.tq-foot { flex-shrink: 0; background: #1a1a1a; border-radius: 16px 16px 0 0; padding: 18px 15px 30px; }
.tq-prog { position: relative; height: 10px; border-radius: 6px; background: #2b3046; margin: 6px 6px 0 2px; }
.tq-prog i { display: block; height: 100%; border-radius: 6px; background: #5b6ec2; }
.tq-pill { position: absolute; top: 50%; transform: translateY(-50%); background: #5b6ec2; color: #fff; font-size: 9.5px; font-weight: 700; padding: 4px 8px; border-radius: 8px; }
.tq-nav { display: flex; justify-content: space-between; margin-top: 22px; }
.tq-btn { height: 48px; border: 1px solid #2e2e36; background: #232326; color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 600; border-radius: 14px; display: flex; align-items: center; gap: 10px; padding: 0 22px; cursor: pointer; }
.tq-btn .material-icons-outlined { font-size: 22px; }
.tq-btn:disabled { opacity: 0.45; cursor: default; }
.tq-btn.finish { background: #5b6ec2; border-color: #5b6ec2; }
.tr-result { text-align: center; padding: 26px 15px 10px; }
.tr-score { font-size: 15px; color: #9a9db0; }
.tr-score b { font-size: 40px; color: #fff; }
.tr-sub { margin-top: 6px; font-size: 13px; color: #9a9db0; }
.tr-item { background: #1e1e1e; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; border-left: 3px solid; }
.tr-item.ok { border-color: #5cb36d; }
.tr-item.bad { border-color: #e06b5b; }
.tr-q { font-size: 13px; line-height: 1.5; }
.tr-n { display: inline-block; min-width: 20px; color: #8a8d9c; }
.tr-a { margin-top: 8px; display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: #c8cad4; }
.tr-item.ok .tr-a .material-icons-round { color: #5cb36d; font-size: 18px; }
.tr-item.bad .tr-a .material-icons-round { color: #e06b5b; font-size: 18px; }

/* —— Кесте: плиткалар сүзгі ретінде —— */
button.sch-stat { border: 1px solid transparent; color: inherit; font-family: inherit; cursor: pointer; }
.sch-stat b { color: var(--c); }
.sch-stat.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 7%, #1e1e1e); }
.sch-list-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 15px 18px; font-size: 13.5px; font-weight: 500; }
.sch-list-head button { border: 0; background: transparent; color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; padding: 0; }

/* —— Профиль (студент) —— */
.user-avatar.ph { background: #e6e6e6; color: #9b9b9b; overflow: hidden; display: grid; place-items: end center; }
.user-avatar.ph .material-icons-round { font-size: 92px; line-height: 0.8; }
.poster.long .poster-text b { font-size: 8px; letter-spacing: -0.3px; }
.poster.sq.long .poster-text b { font-size: 5.5px; }
.course-hero .poster.long .poster-text b { font-size: 20px; }

/* —— Курс беті: түс, нөмірсіз, құлыптағы бөлім —— */
.course-secs .csec { border-color: var(--acc); }
.course-secs .ln-row.current { border-color: color-mix(in srgb, var(--acc) 70%, #6f8fc8); }
.course-secs .ln-row.current::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc) 40%, #8fb0ff), transparent); }
.csec.dim .csec-head span { color: #8a8d9c; }
.ln-act.red { color: #e0604a; }

/* —— Пробный ЕНТ —— */
.ent-vars { display: flex; gap: 10px; margin-top: 4px; }
.ent-var { flex: 1; height: 72px; border: 1px solid var(--divider); border-radius: 14px; background: var(--card); color: var(--text); font-family: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.ent-var b { font-size: 24px; }
.ent-var span { font-size: 11px; color: var(--hint); }
.ent-var.loading { opacity: 0.5; }
.ent-src { margin-top: 14px; font-size: 11px; color: var(--hint); text-align: center; }
.ent-timer { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.1); padding: 6px 10px; border-radius: 999px; flex-shrink: 0; }
.ent-timer .material-icons-outlined { font-size: 16px; }
.ent-subs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 15px 2px; }
.ent-subs::-webkit-scrollbar { height: 0; }
.ent-sub { flex-shrink: 0; border: 1px solid #2e2e36; background: #1e1e1e; color: #c8cad4; font-family: inherit; font-size: 12px; font-weight: 600; border-radius: 10px; padding: 7px 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; cursor: pointer; }
.ent-sub small { font-size: 10px; font-weight: 400; color: #8a8d9c; }
.ent-sub.on { border-color: #5b6ec2; background: #252a45; color: #fff; }
.tq-meta { font-size: 11px; color: #8a8d9c; margin-bottom: 8px; }
.ent-ctx { background: #1b1d24; border: 1px solid #2b3046; border-radius: 12px; margin-bottom: 14px; overflow: hidden; }
.ent-ctx-head { width: 100%; border: 0; background: transparent; color: #c8cad4; font-family: inherit; font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; }
.ent-ctx-head span:nth-child(2) { flex: 1; text-align: left; }
.ent-ctx-head .material-icons-outlined, .ent-ctx-head .material-icons-round { font-size: 18px; }
.ent-ctx-body { max-height: 220px; overflow-y: auto; padding: 0 12px 12px; font-size: 12.5px; line-height: 1.55; color: #e0e0e0; }
.eo-id { font-size: 12px; font-weight: 700; color: #8a8d9c; width: 12px; flex-shrink: 0; }
.tq-opt.multi .tq-radio { border-radius: 4px; }
.tq-opt.multi.on .tq-radio::after { border-radius: 2px; }
.mt-hint { font-size: 11px; color: #8a8d9c; margin: -6px 0 10px; }
.mt-right { background: #1e1e1e; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.mt-row { background: #2a2a2c; border: 1px solid #3a3a40; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.mt-l { font-size: 13.5px; }
.mt-l b { color: #8a8fd6; margin-right: 6px; }
.mt-picks { display: flex; gap: 6px; flex-wrap: wrap; }
.mt-pick { width: 36px; height: 32px; border: 1px solid #44444c; background: #1e1e1e; color: #c8cad4; border-radius: 8px; font-family: inherit; font-weight: 600; cursor: pointer; }
.mt-pick.on { background: #5b6ec2; border-color: #5b6ec2; color: #fff; }
.md-img { max-width: 100%; border-radius: 8px; margin: 6px 0; background: #fff; }
.tq-q .katex, .tq-opt .katex, .mt-right .katex, .tr-q .katex, .tr-a .katex { font-size: 1.05em; }
.er-head { text-align: center; padding: 22px 15px 6px; }
.er-total { font-size: 15px; color: #9a9db0; }
.er-total b { font-size: 44px; color: #fff; }
.er-sub { margin-top: 6px; font-size: 12.5px; color: #9a9db0; }
.er-row { width: 100%; border: 1px solid transparent; background: #1e1e1e; color: #fff; font-family: inherit; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; cursor: pointer; text-align: left; }
.er-row.on { border-color: #5b6ec2; }
.er-name { flex: 1; font-size: 13.5px; }
.er-min { display: flex; align-items: center; gap: 3px; font-size: 10.5px; }
.er-min .material-icons-outlined { font-size: 14px; }
.er-min.ok { color: #5cb36d; }
.er-min.bad { color: #e06b5b; }
.er-row b { font-size: 16px; }
.er-row small { font-size: 11px; color: #8a8d9c; font-weight: 400; }
.er-title { margin: 18px 2px 10px; font-size: 14px; font-weight: 600; }
.tr-item.part { border-color: #e0a84a; }
.tr-item.part .tr-a .material-icons-round { color: #e0a84a; font-size: 18px; }
.tr-pts { margin-left: auto; font-size: 12px; color: #c8cad4; }
.tr-note { margin-top: 6px; font-size: 11.5px; color: #8a8d9c; line-height: 1.5; }
.eh-score { float: right; color: #5cb36d; }

/* ============================================================
   STAFF (скриншоттар 23:06–23:10)
   ============================================================ */
html[data-mode="staff"] {
  --primary: #8b5cf6;
  --primary-dark: #6d3fd8;
  --appbar: #36245e;
}
.nav-indicator { display: none; }
html[data-mode="staff"] .fab-core { background: #8b5cf6; }

/* Зачисления — скоро */
.soon-screen { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 0 24px 60px; text-align: center; }
.soon-screen .material-icons-round { font-size: 52px; color: #7a7d8c; }
.soon-title { margin-top: 6px; font-size: 15px; font-weight: 500; }
.soon-sub { font-size: 13px; color: #6c6f84; }

/* Эфир */
.efir-tools { display: flex; gap: 10px; padding: 16px 15px 8px; }
.efir-date { flex: 1; height: 40px; border: 1px solid #284a3a; background: #141816; color: var(--primary); border-radius: 12px; font-family: inherit; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.efir-date .material-icons-round { font-size: 20px; }
.efir-add { height: 40px; border: 0; background: var(--primary); color: #fff; border-radius: 12px; font-family: inherit; font-size: 13.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; padding: 0 20px 0 14px; cursor: pointer; }
.efir-add .material-icons-round { font-size: 22px; }
.efir-empty { min-height: calc(100% - 64px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding-bottom: 60px; font-size: 13px; color: #6c6f84; }
.efir-empty button { border: 0; background: transparent; color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.efir-item { display: flex; gap: 14px; background: #1e1e1e; border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.efir-time { font-size: 15px; font-weight: 700; color: var(--primary); min-width: 44px; }
.efir-title { font-size: 14.5px; font-weight: 600; }
.efir-groups { margin-top: 4px; font-size: 12px; color: #8a8d9c; }
.efir-link { margin-top: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--primary); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.efir-link .material-icons-round { font-size: 15px; }
.efir-del { border: 0; background: transparent; color: #6c6f84; cursor: pointer; align-self: flex-start; padding: 0; }

/* Күнтізбе (Material date picker, қазақша) */
.dp { position: absolute; left: 14px; right: 14px; top: 50%; transform: translateY(-50%); background: #2b2b2d; border-radius: 26px; padding: 22px 0 14px; color: #fff; }
.dp-label { padding: 0 24px; font-size: 12.5px; }
.dp-head { display: flex; justify-content: space-between; align-items: center; padding: 26px 24px 14px; border-bottom: 1px solid #c8c8c8; font-size: 28px; }
.dp-head .material-icons-outlined { font-size: 22px; }
.dp-nav { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px 24px; font-size: 13px; color: #c8c8c8; }
.dp-nav > span:first-child { display: flex; align-items: center; }
.dp-nav button { border: 0; background: transparent; color: #c8c8c8; cursor: pointer; padding: 4px 8px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 6px; padding: 8px 10px; text-align: center; }
.dp-wd { font-size: 13px; padding: 10px 0; }
.dp-day { width: 40px; height: 40px; margin: 0 auto; border: 0; border-radius: 50%; background: transparent; color: #fff; font-family: inherit; font-size: 14px; cursor: pointer; }
.dp-day.on { background: var(--primary); border: 1px solid #fff; }
.dp-actions { display: flex; justify-content: flex-end; gap: 6px; padding: 18px 16px 4px; }
.dp-actions button { border: 0; background: transparent; color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 500; padding: 8px 14px; cursor: pointer; }

/* Эфир қосу формасы */
.ef-head { display: flex; justify-content: space-between; align-items: center; font-size: 16px; margin: 2px 0 12px; }
.ef-head button { border: 0; background: transparent; color: #fff; cursor: pointer; padding: 0; }
.ef-label { margin: 14px 0 8px; font-size: 13px; font-weight: 500; }
.ef-label i { color: #e86b6b; font-style: normal; }
.ef-input { width: 100%; height: 44px; border: 0; border-radius: 12px; background: #181818; color: #fff; font-family: inherit; font-size: 13.5px; padding: 0 14px; outline: none; }
.ef-input::placeholder { color: #6c6f84; }
.ef-select { position: relative; width: 100%; height: 44px; border: 0; border-radius: 12px; background: #181818; color: #fff; font-family: inherit; font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px 0 14px; cursor: pointer; text-align: left; }
.ef-select.ph { color: #8a8d9c; }
.ef-select select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.ef-select > span:first-child, .ef-select select + .material-icons-round { pointer-events: none; }
.ef-select span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-select .material-icons-round { color: #8a8d9c; font-size: 22px; }
.ef-note { margin-top: 10px; font-size: 11px; color: #8a8d9c; }
.ef-submit { margin-top: 16px; width: 100%; height: 46px; border: 0; border-radius: 12px; background: var(--primary); color: #fff; font-family: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.ef-gsub { display: block; font-size: 11px; color: #8a8d9c; font-weight: 400; margin-top: 2px; }

/* Хабарлама */
.push-list { padding-top: 14px; }
.spush { background: #1e1e1e; border-radius: 16px; padding: 18px 18px 16px; margin-bottom: 12px; }
.spush-top { display: flex; gap: 10px; align-items: flex-start; }
.spush-title { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.5; }
.spush-time { font-size: 11px; color: #6c6f84; padding-top: 3px; white-space: nowrap; }
.spush-type { margin-top: 8px; font-size: 11.5px; color: var(--primary); }
.spush-body { margin-top: 10px; font-size: 13.5px; line-height: 1.45; }
.spush-foot { margin-top: 14px; display: flex; justify-content: space-between; font-size: 11.5px; color: #6c6f84; }
.spush-foot b { color: #fff; font-size: 12px; }

/* Мои группы */
.groups-list { padding-top: 10px; }
.groups-list .card { border-radius: 16px; }

/* ============================================================
   Staff: студент профилі / курс прогресі / конспект
   ============================================================ */
.screen-overlay.sp-screen .appbar { background: var(--bg); }
.app:has(.screen-overlay.sp-screen:not([hidden])) .status-bar { background: var(--bg); }
.sp-screen .appbar-back { color: var(--primary); }
.sp-screen .appbar-title { font-weight: 500; }
.sp-hist { border: 0; background: transparent; color: var(--primary); font-family: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; padding: 0; }
.sp-head { text-align: center; padding: 18px 15px 6px; }
.sp-avatar { width: 104px; height: 104px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; font-size: 34px; color: #fff; }
.sp-name { margin-top: 18px; font-size: 16.5px; font-weight: 700; letter-spacing: 0.5px; }
.sp-seen { margin-top: 8px; font-size: 12px; color: #8a8d9c; }
.sp-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 15px 6px; }
.sp-act { height: 60px; border: 0; border-radius: 12px; background: #262628; color: #fff; font-family: inherit; font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; }
.sp-act .material-icons-outlined { font-size: 20px; color: var(--primary); }
.sp-act .menu-brand { width: 20px; height: 20px; display: block; }
.sp-act .menu-brand svg { width: 20px; height: 20px; fill: var(--primary); }
.sp-info { margin: 12px 15px; background: #1e1e1e; border-radius: 16px; padding: 4px 16px; }
.sp-f { padding: 10px 0 9px; border-bottom: 1px solid #3a3a3f; display: flex; flex-direction: column; gap: 6px; }
.sp-f:last-child { border-bottom: 0; }
.sp-f span { font-size: 11.5px; color: #8a8d9c; }
.sp-f b { font-size: 14.5px; font-weight: 400; }
.sp-f b.mono { font-size: 12px; letter-spacing: 0.2px; }
.sp-f a.green { color: var(--primary); font-size: 14.5px; text-decoration: none; }
.sp-course { position: relative; width: calc(100% - 30px); margin: 0 15px 20px; border: 0; background: #1e1e1e; color: #fff; font-family: inherit; text-align: left; border-radius: 16px; padding: 14px; display: flex; gap: 12px; cursor: pointer; }
.sp-poster { width: 118px; flex-shrink: 0; }
.sp-cbody { flex: 1; min-width: 0; }
.sp-ctitle { font-size: 15.5px; }
.sp-cmeta { margin-top: 8px; font-size: 13px; color: #8a8d9c; }
.sp-cur { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; }
.sp-cur span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-cur .ls-ico { width: 16px; height: 16px; font-size: 16px !important; }
.sp-badge { position: absolute; top: -6px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: #e0873a; color: #fff; font-size: 11px; font-weight: 700; font-style: normal; display: grid; place-items: center; padding: 0 5px; }
.sp-badge.in { position: static; margin: 0 14px 0 auto; flex-shrink: 0; }
.staff-secs .csec-head span:first-child { flex: 1; min-width: 0; }
.staff-secs .csec-head { gap: 6px; }
.ln-title small { display: block; margin-top: 4px; font-size: 11px; color: #8a8d9c; }
.ln-act { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding-top: 2px; }
.ln-act .material-icons-outlined, .ln-act .material-icons-round { font-size: 16px; }
.ln-act.grey { color: #8a8d9c; }
.ln-act.white { color: #e6e6e6; }
.ln-act.white .material-icons-round { color: #5cb36d; }
.ln-act.orange { color: #e0873a; }
.ln-act.purple { color: #a05ad8; }
.staff-secs .ln-row { align-items: flex-start; }
.staff-secs .ln-row .ls-ico { margin-top: 1px; }
.ln-row.pending { border-color: #6a4a2a; background: #2a2119; }
.ln-row.pending::before { display: none; }

/* Конспект */
.cs-page { margin-top: 14px; height: 220px; border-radius: 12px; background: repeating-linear-gradient(#fbfaf5 0 22px, #d7e3f4 22px 23px); position: relative; overflow: hidden; }
.cs-lines { padding: 18px 18px 0 34px; display: flex; flex-direction: column; gap: 10px; }
.cs-lines i { display: block; height: 3px; border-radius: 2px; background: #3a4a8a; opacity: 0.55; }
.cs-file { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 8px; }
.cs-file .material-icons-outlined { font-size: 14px; }
.cs-back { background: #3a2020; color: #e86b6b; border: 0; }
.cs-status { margin-top: 14px; text-align: center; font-size: 13px; padding: 12px; border-radius: 12px; }
.cs-status.ok { background: #1f2e24; color: #5cb36d; }
.cs-status.back { background: #3a2020; color: #e86b6b; }

/* История входа / Отчёт */
.lh-list { margin-top: 12px; }
.lh-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--divider); font-size: 13px; }
.lh-row span { flex: 1; }
.lh-row i { color: var(--primary); font-style: normal; font-size: 11px; margin-left: 4px; }
.lh-row b { font-weight: 400; color: #8a8d9c; font-size: 12px; }
.rp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.rp-text { margin-top: 12px; font-size: 13px; color: #c8cad4; line-height: 1.5; }

/* Звонок / Написать мәзірі */
.ct-menu { position: absolute; background: #2c2c2e; border-radius: 14px; overflow: hidden; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); animation: ctIn 0.14s ease-out; }
@keyframes ctIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
.ct-head { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 10px 12px; font-size: 12px; color: #e6e6e6; border-bottom: 1px solid #3c3c40; }
.ct-head .material-icons-outlined { font-size: 26px; color: #fff; }
.ct-head .menu-brand, .ct-head .menu-brand svg { width: 26px; height: 26px; display: block; fill: #fff; }
.ct-row { width: 100%; border: 0; border-bottom: 1px solid #3c3c40; background: transparent; color: #fff; font-family: inherit; font-size: 15px; display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; text-align: left; }
.ct-row:last-child { border-bottom: 0; }
.ct-row:active, .ct-row:hover { background: rgba(255, 255, 255, 0.06); }
.ct-row .material-icons-round { font-size: 22px; }

/* Өткен апта чемпионы (UFC стилі) */
.champ { position: relative; display: flex; align-items: flex-end; gap: 8px; margin: 14px 16px 4px; padding: 16px 0 0 16px; border-radius: 14px; background: linear-gradient(135deg, #2a2418 0%, #1e1e1e 55%); border: 1px solid #4a3d1e; overflow: hidden; cursor: pointer; }
.champ-text { flex: 1; min-width: 0; padding-bottom: 14px; }
.champ-over { font-family: "Oswald", "Roboto", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #e0453a; }
.champ-name { margin-top: 10px; font-family: "Oswald", "Roboto", sans-serif; font-size: 24px; font-weight: 700; line-height: 1.05; letter-spacing: 0.5px; text-transform: uppercase; color: #fff; }
.champ-sub { margin-top: 10px; font-family: "Oswald", "Roboto", sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: #b9a46a; }
.champ-week { margin-top: 4px; font-size: 10.5px; color: #7a7d8c; }
.champ-pic { position: relative; width: 104px; height: 112px; flex-shrink: 0; }
.champ-avatar { position: absolute; right: -14px; bottom: -14px; width: 118px; height: 118px; border-radius: 50%; display: grid; place-items: center; padding-bottom: 22px; font-size: 32px; font-weight: 700; color: #fff; box-shadow: 0 0 0 3px #d4a72c, 0 8px 30px rgba(212, 167, 44, 0.25); }
.champ-belt { position: absolute; right: 22px; bottom: 6px; width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe08a, #d4a72c 55%, #8a6510); display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5); }
.champ-belt .material-icons-round { font-size: 26px; color: #3a2a06; }
.champ-avatar { display: flex; align-items: flex-start; justify-content: center; padding: 24px 14px 0 0; font-size: 30px; }

/* Чемпион: адам + белбеу (UFC стилі) */
.champ { align-items: stretch; padding-top: 0; min-height: 168px; }
.champ-text { padding: 18px 0 14px; align-self: center; }
.champ-pic { position: relative; width: 150px; height: auto; min-height: 168px; flex-shrink: 0; cursor: pointer; }
.champ-avatar, .champ-belt { display: none; }
.champ-person { position: absolute; right: -6px; bottom: 0; width: 150px; height: 160px; }
.champ-photo { position: absolute; right: 0; bottom: 0; width: 150px; height: 168px; object-fit: cover; object-position: center top;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%), linear-gradient(0deg, #000 70%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.champ-beltimg { position: absolute; left: -18px; bottom: 6px; width: 132px; transform: rotate(-14deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); pointer-events: none; }
.champ-cam { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; display: grid; place-items: center; opacity: 0.85; }
.champ-cam .material-icons-outlined { font-size: 15px; }
.champ-name { font-size: 22px; }
.champ-pic { width: 146px; background: radial-gradient(ellipse at 60% 70%, rgba(212, 167, 44, 0.18), transparent 65%); }
.champ-person { right: -4px; width: 146px; height: 156px; }
.champ-beltimg { left: 2px; bottom: 2px; width: 104px; transform: rotate(-12deg); }
.champ-sub { letter-spacing: 1.5px; }

/* ============================================================
   Staff · Аналитика
   ============================================================ */
.an-groups { padding-top: 12px; }
.ag-card { position: relative; width: 100%; border: 0; background: #1e1e1e; color: #fff; font-family: inherit; text-align: left; border-radius: 16px; padding: 16px; margin-bottom: 12px; cursor: pointer; display: block; }
.ag-top { display: flex; align-items: center; gap: 8px; }
.ag-top .material-icons-round { color: #6c6f84; }
.ag-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.ag-metrics div { background: #262628; border-radius: 10px; padding: 8px 10px; }
.ag-metrics b { display: block; font-size: 16px; }
.ag-metrics span { display: block; margin-top: 2px; font-size: 10px; color: #8a8d9c; }
.ag-prog { margin-top: 12px; height: 6px; border-radius: 4px; background: #2e3330; overflow: hidden; }
.ag-prog i { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
.ag-prog-l { margin-top: 6px; font-size: 11px; color: #8a8d9c; }

.ga { padding: 4px 15px 24px; }
.ga-head { padding: 12px 2px 14px; }
.ga-title { font-size: 20px; font-weight: 700; }
.ga-sub { margin-top: 4px; font-size: 12.5px; color: #8a8d9c; }
.ga-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ga-tile { background: #1e1e1e; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ga-tile.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
.ga-tile.warn { cursor: pointer; }
.ga-tile span { font-size: 11.5px; color: #8a8d9c; display: flex; align-items: center; gap: 6px; }
.ga-tile span .material-icons-outlined { font-size: 16px; }
.ga-tile.warn span .material-icons-outlined { color: #e0873a; }
.ga-tile.wide:not(.warn) span .material-icons-outlined { color: var(--primary); }
.ga-tile b { font-size: 22px; font-weight: 700; color: #fff; }
.ga-tile small { font-size: 12px; font-weight: 400; color: #8a8d9c; }
.ga-card { margin-top: 12px; background: #1e1e1e; border-radius: 16px; padding: 16px; }
.ga-ctitle { font-size: 14.5px; font-weight: 600; }
.ga-csub { margin-top: 4px; font-size: 11px; color: #8a8d9c; }
.ga-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; height: 150px; margin-top: 14px; border-bottom: 1px solid #2c2c33; }
.ga-bar { position: relative; border: 0; background: transparent; font-family: inherit; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 0 0 0; cursor: pointer; height: 100%; }
.ga-bar i { display: block; width: 60%; max-width: 22px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--primary) 55%, #1e1e1e); }
.ga-bar.today i { background: var(--primary); }
.ga-bar em { font-style: normal; font-size: 11px; color: #e6e6e6; margin-bottom: 4px; }
.ga-bar span { position: absolute; bottom: -20px; font-size: 10.5px; color: #8a8d9c; }
.ga-bar:hover i, .ga-bar:focus i { background: var(--primary); }
.ga-bars { margin-bottom: 22px; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); white-space: nowrap; background: #f2f2f2; color: #121212; font-size: 11px; font-weight: 500; padding: 5px 8px; border-radius: 8px; z-index: 5; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); }
.ga-bar[data-tip]:hover::after, .ga-bar[data-tip]:focus::after { bottom: auto; top: -6px; transform: translate(-50%, -100%); }
.ga-hbars { margin-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.ga-hrow { border: 0; background: transparent; color: #fff; font-family: inherit; display: grid; grid-template-columns: 96px 1fr 40px 32px; align-items: center; gap: 6px; padding: 5px 0; cursor: pointer; text-align: left; }
.ga-hrow:hover .ga-htrack i, .ga-hrow:focus .ga-htrack i { background: color-mix(in srgb, var(--primary) 80%, #fff); }
.ga-hname { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ga-htrack { height: 10px; border-radius: 0 4px 4px 0; background: #262628; overflow: hidden; }
.ga-htrack i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--primary); }
.ga-hval { font-size: 11.5px; color: #c8cad4; text-align: right; font-weight: 700; }
.ga-hval.ok { color: #5cb36d; }
.ga-hval.mid { color: #e0a84a; }
.ga-hval.low { color: #e06b5b; }
.ga-hscore { font-size: 11px; color: #8a8d9c; text-align: right; }
.ga-hrow[data-tip]:hover::after, .ga-hrow[data-tip]:focus::after { left: 60%; }
.ga-att { width: 100%; border: 0; border-bottom: 1px solid #2c2c33; background: transparent; color: #fff; font-family: inherit; text-align: left; display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.ga-att:last-child { border-bottom: 0; }
.ga-att b { display: block; font-size: 13.5px; font-weight: 500; }
.ga-att small { display: block; margin-top: 3px; font-size: 11px; color: #c8a46a; }
.ga-att-ico { width: 30px; height: 30px; border-radius: 50%; background: #3a2f1e; color: #e0a84a; display: grid; place-items: center; flex-shrink: 0; }
.ga-att-ico .material-icons-outlined { font-size: 18px; }
.ga-att > .material-icons-round { color: #6c6f84; }
.ga-ok { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--primary); }
.ga-more { width: 100%; margin-top: 8px; border: 0; background: #262628; color: var(--primary); font-family: inherit; font-size: 13px; font-weight: 500; border-radius: 10px; padding: 10px; cursor: pointer; }

/* Аналитика v2 */
.ag-card { padding: 18px 16px; }
.ga-ent { background: linear-gradient(135deg, #24382e, #1e1e1e 70%); border: 1px solid #2f4a3c; border-radius: 16px; padding: 16px; }
.ga-ent-l { font-size: 12px; color: #a9c7b6; }
.ga-ent-v { margin-top: 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.ga-ent-v b { font-size: 40px; font-weight: 800; line-height: 1; }
.ga-ent-v > span { font-size: 15px; color: #8a8d9c; }
.ga-ent-v em { font-style: normal; font-size: 11.5px; display: inline-flex; align-items: center; gap: 2px; margin-left: auto; }
.ga-ent-v em .material-icons-round { font-size: 14px; }
.up { color: #5cb36d; }
.down { color: #e06b5b; }
.ga-ent-bar { position: relative; margin-top: 14px; height: 8px; border-radius: 5px; background: #2b2f2d; }
.ga-ent-bar i { display: block; height: 100%; border-radius: 5px; background: var(--primary); }
.ga-ent-bar s { position: absolute; top: -4px; width: 2px; height: 16px; background: #e6e6e6; border-radius: 1px; }
.ga-ent-meta { margin-top: 10px; display: flex; justify-content: space-between; font-size: 11px; color: #8a8d9c; }
.ga-tiles { margin-top: 8px; }
.ga-seg { margin: 14px 0 0; }
.ga-dnav { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ga-dnav .sch-arrow { width: 36px; height: 36px; background: #262628; }
.ga-date { flex: 1; height: 36px; border: 0; border-radius: 9px; background: #262628; color: #fff; font-family: inherit; font-size: 13px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.ga-date .material-icons-round { font-size: 16px; color: var(--primary); }
.ga-bars.month { gap: 1px; }
.ga-bars.month .ga-bar i { width: 70%; border-radius: 2px 2px 0 0; }
.ga-peak { font-size: 11px; color: #8a8d9c; }
.ga-hval small { font-size: 10px; }

/* Прогресс за период */
.ga-sec { margin-top: 18px; padding-top: 14px; border-top: 1px solid #2c2c33; }
.gp-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 10px; }
.gp-big b { font-size: 30px; font-weight: 800; line-height: 1; }
.gp-big span { display: block; margin-top: 4px; font-size: 11.5px; color: #8a8d9c; }
.gp-pct { font-size: 20px; font-weight: 700; }
.gp-pct.ok { color: #5cb36d; }
.gp-pct.mid { color: #e0a84a; }
.gp-pct.low { color: #e06b5b; }
.gp-bar { margin-top: 10px; height: 8px; border-radius: 5px; background: #2b2f2d; overflow: hidden; }
.gp-bar i { display: block; height: 100%; border-radius: 5px; background: var(--primary); }
.gp-meta { margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: #8a8d9c; }
.gp-who { margin-top: 12px; }

/* Кезең таңдау — ең жоғарыда, жабысып тұрады */
.ga-period { position: sticky; top: 0; z-index: 4; margin: 0 -15px 12px; padding: 8px 15px 10px; background: var(--bg); box-shadow: 0 6px 10px -8px rgba(0, 0, 0, 0.6); }
.ga-period .ga-dnav { margin-top: 8px; }
.ga-dnav .sch-arrow:disabled { opacity: 0.35; cursor: default; }
.ga-ent-none { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #a9c7b6; }
.ga-ent-none .material-icons-outlined { font-size: 20px; }
.ga-bar.none span { opacity: 0.4; }
.ga-tile b small { white-space: normal; }

/* Уровни */
.lvl-badge { display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--lc); background: color-mix(in srgb, var(--lc) 14%, #1a1a1a); border: 1px solid color-mix(in srgb, var(--lc) 45%, transparent); }
.lvl-badge.sm { padding: 3px 8px; font-size: 11px; }
.lvl-card { background: linear-gradient(135deg, color-mix(in srgb, var(--lc) 16%, #1e1e1e), #1e1e1e 65%); border: 1px solid color-mix(in srgb, var(--lc) 35%, #2c2c33); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.lvl-top { display: flex; align-items: center; gap: 12px; }
.lvl-emoji { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--lc) 18%, #141414); flex-shrink: 0; }
.lvl-over { font-size: 11.5px; color: #9a9db0; }
.lvl-name { margin-top: 3px; font-size: 19px; font-weight: 800; color: var(--lc); }
.lvl-bar { margin-top: 14px; height: 8px; border-radius: 5px; background: #2a2a2e; overflow: hidden; }
.lvl-bar i { display: block; height: 100%; border-radius: 5px; background: var(--lc); }
.lvl-meta { margin-top: 8px; display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: #c8cad4; }
.lvl-meta span { color: #8a8d9c; }
.lvl-steps { margin-top: 12px; display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; }
.lvl-steps span { height: 28px; border-radius: 7px; background: #262628; display: grid; place-items: center; font-size: 14px; filter: grayscale(1); opacity: 0.35; }
.lvl-steps span.done { filter: none; opacity: 0.85; }
.lvl-steps span.cur { filter: none; opacity: 1; background: color-mix(in srgb, var(--lc) 25%, #262628); box-shadow: inset 0 0 0 1.5px var(--lc); }
.sp-lvl { margin: 0 15px; }

/* Телефонды жылжыту / кішірейту */
.phone-stage { position: relative; transform-origin: top center; will-change: transform; }
.phone-stage.dragging { cursor: grabbing; }
.phone { cursor: grab; }
.phone .app { cursor: auto; }
.phone-stage.dragging .phone { cursor: grabbing; }
.phone-resize { position: absolute; right: -14px; bottom: -14px; width: 28px; height: 28px; border-radius: 50%; background: #2a2a30; border: 1px solid #44444c; cursor: nwse-resize; z-index: 5; }
.phone-resize::before { content: ""; position: absolute; inset: 8px; border-right: 2px solid #9aa0b4; border-bottom: 2px solid #9aa0b4; border-radius: 0 0 3px 0; }
.phone-zoom { display: flex; align-items: center; gap: 8px; color: #c8cad4; font-size: 12px; }
.phone-zoom .chip { min-width: 32px; padding: 4px 10px; font-size: 14px; }
.zoom-hint { color: #6c6f84; font-size: 11px; }
@media (max-width: 440px) {
  .phone-zoom, .phone-resize { display: none; }
  .phone-stage { transform: none !important; }
  .phone { cursor: auto; }
}

/* Деңгей жолы */
.lvl-btn { border: 0; background: transparent; padding: 0; margin-top: 10px; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; color: #8a8d9c; }
.lvl-btn .material-icons-round { font-size: 20px; }
.road-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.road-head .sheet-title { color: var(--lc); }
.road-scroll { max-height: 520px; overflow-y: auto; margin: 0 -4px; padding: 0 4px; }
.road { display: flex; flex-direction: column; }
.road-step { display: flex; gap: 14px; }
.road-rail { position: relative; width: 44px; flex-shrink: 0; display: flex; justify-content: center; }
.road-rail::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #2e2e34; }
.road-step:first-child .road-rail::before { top: 50%; }
.road-step:last-child .road-rail::before { bottom: 50%; }
.road-step.done .road-rail::before, .road-step.cur .road-rail::before { background: color-mix(in srgb, var(--lc) 60%, #2e2e34); }
.road-dot { position: relative; z-index: 1; margin: 10px 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: #262628; border: 2px solid #34343c; }
.road-step.done .road-dot { border-color: color-mix(in srgb, var(--lc) 70%, transparent); background: color-mix(in srgb, var(--lc) 14%, #1e1e1e); }
.road-step.cur .road-dot { width: 52px; height: 52px; margin: 6px -4px; border: 3px solid var(--lc); background: color-mix(in srgb, var(--lc) 25%, #1e1e1e); box-shadow: 0 0 18px color-mix(in srgb, var(--lc) 45%, transparent); font-size: 26px; }
.road-step.locked .road-dot { color: #6c6f84; }
.road-step.locked .road-dot .material-icons-round { font-size: 20px; }
.road-body { flex: 1; min-width: 0; align-self: center; padding: 8px 0; }
.road-name { font-size: 14.5px; font-weight: 600; }
.road-name span { color: #8a8d9c; font-weight: 400; }
.road-step.cur .road-name { color: var(--lc); font-size: 16px; font-weight: 800; }
.road-step.locked .road-name { color: #8a8d9c; }
.road-sub { margin-top: 3px; font-size: 11.5px; color: #8a8d9c; }
.road-step.cur .road-sub { color: #e6e6e6; }
.road-bar { margin-top: 8px; height: 6px; border-radius: 4px; background: #2a2a2e; overflow: hidden; }
.road-bar i { display: block; height: 100%; background: var(--lc); }

/* Студент · аналитика · курстар деңгейі */
.cl-list { padding-top: 14px; }
.cl-row { width: 100%; border: 1px solid #3a3a52; background: #2e2e44; color: #fff; font-family: inherit; text-align: left; border-radius: 14px; padding: 12px; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cl-row > .material-icons-round { color: #9a9cb2; }
.cl-title { font-size: 14.5px; font-weight: 600; }
.cl-lvl { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--lc); }
.cl-lvl span { color: #9a9cb2; font-weight: 400; font-size: 11.5px; }
.cl-row .lvl-bar { margin-top: 8px; height: 6px; background: #44465e; }
.cl-row .lvl-bar i { background: var(--lc); }
.cl-meta { margin-top: 6px; font-size: 11px; color: #9a9cb2; }
.tl-row { display: flex; align-items: center; gap: 12px; background: #2e2e44; border: 1px solid #3a3a52; border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.tl-title { font-size: 13.5px; font-weight: 500; }
.tl-row b { font-size: 14px; }
.tl-row b.mid { color: #e0a84a; }

/* Пробный ЕНТ — қосымшадағыдай ашық тақырып */
.screen-overlay.ent-light { background: #e9eaee; color: #1c1c22; }
.app:has(.screen-overlay.ent-light:not([hidden])) .status-bar { background: #3b4089; }
.ent-light .appbar.ent-bar { background: #3b4089; height: 54px; }
.ent-clock { font-size: 20px; font-weight: 500; letter-spacing: 0.5px; color: #fff; font-variant-numeric: tabular-nums; }
.ent-finish { border: 0; background: transparent; color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; padding: 6px 0; }
.ent-light .content { background: #e9eaee; }
.ent-light .ent-subs { background: #fff; padding: 8px 6px 0; gap: 0; border-bottom: 1px solid #d6d7de; }
.ent-light .ent-sub { border: 0; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: #2a2a32; font-size: 13px; font-weight: 500; align-items: center; padding: 6px 14px 8px; }
.ent-light .ent-sub small { color: #2a2a32; font-size: 12px; }
.ent-light .ent-sub.on { background: transparent; color: #3b4089; border-bottom-color: #3b4089; }
.ent-light .ent-sub.on small { color: #3b4089; }
.ent-light .tq-nums { padding-top: 14px; }
.ent-light .tq-num { background: #b6b9d0; color: #fff; border-radius: 7px; width: 42px; height: 42px; }
.ent-light .tq-num.ans { background: #7d82b8; }
.ent-light .tq-num.on { background: #3b4089; }
.ent-light .tq-meta { color: #8a8d9c; }
.ent-light .tq-q { color: #1c1c22; font-size: 15px; }
.ent-light .tq-opt { background: #fff; border: 1px solid #fff; color: #1c1c22; border-radius: 10px; min-height: 52px; }
.ent-light .tq-opt .tq-radio { border-color: #1c1c22; }
.ent-light .tq-opt.on { border-color: #3b4089; }
.ent-light .tq-opt.on .tq-radio { border-color: #3b4089; }
.ent-light .tq-opt.on .tq-radio::after { background: #3b4089; }
.ent-light .eo-id { display: none; }
.ent-light .mt-hint { color: #8a8d9c; }
.ent-light .mt-right, .ent-light .mt-row { background: #fff; border-color: #fff; color: #1c1c22; }
.ent-light .mt-l b { color: #3b4089; }
.ent-light .mt-pick { background: #eef0f6; border-color: #d6d7de; color: #3b4089; }
.ent-light .mt-pick.on { background: #3b4089; border-color: #3b4089; color: #fff; }
.ent-light .ent-ctx { background: #fff; border-color: #d6d7de; }
.ent-light .ent-ctx-head { color: #3b4089; }
.ent-light .ent-ctx-body { color: #2a2a32; }
.ent-light .tq-foot { background: #fff; border-radius: 16px 16px 0 0; }
.ent-light .tq-prog { background: #dcdcea; height: 12px; }
.ent-light .tq-prog i, .ent-light .tq-pill { background: #3b4089; }
.ent-light .tq-btn { background: #fff; border: 1px solid #e4e5ea; color: #1c1c22; border-radius: 22px; padding: 0 26px; height: 50px; }
.ent-light .tq-btn:disabled { color: #9aa0b4; opacity: 1; }
.ent-light .tq-btn.finish { background: #3b4089; border-color: #3b4089; color: #fff; }
.ent-light .katex { color: inherit; }
/* Нәтиже бетінде де ашық */
.ent-light .er-total, .ent-light .er-sub, .ent-light .tr-score { color: #6c6f84; }
.ent-light .er-total b { color: #1c1c22; }
.ent-light .er-row, .ent-light .tr-item { background: #fff; color: #1c1c22; }
.ent-light .er-row.on { border-color: #3b4089; }
.ent-light .er-title { color: #1c1c22; }
.ent-light .tr-a { color: #4a4d5c; }
.ent-light .tr-pts { color: #4a4d5c; }
.ent-light .sticky-foot { background: #e9eaee; }
.ent-light .save-btn { background: #3b4089; }

/* Сынақ ҰБТ диалогы */
.ent-dlg { position: absolute; left: 14px; right: 14px; top: 50%; transform: translateY(-50%); background: #fff; color: #1c1c22; border-radius: 20px; padding: 22px 16px 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); }
.ent-dlg-title { text-align: center; font-size: 17px; font-weight: 500; margin-bottom: 16px; }
.ent-dlg-row { display: flex; justify-content: space-between; align-items: center; height: 46px; padding: 0 14px; margin-bottom: 9px; border: 1px solid color-mix(in srgb, var(--c) 70%, #fff); border-radius: 12px; color: var(--c); font-size: 14.5px; }
.ent-dlg-row b { color: #1c1c22; font-weight: 400; font-size: 14px; }
.ent-dlg-meta { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 16px; color: #3b4089; font-size: 13.5px; font-weight: 500; }
.ent-dlg-meta i { font-style: normal; color: #9aa0b4; margin: 0 6px; }
.ent-dlg-meta .material-icons-outlined { font-size: 19px; }
.ent-dlg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ent-dlg-actions button { height: 48px; border-radius: 24px; font-family: inherit; font-size: 15px; cursor: pointer; }
.ent-dlg-cancel { background: #fff; border: 1px solid #b8b8bf; color: #1c1c22; }
.ent-dlg-go { background: #3b4089; border: 0; color: #fff; }

/* Пробный ЕНТ: 5 пән қойындысы бір экранға сыйсын */
.ent-light .ent-subs { padding: 8px 4px 0; overflow-x: hidden; }
.ent-light .ent-sub { flex: 1 1 auto; min-width: 0; padding: 6px 4px 8px; font-size: 12px; white-space: nowrap; }
.ent-light .ent-sub small { font-size: 11px; }
.cert-btn { width: 100%; margin-top: 14px; height: 52px; border: 0; border-radius: 14px; background: #fff; color: #3b4089; font-family: inherit; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); border: 1.5px solid #3b4089; }
.cert-btn .material-icons-round { font-size: 22px; }
.cert-note { margin-top: 8px; text-align: center; font-size: 11px; color: #8a8d9c; }
.ent-light .er-row { cursor: default; }
.cert-btn { justify-content: flex-start; padding: 0 16px; }
.cert-btn .material-icons-round:last-child { margin-left: auto; font-size: 22px; }
.cert-btn .material-icons-outlined { font-size: 22px; }
.cert-view { padding: 14px 15px 20px; }
.cert-view img { display: block; width: 100%; border-radius: 6px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); }
.cert-save { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ent-light .appbar:not(.ent-bar) { background: #3b4089; }

/* Отчёт */
.rp-plan { margin-top: 6px; font-size: 14px; font-weight: 600; }
.rp-plan small { display: block; margin-top: 3px; font-size: 11px; font-weight: 400; color: #8a8d9c; }
.ga-tile span .material-icons-outlined { font-size: 16px; color: var(--primary); }
.rp-day { margin-top: 12px; }
.rp-date { font-size: 11.5px; font-weight: 600; color: #8a8d9c; text-transform: uppercase; letter-spacing: 0.5px; padding-bottom: 4px; border-bottom: 1px solid #2c2c33; }
.rp-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #26262c; }
.rp-item:last-child { border-bottom: 0; }
.rp-item.fut { opacity: 0.55; }
.rp-item .ls-ico { margin-top: 1px; }
.rp-title { font-size: 13px; font-weight: 500; }
.rp-sts { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.rp-st { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; padding: 3px 8px; border-radius: 999px; }
.rp-st .material-icons-outlined { font-size: 13px; }
.rp-st.ok { background: #1f2e24; color: #5cb36d; }
.rp-st.bad { background: #3a2020; color: #e06b5b; }
.rp-st.fut { background: #262628; color: #9a9db0; }
.ga-date { pointer-events: none; }

/* Отчёт: ретімен (видео → конспект → тест, эфир, апталық сынақ) */
.rp-tiles { grid-template-columns: repeat(3, 1fr); }
.rp-tiles .ga-tile { padding: 10px; gap: 6px; }
.rp-tiles .ga-tile span { font-size: 10.5px; }
.rp-tiles .ga-tile b { font-size: 18px; }
.rt-week { margin: 16px 0 4px; font-size: 11.5px; font-weight: 700; color: #8a8d9c; text-transform: uppercase; letter-spacing: 0.5px; }
.rt-lesson { display: flex; gap: 6px; padding: 8px 0; border-bottom: 1px solid #2c2c33; }
.rt-lesson:nth-of-type(odd) { background: transparent; }
.rt-lesson.special { background: #232329; margin: 6px -8px 0; padding: 4px 8px; border-radius: 10px; border-bottom: 0; }
.rt-lesson.fut { opacity: 0.55; }
.rt-n { width: 20px; flex-shrink: 0; padding-top: 10px; font-size: 12.5px; color: #8a8d9c; }
.rt-row { display: flex; gap: 10px; padding: 7px 0; }
.rt-row + .rt-row { border-top: 1px dashed #2c2c33; }
.rt-ico { width: 20px; flex-shrink: 0; padding-top: 1px; display: flex; justify-content: center; }
.rt-ico .material-icons-outlined, .rt-ico .material-icons-round { font-size: 19px; color: #5cb36d; }
.rt-ico .ls-ico { width: 18px; height: 18px; }
.rt-main { flex: 1; min-width: 0; }
.rt-title { font-size: 13px; font-weight: 500; color: #7fc49a; line-height: 1.35; }
.rt-line { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; color: #c8cad4; }
.rt-prog b { font-weight: 600; }
.rt-prog b.g { color: #5cb36d; }
.rt-prog b.b { color: #6c9fe0; }
.rt-prog b.ok { color: #5cb36d; }
.rt-prog b.mid { color: #e0a84a; }
.rt-prog b.low { color: #e06b5b; }
.rt-st { font-size: 11px; font-weight: 600; }
.rt-st.ok { color: #5cb36d; }
.rt-st.bad { color: #e06b5b; }
.rt-st.warn { color: #e0873a; }
.rt-st.fut { color: #9a9db0; font-weight: 400; }
.rt-dash { color: #6c6f84; }
.rt-time { margin-top: 3px; font-size: 10.5px; color: #8a8d9c; }
.rt-see { align-self: center; flex-shrink: 0; border: 1px solid #3a3a40; background: #262628; color: #fff; font-family: inherit; font-size: 11.5px; padding: 6px 10px; border-radius: 9px; cursor: pointer; }

/* Отчёт PDF */
.rp-foot { display: flex; gap: 10px; }
.rp-foot .ef-submit { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.rp-foot .ef-submit .menu-brand, .rp-foot .ef-submit .menu-brand svg { width: 20px; height: 20px; display: block; fill: #fff; }
.rp-pdf { height: 46px; padding: 0 16px; border: 1px solid #3a3a40; background: #262628; color: #fff; border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.rp-pdf .material-icons-outlined { font-size: 20px; color: #e06b5b; }
.rp-foot button:disabled { opacity: 0.6; }
.pdoc-host { position: fixed; left: -10000px; top: 0; }
.pdoc { width: 794px; padding: 40px 44px 48px; background: #fff; color: #1c1c22; font-family: Arial, "Roboto", sans-serif; font-size: 12px; }
.pdoc-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #3b4089; padding-bottom: 12px; }
.pdoc-head b { font-size: 40px; color: #3b3f8f; }
.pdoc-head div { text-align: right; color: #2d5a8c; font-weight: 700; font-size: 13px; }
.pdoc h1 { margin: 20px 0 4px; font-size: 22px; color: #2d5a8c; }
.pdoc-sub { color: #6c6f84; font-size: 12px; }
.pdoc table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.pdoc-info td { padding: 5px 8px; border: 1px solid #dde1ea; }
.pdoc-info td:nth-child(odd) { color: #6c6f84; width: 90px; background: #f5f7fb; }
.pdoc-plan { margin-top: 14px; padding: 10px 12px; background: #eef3fb; border-radius: 8px; font-size: 13px; }
.pdoc-sum th, .pdoc-sum td { border: 1px solid #dde1ea; padding: 7px; text-align: center; }
.pdoc-sum th { background: #3b4089; color: #fff; font-weight: 600; font-size: 11px; }
.pdoc-sum td { font-size: 15px; font-weight: 700; }
.pdoc-tbl th { background: #f0f2f7; text-align: left; padding: 6px; font-size: 10.5px; color: #4a4d5c; border-bottom: 2px solid #c9cedb; }
.pdoc-tbl td { padding: 6px; border-bottom: 1px solid #e6e8ee; font-size: 11px; vertical-align: top; }
.pdoc-tbl tr.sp td { background: #f6f3fb; }
.pdoc-tbl tr.fut td { color: #9aa0b4; }
.pdoc .ok { color: #2e8b4e; font-weight: 600; }
.pdoc .bad { color: #c0392b; font-weight: 600; }
.pdoc .warn { color: #d07a1c; font-weight: 600; }
.pdoc-foot { margin-top: 20px; color: #9aa0b4; font-size: 10.5px; }
/* Отчёт: PDF архив + регламент */
.rp-arch { display: flex; flex-direction: column; gap: 10px; padding-bottom: 24px; }
.rp-reg { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 14px; border: 0; border-radius: 16px; background: linear-gradient(135deg, rgba(91,110,194,.35), rgba(42,42,48,.95)); color: inherit; text-align: left; }
.rp-reg > .material-icons-outlined:first-child { font-size: 26px; color: #c4b5fd; }
.rp-reg span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rp-reg b { font-size: 14px; font-weight: 700; }
.rp-reg small { font-size: 12px; color: #b8bbc8; }
.rp-arch-h { display: flex; align-items: baseline; justify-content: space-between; padding: 8px 4px 2px; }
.rp-arch-h b { font-size: 15px; }
.rp-arch-h small { font-size: 12px; color: #8a8d9c; }
.rp-pdf-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 12px; border: 0; border-radius: 14px; background: var(--card, #1e1e1e); color: inherit; text-align: left; }
.rp-pdf-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(226,87,76,.15); color: #e2574c; }
.rp-pdf-ico .material-icons-outlined { font-size: 22px; }
.rp-pdf-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rp-pdf-b b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-pdf-b small { font-size: 11.5px; color: #8a8d9c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-pdf-d { flex-shrink: 0; font-size: 11px; color: #9aa0b4; text-align: right; max-width: 72px; line-height: 1.25; }
.rp-doc-hero { display: flex; gap: 12px; align-items: center; padding: 16px; border-radius: 16px; background: rgba(91,110,194,.2); margin-bottom: 12px; }
.rp-doc-hero .material-icons-outlined { font-size: 32px; color: #c4b5fd; }
.rp-doc-hero b { display: block; font-size: 15px; }
.rp-doc-hero small { color: #b8bbc8; font-size: 12px; }
.rp-doc-block { padding: 12px 4px 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.rp-doc-block h3 { margin: 0 0 6px; font-size: 14px; color: #e8eaf2; }
.rp-doc-block p { margin: 0; font-size: 13px; line-height: 1.45; color: #b8bbc8; }
.rp-doc-foot { margin: 16px 4px; font-size: 11px; color: #6c6f84; }

.rg { display: flex; flex-direction: column; gap: 10px; padding-bottom: 28px; }
.rg .seg-tabs { margin: 0; }
.rg-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 4px 0; }
.rg-meta b { font-size: 14px; }
.rg-meta small { font-size: 12px; color: #8a8d9c; }
.rg-list { display: flex; flex-direction: column; gap: 8px; }
.rg-duty { display: grid; grid-template-columns: 28px 1fr 28px; gap: 8px; align-items: start; padding: 10px 10px; border-radius: 14px; background: var(--card, #1e1e1e); }
.rg-check { width: 28px; height: 28px; margin-top: 4px; border-radius: 50%; border: 2px solid #4a4a55; background: transparent; color: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.rg-check .material-icons-round { font-size: 16px; transform: scale(.35); transition: transform .2s; }
.rg-duty.on .rg-check { border: 0; color: #fff; background: linear-gradient(180deg, #5fd47a, #2f9a52); box-shadow: 0 2px 0 #1d5e33; }
.rg-duty.on .rg-check .material-icons-round { transform: scale(1); }
.rg-duty-t { width: 100%; min-height: 44px; resize: vertical; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 13.5px; line-height: 1.35; padding: 6px 4px; outline: none; }
.rg-duty.on .rg-duty-t { color: #9a9db0; text-decoration: line-through; text-decoration-color: rgba(154,157,176,.45); }
.rg-del { width: 28px; height: 28px; margin-top: 4px; border: 0; border-radius: 8px; background: transparent; color: #6c6f84; display: grid; place-items: center; cursor: pointer; padding: 0; }
.rg-del .material-icons-round { font-size: 18px; }
.rg-add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; border: 1px dashed #3a3a45; border-radius: 14px; background: transparent; color: #b8bbc8; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rg-add .material-icons-round { font-size: 20px; color: #c4b5fd; }
.rg-body { width: 100%; min-height: 360px; box-sizing: border-box; border: 0; border-radius: 16px; background: var(--card, #1e1e1e); color: inherit; font: inherit; font-size: 14px; line-height: 1.5; padding: 14px; resize: vertical; outline: none; }
.pdoc .warn-row td { background: #ffe8a3 !important; color: #8a5a10; }
.pdoc .warn-row td.warn { color: #d07a1c; font-weight: 700; }
.pdoc .ok-row td { background: #c8efd4 !important; color: #1f6b3a; }
.pdoc .ok-row td.ok { color: #2e8b4e; font-weight: 700; }
.pdoc .bad-row td { background: #fde8e6 !important; color: #8b1e14; }
.pdoc .bad-row td.bad { color: #c0392b; font-weight: 700; }
.pdoc-need { margin-top: 2px; font-size: 10px; color: #c07820; font-weight: 500; }
.ga-export-foot { display: flex; gap: 8px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); }
.ga-export-foot .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.ga-export-foot .material-icons-outlined { font-size: 18px; }
.ga-drive { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-top: 8px; border: 0; border-radius: 14px; background: var(--card, #2a2a30); color: inherit; text-align: left; }
.ga-drive .material-icons-outlined:first-child { color: #5b9cff; font-size: 22px; }
.ga-drive span { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ga-drive b { font-size: 14px; }
.ga-drive small { color: #9aa0b4; font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.ga-xmeta { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.04); font-size: 12.5px; color: #b8bbc8; line-height: 1.45; }
.ga-xmeta b { color: #fff; font-weight: 600; }

/* Ашық тема: телефон экранын инверттеу, суреттер мен түсті белгілер өз түсінде қалады */
html[data-theme="light"] .phone .app { filter: invert(0.92) hue-rotate(180deg); background: #121212; }
html[data-theme="light"] .phone .app img,
html[data-theme="light"] .phone .app .poster,
html[data-theme="light"] .phone .app .avatar,
html[data-theme="light"] .phone .app .sp-avatar,
html[data-theme="light"] .phone .app .user-avatar,
html[data-theme="light"] .phone .app .champ-pic,
html[data-theme="light"] .phone .app .banner-slide,
html[data-theme="light"] .phone .app .vplayer,
html[data-theme="light"] .phone .app .menu-brand,
html[data-theme="light"] .phone .app .cs-page,
html[data-theme="light"] .phone .app .ent-light,
html[data-theme="light"] .phone .app .ent-dlg,
html[data-theme="light"] .phone .app .cert-view { filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] .phone .app .ent-light img, html[data-theme="light"] .phone .app .ent-light .poster { filter: none; }
html[data-theme="light"] .phone .app .appbar,
html[data-theme="light"] .phone .app .status-bar,
html[data-theme="light"] .phone .app .nav-fab,
html[data-theme="light"] .phone .app .toggle.on,
html[data-theme="light"] .phone .app .lang-chip.active { filter: invert(1) hue-rotate(180deg); }
html[data-theme="light"] .phone .app .poster img,
html[data-theme="light"] .phone .app .cert-view img,
html[data-theme="light"] .phone .app .banner-slide img { filter: none; }
html[data-theme="light"] .phone .app .trophy,
html[data-theme="light"] .phone .app .lvl-badge,
html[data-theme="light"] .phone .app .sp-badge { filter: invert(1) hue-rotate(180deg); }

/* Студент: қоңырау белгісі және топ беті */
.appbar-bell { position: relative; width: 40px; height: 40px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.appbar-bell .material-icons-round { font-size: 26px; }
.appbar-bell i { position: absolute; top: 4px; right: 4px; min-width: 17px; height: 17px; border-radius: 9px; background: #e5484d; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--appbar); }
.student-group .group-head { cursor: pointer; }
.student-group .champ-cam { display: none; }
.student-group .champ-pic { cursor: default; }
.student-group .rank-row { cursor: default; }
.student-group .rank-phone { display: none; }
.student-group .rank-progress, .student-group .rank-points-today { display: none; }
/* Студент: орын өзгерісі балдың сол жағында, кішкентай белгі */
.rank-row .rank-score-line { gap: 6px; }
.rank-row .rank-change { order: -1; font-size: 11px; padding: 1px 6px 1px 2px; border-radius: 999px; }
.rank-row .rank-change.up { background: rgba(92, 179, 109, 0.15); color: #5cb36d; }
.rank-row .rank-change.down { background: rgba(224, 107, 91, 0.15); color: #e06b5b; }
.rank-row .rank-change .material-icons-round { font-size: 18px; margin: 0 -2px 0 0; }
.seg-tabs.seg-4 button { font-size: 12.5px; }
.tour-card { background: #1e1e1e; border-radius: 16px; padding: 36px 20px; text-align: center; }
.tour-ico { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: rgba(242, 194, 48, 0.15); color: #f2c230; }
.tour-ico .material-icons-round { font-size: 34px; }
.tour-title { margin-top: 14px; font-size: 17px; font-weight: 700; }
.tour-sub { margin-top: 6px; font-size: 13px; color: #8a8d9c; }

/* ============================================================
   Турнир / Жекпе-жек
   ============================================================ */
.tour { padding-top: 14px; }
.tr-hero { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, #3a2f12, #1e1e1e 70%); border: 1px solid #5a4818; }
.tr-cup { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe08a, #d4a72c 60%, #8a6510); color: #3a2a06; flex-shrink: 0; }
.tr-cup .material-icons-round { font-size: 28px; }
.tr-name { font-size: 17px; font-weight: 800; }
.tr-sub { margin-top: 4px; font-size: 11.5px; color: #b9a46a; }
.tr-stage { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 999px; background: #f2c230; color: #2a2006; }
.tr-deadline { display: flex; align-items: center; gap: 6px; margin: 10px 2px 0; font-size: 11.5px; color: #8a8d9c; }
.tr-deadline .material-icons-outlined { font-size: 15px; }
.tr-vs { margin-top: 12px; padding: 16px; border-radius: 16px; background: linear-gradient(160deg, #2a2f55, #1e1e1e 75%); border: 1px solid #3d4580; text-align: center; }
.tr-vs-h { font-size: 12px; color: #a9b0e0; font-weight: 600; }
.tr-vs-row { display: flex; align-items: center; justify-content: space-around; margin-top: 14px; }
.tr-vs-p { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 40%; }
.tr-vs-p b { font-size: 13.5px; }
.tr-vs-p small { font-size: 10.5px; color: #8a8d9c; }
.tr-vs-x { font-size: 22px; font-weight: 900; font-style: italic; color: #f2c230; text-shadow: 0 0 14px rgba(242, 194, 48, 0.5); }
.tr-vs-meta { margin-top: 12px; font-size: 11.5px; color: #8a8d9c; }
.tr-play { margin-top: 14px; width: 100%; height: 48px; border: 0; border-radius: 14px; background: linear-gradient(180deg, #ffcf4a, #e0a81e); color: #2a2006; font-family: inherit; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: 0 6px 18px rgba(242, 194, 48, 0.25); }
.tr-me { margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: #1e1e1e; }
.tr-me > .material-icons-round, .tr-me > .material-icons-outlined { font-size: 28px; color: #8a8d9c; }
.tr-me.win { background: linear-gradient(135deg, #3a2f12, #1e1e1e); }
.tr-me.win > .material-icons-round { color: #f2c230; }
.tr-me b { display: block; font-size: 14px; }
.tr-me span { display: block; margin-top: 3px; font-size: 11.5px; color: #8a8d9c; }
.tr-card { margin-top: 12px; }
.du-av { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.du-av.lg { width: 60px; height: 60px; font-size: 20px; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.br-scroll { overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 6px; }
.br-scroll::-webkit-scrollbar { height: 0; }
.br { display: flex; gap: 22px; min-width: max-content; }
.br-col { width: 112px; display: flex; flex-direction: column; }
.br-col.champ-col { width: 90px; }
.br-h { font-size: 10.5px; font-weight: 700; color: #8a8d9c; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 8px; text-align: center; }
.br-body { flex: 1; display: flex; flex-direction: column; height: 760px; }
.br-pair { flex: 1; display: flex; flex-direction: column; justify-content: space-around; position: relative; }
.br-pair.two::after { content: ""; position: absolute; right: -12px; top: 25%; bottom: 25%; border: 1px solid #3a3a42; border-left: 0; width: 10px; border-radius: 0 6px 6px 0; }
.br-m { position: relative; background: #262628; border: 1px solid #34343c; border-radius: 9px; overflow: hidden; }
.br-col:not(:first-child) .br-m::before { content: ""; position: absolute; left: -12px; top: 50%; width: 11px; border-top: 1px solid #3a3a42; }
.br-col:not(:first-child) .br-m { overflow: visible; }
.br-m.live { border-color: #f2c230; box-shadow: 0 0 0 1px #f2c230, 0 0 14px rgba(242, 194, 48, 0.25); }
.br-m.br-empty { opacity: 0.45; }
.br-p { display: flex; justify-content: space-between; gap: 6px; padding: 5px 8px; font-size: 11.5px; }
.br-p + .br-p { border-top: 1px solid #34343c; }
.br-p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.br-p b { font-size: 11.5px; }
.br-p.win { color: #fff; font-weight: 700; }
.br-p.win b { color: #5cb36d; }
.br-p.lose { color: #6c6f84; }
.br-p.me span { color: #8fa0ff; }
.br-m.champ { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; background: linear-gradient(160deg, #3a2f12, #262628); border-color: #5a4818; font-size: 12px; font-weight: 700; }
.br-m.champ .material-icons-round { color: #f2c230; font-size: 24px; }
.tr-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tr-rule { border-radius: 12px; padding: 10px; background: #262628; border-top: 3px solid; }
.tr-rule b { display: block; font-size: 12px; }
.tr-rule span { display: block; margin-top: 4px; font-size: 11px; color: #9a9db0; }
.tr-rule.easy, .du-dots i.easy.cur { border-color: #5cb36d; }
.tr-rule.mid { border-color: #e0a84a; }
.tr-rule.hard { border-color: #e0604a; }
.tr-invite { margin-top: 12px; width: 100%; height: 46px; border: 1px solid #3d4580; background: #23274a; color: #c4cbff; border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.tr-hist { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #2c2c33; }
.tr-hist:last-child { border-bottom: 0; }
.tr-hist b { display: block; font-size: 13px; font-weight: 500; }
.tr-hist small { font-size: 11px; color: #8a8d9c; }
.tr-hist > span { font-size: 15px; font-weight: 800; }
.dv-p { justify-content: flex-start; gap: 10px; }
.ef-submit:disabled { opacity: 0.45; }

/* Жекпе-жек экраны */
.screen-overlay.duel { background: radial-gradient(ellipse at top, #1d2148, #121212 60%); }
.du-top { display: flex; align-items: center; gap: 8px; padding: 14px 15px 8px; }
.du-side { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.du-side.r { justify-content: flex-end; text-align: right; }
.du-side b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-pts { display: block; font-size: 22px; font-weight: 900; }
.du-mid { text-align: center; flex-shrink: 0; }
.du-mid small { display: block; margin-top: 4px; font-size: 10px; color: #8a8d9c; }
.du-round { font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; }
.du-round.easy { background: rgba(92, 179, 109, 0.18); color: #5cb36d; }
.du-round.mid { background: rgba(224, 168, 74, 0.18); color: #e0a84a; }
.du-round.hard { background: rgba(224, 96, 74, 0.2); color: #ff7a5c; }
.du-dots { display: flex; gap: 4px; padding: 4px 15px 0; }
.du-dots i { flex: 1; height: 5px; border-radius: 3px; background: #2e2e36; }
.du-dots i.cur { background: #8a8fd6; }
.du-dots i.ok { background: #5cb36d; }
.du-dots i.bad { background: #e06b5b; }
.du-timer { position: relative; margin: 12px 15px 0; height: 22px; border-radius: 11px; background: #262628; overflow: hidden; }
.du-timer i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, #5b6ec2, #8a8fd6); transition: width 1s linear; }
.du-timer span { position: relative; display: block; text-align: center; font-size: 12px; font-weight: 700; line-height: 22px; }
.du-q { padding: 14px 15px; }
.du-qn { font-size: 11px; color: #8a8d9c; margin-bottom: 8px; }
.du-op { margin-top: 6px; font-size: 12.5px; text-align: center; color: #c8cad4; }
.du-splash { margin: 50px 15px 0; padding: 30px 20px; border-radius: 20px; text-align: center; background: #1e1e1e; border: 1px solid; }
.du-splash.mid { border-color: #6a5124; }
.du-splash.hard { border-color: #7a2f22; background: linear-gradient(160deg, #3a1a14, #1e1e1e); }
.du-sp-n { font-size: 13px; color: #9a9db0; }
.du-sp-t { margin-top: 6px; font-size: 34px; font-weight: 900; letter-spacing: 1px; }
.du-splash.mid .du-sp-t { color: #e0a84a; }
.du-splash.hard .du-sp-t { color: #ff7a5c; }
.du-sp-s { margin-top: 6px; font-size: 13px; color: #c8cad4; }
.du-res { margin: 24px 15px 4px; padding: 26px 16px; border-radius: 20px; text-align: center; background: #1e1e1e; }
.du-res.win { background: linear-gradient(160deg, #3a2f12, #1e1e1e 70%); border: 1px solid #5a4818; }
.du-res-ico .material-icons-outlined { font-size: 56px; color: #8a8d9c; }
.du-res.win .du-res-ico .material-icons-outlined { color: #f2c230; }
.du-res-t { margin-top: 6px; font-size: 24px; font-weight: 900; }
.du-res-s { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 30px; font-weight: 900; }
.du-res-s span { color: #6c6f84; }
.du-res-n { margin-top: 10px; font-size: 12.5px; color: #c8cad4; }
.du-rr { display: flex; justify-content: space-between; padding: 12px 14px; margin-bottom: 8px; border-radius: 12px; background: #1e1e1e; border-left: 3px solid; font-size: 13px; }
.du-rr.easy { border-color: #5cb36d; }
.du-rr.mid { border-color: #e0a84a; }
.du-rr.hard { border-color: #e0604a; }

/* ============================================================
   ТУРНИР v2 — 3D стиль, I4U түстері
   Негізгі: --primary (студент #5B6EC2 / staff #8B5CF6), терең #3B4089,
   бет #1E1E1E, алтын тек кубок/жеңіс үшін #FFD24D → #E0A21B
   3D ережесі: жоғарғы жарық жиек (inset 0 1px 0 rgba(255,255,255,.08)),
   төменгі «қалыңдық» (0 4px 0 #0c0c10) және жұмсақ көлеңке (0 10px 24px rgba(0,0,0,.35))
   ============================================================ */
.t3-sec { margin: 18px 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: #8a8d9c; }
.t3-sec:first-child { margin-top: 4px; }
.t3-card, .t3-panel, .t3-hero, .tr-vs, .t3-ok {
  background: linear-gradient(180deg, #26262c 0%, #1e1e22 100%);
  border: 1px solid #2f2f38;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 4px 0 #0c0c10, 0 10px 24px rgba(0, 0, 0, 0.35);
  border-radius: 18px;
}
.t3-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 14px; margin-bottom: 14px; color: #fff; font-family: inherit; text-align: left; cursor: pointer; transition: transform 0.08s, box-shadow 0.08s; }
.t3-card:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 0 #0c0c10, 0 4px 10px rgba(0, 0, 0, 0.3); }
.t3-card > .material-icons-round { color: #6c6f84; }
.t3-ico { width: 58px; height: 58px; flex-shrink: 0; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.t3-body { flex: 1; min-width: 0; }
.t3-top { display: flex; gap: 6px; flex-wrap: wrap; }
.t3-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.t3-badge .material-icons-round { font-size: 13px; }
.t3-badge.reg { background: color-mix(in srgb, var(--primary) 22%, transparent); color: color-mix(in srgb, var(--primary) 60%, #fff); }
.t3-badge.live { background: rgba(224, 96, 74, 0.2); color: #ff8a70; }
.t3-badge.done { background: rgba(255, 210, 77, 0.16); color: #ffd24d; }
.t3-badge.ok { background: rgba(92, 179, 109, 0.18); color: #5cb36d; }
.t3-title { margin-top: 6px; font-size: 15.5px; font-weight: 800; }
.t3-title.lg { margin-top: 10px; font-size: 21px; text-align: center; }
.t3-sub { margin-top: 3px; font-size: 11.5px; color: #9a9db0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t3-hero .t3-sub { text-align: center; white-space: normal; }
.t3-line { margin-top: 8px; display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #c8cad4; }
.t3-line .material-icons-round, .t3-line .material-icons-outlined { font-size: 15px; color: var(--primary); }
.t3-hero { padding: 20px 16px 18px; text-align: center; background: radial-gradient(ellipse at top, color-mix(in srgb, var(--primary) 35%, #1e1e22), #1e1e22 70%); border-color: color-mix(in srgb, var(--primary) 40%, #2f2f38); }
.t3-hero img { width: 96px; height: 96px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
.t3-panel { margin-top: 14px; padding: 16px; }
.t3-panel-h { display: flex; align-items: center; gap: 12px; }
.t3-panel-h img { width: 48px; height: 48px; }
.t3-panel-h b { display: block; font-size: 14px; }
.t3-panel-h span { display: block; margin-top: 3px; font-size: 11.5px; color: #9a9db0; }
.t3-info { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #2c2c33; }
.t3-info:last-child { border-bottom: 0; }
.t3-info > span { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9a9db0; flex-shrink: 0; }
.t3-info > span .material-icons-outlined { font-size: 17px; color: var(--primary); }
.t3-info b { font-size: 13px; font-weight: 600; text-align: right; }
.t3-info.col { flex-direction: column; }
.t3-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t3-chips i { font-style: normal; font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 16%, #26262c); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); }
.t3-tl { margin-top: 12px; position: relative; padding-left: 4px; }
.t3-tl-i { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 0 0 14px 22px; }
.t3-tl-i::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: -2px; width: 2px; background: #34343c; }
.t3-tl-i:last-child::before { display: none; }
.t3-tl-i i { position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #34343c; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.3); }
.t3-tl-i.done i { background: linear-gradient(180deg, #7fe09a, #2e8b4e); }
.t3-tl-i.done::before { background: #2e8b4e; }
.t3-tl-i.cur i { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 60%, #fff), var(--primary)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); }
.t3-tl-i b { font-size: 13px; }
.t3-tl-i span { font-size: 11.5px; color: #9a9db0; margin-left: auto; }
.t3-tl-i.cur b { color: color-mix(in srgb, var(--primary) 55%, #fff); }
.t3-ppl { margin-top: 12px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.t3-ppl > span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.t3-ppl small { font-size: 10.5px; color: #c8cad4; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t3-ok { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-color: rgba(92, 179, 109, 0.35); background: linear-gradient(180deg, #1f2e24, #1b231e); }
.t3-ok > .material-icons-round, .t3-ok > .material-icons-outlined { font-size: 30px; color: #5cb36d; }
.t3-ok.out { border-color: #2f2f38; background: linear-gradient(180deg, #26262c, #1e1e22); }
.t3-ok.out > .material-icons-outlined { color: #8a8d9c; }
.t3-ok.gold { border-color: #6a5420; background: linear-gradient(180deg, #3a2f12, #241e10); }
.t3-ok img { width: 44px; height: 44px; }
.t3-ok b { display: block; font-size: 14px; }
.t3-ok span { display: block; margin-top: 3px; font-size: 11.5px; color: #c8cad4; }
.t3-note { margin-top: 14px; display: flex; gap: 8px; font-size: 11.5px; line-height: 1.5; color: #9a9db0; background: #1a1a1e; border-radius: 12px; padding: 10px 12px; }
.t3-note .material-icons-outlined { font-size: 17px; color: var(--primary); }
.t3-ro { display: flex; align-items: center; gap: 6px; color: #c8cad4; }
.t3-ro small { color: #6c6f84; }
.t3-all { border: 0; background: transparent; color: var(--primary); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; margin-left: 6px; }
input[type="datetime-local"].ef-input { color-scheme: dark; }

/* 3D батырма */
.btn3d {
  width: 100%; height: 50px; margin-top: 14px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 800; color: #fff;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 70%, #fff) 0%, var(--primary) 45%, color-mix(in srgb, var(--primary) 75%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 0 color-mix(in srgb, var(--primary) 45%, #000), 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn3d:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 1px 0 color-mix(in srgb, var(--primary) 45%, #000), 0 4px 10px rgba(0, 0, 0, 0.3); }
.btn3d.gold { color: #2a2006; background: linear-gradient(180deg, #fff1b8 0%, #ffd24d 45%, #e0a21b 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 4px 0 #9a6608, 0 10px 20px rgba(224, 162, 27, 0.25); }
.btn3d.gold:active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 1px 0 #9a6608, 0 4px 10px rgba(224, 162, 27, 0.2); }
.btn3d.ghost { height: 44px; font-size: 13.5px; font-weight: 600; color: #c8cad4; background: linear-gradient(180deg, #2c2c33, #232329); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 3px 0 #0c0c10; }
.btn3d .material-icons-round, .btn3d .material-icons-outlined { font-size: 22px; }

/* VS блогы — біздің көк, 3D */
.tr-vs { margin-top: 14px; padding: 16px; text-align: center; background: radial-gradient(ellipse at top, color-mix(in srgb, var(--primary) 40%, #1e1e22), #1e1e22 75%); border-color: color-mix(in srgb, var(--primary) 45%, #2f2f38); }
.tr-vs-h { color: color-mix(in srgb, var(--primary) 50%, #fff); }
img.tr-vs-x { width: 54px; height: 54px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.5)); }
.du-av.lg { box-shadow: 0 0 0 3px #1e1e22, 0 0 0 5px color-mix(in srgb, var(--primary) 60%, transparent), 0 8px 16px rgba(0, 0, 0, 0.45); }
.br-m { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 0 #0c0c10; }
.br-m.live { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), 0 0 14px color-mix(in srgb, var(--primary) 45%, transparent); }
.br-p.me span { color: color-mix(in srgb, var(--primary) 50%, #fff); }
.br-p.bye span { color: #6c6f84; font-style: italic; font-size: 10.5px; }
.br-m.champ img { width: 34px; height: 34px; }
.du-res-ico img { width: 96px; height: 96px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5)); }
.tr-rule { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 3px 0 #0c0c10; }

/* Staff түсі айнымалы арқылы (варианттар) */
html[data-mode="staff"] {
  --primary: var(--staff-primary, #8b5cf6);
  --primary-dark: var(--staff-dark, #6d3fd8);
  --appbar: var(--staff-bar, #36245e);
}
html[data-mode="staff"] .fab-core { background: var(--primary); }
html[data-mode="staff"] .efir-date { border-color: color-mix(in srgb, var(--primary) 35%, #141816); }
html[data-mode="staff"] .pill { color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, #1e1e1e); }
html[data-mode="staff"] .appbar-profile { color: var(--primary); }
.palette-pick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; max-width: 460px; color: #c8cad4; font-size: 12px; }
.palette-pick[hidden] { display: none; }
.pal { border: 1px solid #2e2e36; background: #1c1c22; color: #c8cad4; border-radius: 12px; padding: 5px 9px 5px 5px; display: flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit; }
.pal i { width: 22px; height: 22px; border-radius: 7px; display: block; }
.pal small { font-size: 11px; }
.pal.on { border-color: #fff; color: #fff; box-shadow: 0 0 0 1px #fff; }
@media (max-width: 440px) { .palette-pick { display: none !important; } }
/* Staff навбарындағы 4-орын әзірге бос */
.service-tile .material-icons-outlined { width: 26px; height: 26px; font-size: 26px; }
.rank-row .rank-progress { order: -2; margin-right: 2px; }

/* Белбеу иконкалары */
.t3-hero img.t3-belt { width: 220px; height: auto; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.55)); }
.t3-ico { width: 60px; height: 60px; object-fit: contain; }
.t3-ico.off { filter: grayscale(1) opacity(0.5); }
.du-res-ico img.du-belt { width: 200px; height: auto; }
.t3-badge.off { background: #2a2a2e; color: #8a8d9c; }
.btn3d.ghost.danger { color: #e06b5b; }
.service-tile img[src*="belt_icon"] { width: 34px !important; height: 34px !important; }

/* Рөл ауыстырғыш */
.role-switch { align-items: center; color: #9aa0b4; font-size: 12px; }
.role-switch[hidden] { display: none; }
.chip-role.active { border-color: var(--primary); color: #fff; background: color-mix(in srgb, var(--primary) 28%, #1c1c22); }

/* Жаңалықтар: статус, автор, форма */
.nw-meta { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.nw-st { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.nw-st .material-icons-outlined { font-size: 13px; }
.nw-st.ok { background: rgba(92, 179, 109, 0.18); color: #5cb36d; }
.nw-st.warn { background: rgba(224, 168, 74, 0.18); color: #e0a84a; }
.nw-st.bad { background: rgba(224, 107, 91, 0.18); color: #e06b5b; }
.nw-st.ban { background: color-mix(in srgb, var(--primary) 20%, transparent); color: color-mix(in srgb, var(--primary) 60%, #fff); }
.nw-author { margin-top: 6px; font-size: 11px; color: #8a8d9c; }
.nf-text { height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.45; }
.nf-img { width: 100%; height: 120px; border: 1.5px dashed #3a3a42; border-radius: 12px; background: #181818; color: #9a9db0; font-family: inherit; font-size: 12.5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.nf-img .material-icons-outlined { font-size: 30px; color: var(--primary); }
.nf-toggle-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: #181818; }
.nf-toggle-row > div { flex: 1; }
.nf-toggle-row b { display: block; font-size: 13.5px; }
.nf-toggle-row small { display: block; margin-top: 3px; font-size: 11px; color: #8a8d9c; }
.nf-prev .banner-slide { pointer-events: none; }

/* Баннер слайдтары (жаңалық-баннерлер + тұрақты) */
.banner-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 12px; }
.banner-scroll::-webkit-scrollbar { height: 0; }
.banner-scroll .banner-slide { flex: 0 0 100%; scroll-snap-align: center; }
.nb-slide { background-size: cover; background-position: center; display: flex; align-items: flex-end; text-align: left; padding: 0; }
.nb-copy { display: block; padding: 0 16px 14px; color: #fff; }
.nb-copy b { display: block; font-size: 16px; font-weight: 800; line-height: 1.25; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); }
.nb-copy small { display: block; margin-top: 4px; font-size: 11px; opacity: 0.9; }
.rank-points-today { display: none !important; }

/* Зачисление: доступы бар оқушылар */
.acc-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 15px 2px; }
.acc-chips::-webkit-scrollbar { height: 0; }
.acc-chips .ent-chip { flex-shrink: 0; height: 34px; }
.acc-count { display: flex; align-items: center; gap: 6px; padding: 10px 17px 6px; font-size: 12.5px; color: #9a9db0; }
.acc-count .material-icons-outlined { font-size: 17px; color: var(--primary); }
.acc-count b { color: #fff; }
.acc-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 0; border-radius: 14px; background: #1e1e1e; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.acc-row .avatar { width: 40px; height: 40px; flex-shrink: 0; }
.acc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-main small { font-size: 11.5px; color: #8a8d9c; }
.acc-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.acc-right small { font-size: 10.5px; color: #8a8d9c; }
.acc-badge { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(92,179,109,.18); color: #5cb36d; }
.acc-badge.warn { background: rgba(224,168,74,.18); color: #e0a84a; }
.acc-badge .material-icons-outlined { font-size: 13px; }
/* Куратор: оң жақ слот бос (орын сақталады). Зачисление — тек бас куратор. Студентте сол слот — Мои курсы */
html[data-mode="staff"] .nav-item.nav-empty {
  visibility: hidden;
  pointer-events: none;
}
html[data-mode="staff"][data-role="curator"] #tabChips [data-goto="3"] { display: none; }
.appbar-title-row { display: flex; align-items: center; gap: 6px; flex: 1; }
.appbar-add { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center; cursor: pointer; }
.appbar-add .material-icons-round { font-size: 22px; }
.acc-search { position: relative; padding-right: 48px; }
.acc-filter { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #9a9db0; display: grid; place-items: center; cursor: pointer; }
.acc-filter.on { color: var(--primary); background: color-mix(in srgb, var(--primary) 16%, transparent); }
.acc-filter i { position: absolute; top: 3px; right: 3px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--primary); color: #fff; font-size: 9.5px; font-style: normal; font-weight: 700; display: grid; place-items: center; }
.acc-row { align-items: flex-start; }
.acc-main { gap: 6px; }
.acc-c { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: #c8cad4; padding-top: 6px; border-top: 1px solid #2c2c33; }
.acc-main b + .acc-c { border-top: 0; padding-top: 0; }
.acc-c em { font-style: normal; font-weight: 700; color: #5cb36d; white-space: nowrap; }
.acc-c em.warn { color: #e0a84a; }
.acc-c em.bad { color: #e06b5b; }
.en-row { display: flex; align-items: center; gap: 10px; }
.en-or { font-size: 12.5px; color: #8a8d9c; }
.en-chip { height: 44px; padding: 0 18px; border: 1px solid #2e2e36; border-radius: 12px; background: #181818; color: #c8cad4; font-family: inherit; font-size: 13.5px; cursor: pointer; }
.en-chip.on { border-color: var(--primary); color: #fff; background: color-mix(in srgb, var(--primary) 20%, #181818); }
.en-dur { width: 120px; flex: none; }
.en-more { height: 44px; min-width: 48px; border-radius: 12px; background: #181818; display: grid; place-items: center; font-weight: 700; color: #c8cad4; }
.en-cur { font-size: 18px; color: #c8cad4; }
.en-hint { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9a9db0; }
.en-hint .material-icons-outlined { font-size: 16px; color: var(--primary); }
.en-st { display: flex; align-items: center; gap: 10px; color: #fff; }
.en-st small { display: block; font-size: 11px; color: #8a8d9c; }
input[type="date"].ef-input { color-scheme: dark; }

/* Конспект: сырғытылатын беттер, толық экран, комментарий */
.cs-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 14px; cursor: grab; }
.cs-track::-webkit-scrollbar, .cs-full-track::-webkit-scrollbar { height: 0; }
.cs-slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: none; cursor: zoom-in; }
.cs-slide .cs-page { margin-top: 0; height: 240px; }
.cs-page { position: relative; }
.cs-head { padding: 12px 18px 0 34px; text-align: left; font: italic 600 13px Georgia, serif; color: #2b3fa0; }
.cs-dots { display: flex; justify-content: center; gap: 5px; padding: 10px 0 4px; }
.cs-dots i { width: 6px; height: 6px; border-radius: 3px; background: #4a4a52; transition: width .2s; }
.cs-dots i.on { width: 16px; background: var(--primary); }
.cs-dots.light i { background: rgba(255,255,255,.35); }
.cs-dots.light i.on { background: #fff; }
.cs-com { height: 76px; }
.cs-comment { margin-top: 10px; display: flex; gap: 8px; font-size: 12.5px; color: #c8cad4; background: #181818; border-radius: 12px; padding: 10px 12px; }
.cs-comment .material-icons-outlined { font-size: 17px; color: var(--primary); }
.cs-full { position: absolute; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; justify-content: center; }
.cs-full-x { position: absolute; top: 52px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cs-full-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; cursor: grab; }
.cs-full-slide { flex: 0 0 100%; scroll-snap-align: center; padding: 0 10px; }
.cs-full-slide .cs-page { height: 560px; margin: 0; border-radius: 6px; }
.cs-full-slide .cs-lines { gap: 22px; padding-top: 26px; }
.cs-full .cs-dots { position: absolute; bottom: 40px; left: 0; right: 0; }
/* Көрсеткіш түсіндірмесі */
[data-ex] { cursor: pointer; }
.ga-tile[data-ex]:active, .ga-ent[data-ex]:active { transform: scale(.98); }
.ex-h { display: flex; align-items: center; gap: 6px; }
.ex-h .material-icons-outlined { font-size: 16px; color: #6c6f84; }
.ex-title { font-size: 18px; font-weight: 800; margin: 2px 0 12px; }
.ex-block { background: #181818; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ex-l { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #9a9db0; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.ex-l .material-icons-outlined { font-size: 17px; color: var(--primary); }
.ex-block p { font-size: 13.5px; line-height: 1.5; }
.ex-block ol { padding-left: 18px; font-size: 13px; line-height: 1.55; color: #e0e0e6; }
.ex-block li + li { margin-top: 3px; }
.ex-now { background: color-mix(in srgb, var(--primary) 12%, #181818); }
.ex-src { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: #8a8d9c; margin: 4px 2px 0; }
.ex-src .material-icons-outlined { font-size: 15px; }
.tour-seg { margin: 0 0 6px; }
.tour .t3-sec:first-of-type { margin-top: 14px; }
.course-secs .sch-stats.ss-stats { margin: 0; }
.tl-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.tl-sum div { background: #2e2e44; border: 1px solid #3a3a52; border-radius: 12px; padding: 12px; }
.tl-sum b { display: block; font-size: 20px; }
.tl-sum span { display: block; margin-top: 2px; font-size: 11px; color: #9a9cb2; }
.tl-row.todo { opacity: .6; }
.tl-todo { font-size: 11.5px; color: #9a9cb2; flex-shrink: 0; }
.ma-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 10px; border-radius: 14px; border: 1px solid #3a3a52; background: #2e2e44; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.ma-row b { display: block; font-size: 14.5px; }
.ma-row small { display: block; margin-top: 3px; font-size: 11.5px; color: #9a9cb2; }
.ma-row > .material-icons-round { color: #9a9cb2; }
.ma-score { width: 62px; height: 52px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.ma-score b { font-size: 20px; }
.ma-score small { margin: 0; font-size: 10px; }
.ma-score.ok { background: rgba(92,179,109,.18); color: #5cb36d; }
.ma-score.bad { background: rgba(224,107,91,.18); color: #e06b5b; }
.ent-light .tr-a.mine { color: #c0392b; }
.ent-light .tr-a.mine .material-icons-outlined { font-size: 18px; }
.ent-light .er-row > .material-icons-round { color: #9aa0b4; font-size: 22px; margin-left: -4px; }
/* Пробный разборы — тренажёрдағыдай */
.rv-card { border-radius: 14px; padding: 14px; margin-bottom: 12px; border: 1.5px solid; }
.rv-card.ok { background: #eaf6ed; border-color: #8fd0a0; }
.rv-card.bad { background: #fbecea; border-color: #eda59b; }
.rv-card.part { background: #fdf3e2; border-color: #ecc17a; }
.rv-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rv-n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #fff; }
.rv-card.ok .rv-n { background: #2e8b4e; }
.rv-card.bad .rv-n { background: #c0392b; }
.rv-card.part .rv-n { background: #d08a1c; }
.rv-pts { font-size: 12px; font-weight: 700; color: #4a4d5c; }
.rv-q { font-size: 14.5px; line-height: 1.45; color: #1c1c22; margin-bottom: 10px; }
.rv-right { background: #fff !important; }
.rv-opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: 10px; background: #fff; border: 1.5px solid #e2e3ea; color: #1c1c22; font-size: 13.5px; }
.rv-opt .pr-radio { border-color: #b6b9d0; }
.rv-opt.ok { border-color: #2e8b4e; background: #f3fbf5; }
.rv-opt.ok .pr-radio { border-color: #2e8b4e; color: #2e8b4e; }
.rv-opt.bad { border-color: #c0392b; background: #fdf3f2; }
.rv-opt.bad .pr-radio { border-color: #c0392b; color: #c0392b; }
.rv-opt.mine .pr-radio::after, .rv-opt.ok .pr-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.rv-opt em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; color: #8a8d9c; flex-shrink: 0; }
.rv-opt.ok.mine em { color: #2e8b4e; }
.rv-opt.bad em { color: #c0392b; }
.rv-fix { font-style: normal; font-size: 11.5px; color: #2e8b4e; font-weight: 600; }
.rv-fb { margin-top: 10px; }
.ent-light .rv-fb.ok { background: #fff; border-color: #8fd0a0; }
.ent-light .rv-fb.bad { background: #fff; border-color: #eda59b; }
.ent-light .rv-fb .pr-explain { color: #3a3d4a; }
.ent-light .rv-fb .pr-explain b { color: #1c1c22; }
.ent-light .rv-fb.ok .pr-explain b:first-child { color: #2e8b4e; }
.ent-light .rv-fb.bad .pr-explain b:first-child { color: #c0392b; }
.ent-light .rv-fb .pr-fb-title { color: inherit; }
.ent-light .rv-fb.ok .pr-fb-title { color: #2e8b4e; }
.ent-light .rv-fb.bad .pr-fb-title { color: #c0392b; }

/* ҰБТ талдауы — қосымшадағыдай (қараңғы) */
.screen-overlay.an-dark { background: #121212; }
.an-dark .appbar { background: #2b3553; }
.an-subs { display: flex; overflow-x: auto; border-bottom: 1px solid #fff; padding: 6px 4px 0; }
.an-subs::-webkit-scrollbar, .an-nums::-webkit-scrollbar { height: 0; }
.an-sub { flex: 1 0 auto; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #fff; font-family: inherit; font-size: 13px; padding: 8px 10px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; white-space: nowrap; }
.an-sub small { font-size: 12px; color: #c8cad4; }
.an-sub.on { color: #6c7fd8; border-bottom-color: #5b6ec2; }
.an-sub.on small { color: #6c7fd8; }
.an-nums { display: flex; gap: 10px; overflow-x: auto; padding: 14px 15px 6px; }
.an-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 7px; border: 0; color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; background: #2b3046; }
.an-num.ok { background: #2f5e3a; }
.an-num.bad { background: #6a2a26; }
.an-num.part { background: #6b5320; }
.an-num.on { background: #5b6ec2; box-shadow: 0 0 0 2px #8a94f5; }
.an-body { padding: 22px 8px 16px; }
.an-q { font-size: 15px; line-height: 1.5; padding: 0 4px; margin-bottom: 16px; }
.an-right { background: #1e1e1e; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.an-opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 56px; padding: 12px 18px; margin-bottom: 14px; border-radius: 14px; background: #1e1e1e; font-size: 14.5px; }
.an-opt.ok { background: #4caf50; color: #fff; }
.an-opt.bad { background: #e05a4f; color: #fff; }
.an-opt .material-icons-round { font-size: 20px; flex-shrink: 0; }
.an-pair { font-weight: 700; white-space: nowrap; }
.an-ex { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: #1e1e1e; border-left: 3px solid; font-size: 13px; line-height: 1.5; color: #d6d6d6; }
.an-ex.ok { border-color: #4caf50; }
.an-ex.bad { border-color: #e05a4f; }
.an-ex b { display: block; margin-bottom: 4px; }
.an-ex.ok b { color: #5cb36d; }
.an-ex.bad b { color: #e06b5b; }
.an-note { margin-top: 6px; color: #9a9db0; font-size: 12.5px; }
.an-foot { flex-shrink: 0; display: flex; justify-content: space-between; gap: 12px; padding: 16px 15px 30px; background: #1a1a1a; border-radius: 16px 16px 0 0; }
.an-nav { height: 52px; padding: 0 26px; border-radius: 26px; border: 1px solid #3a3a42; background: #232326; color: #fff; font-family: inherit; font-size: 15px; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.an-nav .material-icons-outlined { font-size: 24px; }
/* ҰБТ сынақ тесттері (тізім) */
.screen-overlay.mt-screen { background: #1b1c2e; }
.mt-screen .appbar { background: #2b2d42; }
.app:has(.screen-overlay.mt-screen:not([hidden])) .status-bar { background: #2b2d42; }
.mt-wrap { padding-top: 14px; }
.mt-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-tile { background: #2b2d42; border: 1px solid #3a3c55; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.mt-tile .material-icons-round { font-size: 28px; }
.mt-tile small { font-size: 13px; color: #c8cad4; }
.mt-tile b { font-size: 24px; font-weight: 800; }
.mt-prog { margin-top: 10px; background: #2b2d42; border: 1px solid #3a3c55; border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 16px; }
.mt-prog .material-icons-round { font-size: 32px; }
.mt-prog small { display: block; font-size: 13px; color: #c8cad4; }
.mt-prog b { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; }
.mt-prog .up { color: #4caf50; }
.mt-prog .down { color: #e06b5b; }
.mt-h { margin: 24px 2px 12px; font-size: 18px; font-weight: 800; }
.mt-card { width: 100%; text-align: left; background: #2b2d42; border: 1px solid #3a3c55; border-radius: 16px; padding: 16px; margin-bottom: 12px; color: #fff; font-family: inherit; cursor: pointer; }
.mt-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.mt-card-top b { font-size: 15.5px; line-height: 1.35; }
.mt-badge { flex-shrink: 0; background: #4caf50; color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 10px; }
.mt-date { margin-top: 8px; font-size: 13px; color: #9a9db0; }
.mt-nums { display: grid; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.mt-nums small { display: block; font-size: 12px; color: #c8cad4; }
.mt-nums b { display: block; margin-top: 4px; font-size: 19px; font-weight: 800; }
/* Апталық сынақ режимі */
.wm-opt { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; margin-bottom: 10px; border-radius: 14px; border: 1px solid #2e2e36; background: #181818; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.wm-opt > .material-icons-outlined { font-size: 26px; color: var(--primary); }
.wm-opt > .material-icons-round { color: #6c6f84; }
.wm-opt b { display: block; font-size: 14.5px; }
.wm-opt small { display: block; margin-top: 3px; font-size: 11.5px; color: #9a9db0; line-height: 1.4; }
.wk-ans { margin-top: 6px; padding: 14px; border-radius: 12px; background: #1c271f; border: 1px solid #2f5a3a; }
.wk-l { font-size: 11px; font-weight: 700; color: #5cb36d; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 6px; }
.wk-ans > b { font-size: 15px; }
.wk-ex { margin-top: 10px; border-color: #5cb36d; }
.wk-foot { display: flex; gap: 10px; }
.wk-btn { flex: 1; height: 52px; border: 0; border-radius: 14px; color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; }
.wk-btn.ok { background: linear-gradient(180deg, #6fcf86, #3a9a55); box-shadow: 0 4px 0 #23663a; }
.wk-btn.bad { background: linear-gradient(180deg, #f08a7e, #c9483c); box-shadow: 0 4px 0 #8a2a22; }
.wk-btn:active { transform: translateY(3px); box-shadow: none; }
.hist-card { background: #1e1e1e; border-color: #2c2c33; }
/* Турнир формасы */
.tf-checks { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.tf-check { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid #2e2e36; background: #181818; color: #e6e6e6; font-family: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.tf-check .material-icons-round { font-size: 22px; color: #6c6f84; flex-shrink: 0; }
.tf-check.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, #181818); }
.tf-check.on .material-icons-round { color: var(--primary); }
.tf-check small { display: block; margin-top: 2px; font-size: 11px; color: #8a8d9c; }
.tf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tf-row .ef-input { padding: 0 8px; font-size: 12.5px; }
.tf-stages { display: flex; flex-direction: column; gap: 8px; }
.tf-stage { display: flex; align-items: center; gap: 10px; }
.tf-stage > span { width: 120px; flex-shrink: 0; }
.tf-stage b { display: block; font-size: 13px; }
.tf-stage small { font-size: 11px; color: #8a8d9c; }
.tf-stage .ef-input { flex: 1; font-size: 12.5px; padding: 0 10px; }
.tf-stage .ef-input:disabled { opacity: .6; }
.ent-chip small { font-weight: 400; opacity: .7; }
/* Тесты → История */
.hist-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px; margin-bottom: 10px; border-radius: 14px; border: 1px solid #2c2c33; background: #1e1e1e; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.hist-row b { display: block; font-size: 14px; }
.hist-row small { display: block; margin-top: 3px; font-size: 11.5px; color: #8a8d9c; }
.hist-row > .material-icons-round { color: #6c6f84; }
.hist-row.ent { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 28%, #1e1e1e), #1e1e1e 70%); border-color: color-mix(in srgb, var(--primary) 45%, #2c2c33); padding: 16px 12px; }
.hist-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 30%, #1e1e1e); color: #fff; flex-shrink: 0; }
.hist-ico .material-icons-outlined { font-size: 26px; }
.hist-sc { font-size: 15px !important; flex-shrink: 0; }
.hist-sc.mid { color: #e0a84a; }
.lt-card { border-radius: 14px; padding: 12px; margin-bottom: 14px; background: #1a1a1a; border: 1.5px solid; }
.lt-card.ok { border-color: #2f5e3a; }
.lt-card.bad { border-color: #6a2a26; }
.lt-card .rv-n { background: #2b3046; }
.lt-card.ok .rv-n { background: #2e8b4e; }
.lt-card.bad .rv-n { background: #c0392b; }
.lt-st { font-size: 12px; font-weight: 700; }
.lt-card.ok .lt-st { color: #5cb36d; }
.lt-card.bad .lt-st { color: #e06b5b; }
.lt-card .an-opt { min-height: 46px; margin-bottom: 8px; padding: 10px 14px; font-size: 13.5px; }
.tf-dd { height: auto; min-height: 44px; padding: 10px 12px 10px 14px; gap: 8px; }
.tf-dd > span:first-child { white-space: normal; line-height: 1.35; flex: 1; text-align: left; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tf-dd em { font-style: normal; font-size: 11px; font-weight: 700; min-width: 22px; height: 22px; border-radius: 11px; background: var(--primary); color: #fff; display: grid; place-items: center; padding: 0 6px; flex-shrink: 0; }
.tf-dd.open { border: 1px solid var(--primary); }
.tf-dd:disabled { opacity: .5; cursor: default; }
.tf-drop { margin-top: 8px; padding: 10px; border-radius: 12px; background: #141414; border: 1px solid #2e2e36; }
.tf-drop .t3-all { margin: 0 0 8px; }
.tf-row3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tf-step { display: flex; align-items: center; justify-content: space-between; height: 44px; border-radius: 12px; background: #181818; padding: 0 6px; }
.tf-step button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #262628; color: #fff; display: grid; place-items: center; cursor: pointer; }
.tf-step button:disabled { opacity: .35; }
.tf-step b { font-size: 18px; }
.tf-cap { height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 14%, #181818); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: #c8cad4; }
.tf-cap b { font-size: 18px; color: #fff; }
.tf-sum { margin-top: 8px; display: flex; align-items: flex-start; gap: 6px; font-size: 11.5px; line-height: 1.5; color: #9a9db0; }
.tf-sum .material-icons-outlined { font-size: 15px; color: var(--primary); margin-top: 1px; }
.tf-sum.warn { color: #e0a84a; }
.tf-sum.warn .material-icons-outlined { color: #e0a84a; }
/* Турнир: қадамдық құру, кері санақ, ұпай кестесі */
.tf-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 2px 0 8px; }
.tf-sp { border: 0; background: transparent; color: #6c6f84; font-family: inherit; font-size: 10.5px; display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; position: relative; }
.tf-sp i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12.5px; background: #262628; color: #9a9db0; }
.tf-sp i .material-icons-round { font-size: 16px; }
.tf-sp.on { color: #fff; }
.tf-sp.on i { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 25%, transparent); }
.tf-sp.done { color: #c8cad4; }
.tf-sp.done i { background: #2f5e3a; color: #fff; }
.tf-fmt { margin-bottom: 8px; }
.tf-fmt.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, #181818); }
.tf-fmt > .material-icons-round:last-child { color: var(--primary); }
.tf-step-w b { font-size: 15px; }
.tf-preview { margin-top: 14px; padding: 14px; border-radius: 14px; background: #181818; border: 1px solid color-mix(in srgb, var(--primary) 35%, #2e2e36); }
.tf-pv-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tf-pv-h img { width: 40px; height: 40px; }
.tf-pv-h b { display: block; font-size: 15px; }
.tf-pv-h small { font-size: 11.5px; color: #9a9db0; }
.tf-pv-r { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid #2c2c33; font-size: 12px; }
.tf-pv-r span { color: #8a8d9c; flex-shrink: 0; }
.tf-pv-r b { font-weight: 600; text-align: right; }
.t3-cd { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 12px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--primary) 16%, #1e1e1e); font-size: 13px; color: #c8cad4; }
.t3-cd .material-icons-outlined { font-size: 18px; color: var(--primary); }
.t3-cd b { color: #fff; }
.sd-head, .sd-row { display: grid; grid-template-columns: 28px 1fr 52px 44px; align-items: center; gap: 8px; }
.sd-head { margin-top: 12px; padding: 0 0 6px; font-size: 10.5px; color: #8a8d9c; text-transform: uppercase; border-bottom: 1px solid #2c2c33; }
.sd-row { padding: 8px 0; border-bottom: 1px solid #26262c; font-size: 12.5px; }
.sd-row.me { background: color-mix(in srgb, var(--primary) 12%, transparent); border-radius: 8px; }
.sd-n { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #262628; font-weight: 700; font-size: 11.5px; }
.sd-n.top { background: rgba(255, 210, 77, .18); color: #ffd24d; }
.sd-p { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sd-p .du-av { width: 26px; height: 26px; font-size: 10px; }
.sd-p b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-fire { font-style: normal; font-size: 11px; }
.sd-row > b { text-align: right; font-size: 14px; }
.sd-me { display: grid; grid-auto-flow: column; gap: 8px; margin-top: 12px; }
.sd-me div { background: rgba(0,0,0,.2); border-radius: 10px; padding: 8px 4px; }
.sd-me b { display: block; font-size: 17px; }
.sd-me small { font-size: 10px; color: #9a9db0; }
/* Батл */
.bt-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bt-stats div { background: linear-gradient(180deg, #26262c, #1e1e22); border: 1px solid #2f2f38; border-radius: 14px; padding: 12px 6px; text-align: center; box-shadow: 0 3px 0 #0c0c10; }
.bt-stats b { display: block; font-size: 19px; }
.bt-stats b i { font-style: normal; color: #6c6f84; margin: 0 2px; }
.bt-stats small { font-size: 10.5px; color: #9a9db0; }
.bt-play { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bt-btn { border: 0; border-radius: 16px; padding: 16px 12px; color: #fff; font-family: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: transform .08s; }
.bt-btn:active { transform: translateY(3px); }
.bt-btn .material-icons-round, .bt-btn .material-icons-outlined { font-size: 28px; }
.bt-btn b { font-size: 14px; }
.bt-btn small { font-size: 11px; opacity: .85; }
.bt-btn.rand { background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 75%, #fff 10%), color-mix(in srgb, var(--primary) 70%, #000)); box-shadow: 0 4px 0 color-mix(in srgb, var(--primary) 40%, #000); }
.bt-btn.friend { background: linear-gradient(160deg, #e2574c, #a8322a); box-shadow: 0 4px 0 #6e1f19; }
.bt-inv { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 8px; border-radius: 14px; background: #1e1e1e; border: 1px solid #2c2c33; }
.bt-inv b { display: block; font-size: 13.5px; }
.bt-inv small { font-size: 11px; color: #8a8d9c; }
.bt-inv.wait .material-icons-outlined { color: #e0a84a; }
.bt-yes { border: 0; height: 34px; padding: 0 12px; border-radius: 10px; background: var(--primary); color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.bt-no { border: 0; width: 34px; height: 34px; border-radius: 10px; background: #2a2a2e; color: #9a9db0; display: grid; place-items: center; cursor: pointer; }
.bt-re { border: 0; background: transparent; color: #6c6f84; cursor: pointer; padding: 0 0 0 6px; }

/* ===== Батл v2 ===== */
.bt-seg { margin: 12px 0 0; }
.bt-gvg { margin-top: 12px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 22%, #1e1e22), #1e1e22 70%); border: 1px solid color-mix(in srgb, var(--primary) 35%, #2f2f38); box-shadow: 0 4px 0 #0c0c10; }
.bt-gvg-h { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; color: #c8cad4; text-transform: uppercase; letter-spacing: .4px; }
.bt-gvg-h .material-icons-outlined { font-size: 17px; color: var(--primary); }
.bt-gvg-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.bt-gvg-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bt-gvg-t:last-child { align-items: flex-end; text-align: right; }
.bt-gvg-t b { font-size: 13.5px; }
.bt-gvg-t span { font-size: 26px; font-weight: 900; }
.bt-gvg-t.me span { color: color-mix(in srgb, var(--primary) 55%, #fff); }
.bt-gvg-vs { font-weight: 900; font-style: italic; color: #e2574c; font-size: 16px; padding: 0 10px; }
.bt-gvg-bar { margin-top: 10px; height: 8px; border-radius: 5px; background: #e2574c55; overflow: hidden; }
.bt-gvg-bar i { display: block; height: 100%; background: var(--primary); }
.bt-gvg-s { margin-top: 8px; font-size: 11px; color: #9a9db0; }
.bt-play3 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bt-btn.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; padding: 14px 16px; }
.bt-btn.wide b { margin-right: auto; }
.bt-btn.wide small { display: none; }
.bt-btn.other { background: linear-gradient(160deg, #f0a43a, #b8701a); box-shadow: 0 4px 0 #7a4a10; }
.bt-h { display: flex; align-items: center; gap: 10px; padding: 12px; margin-top: 10px; border-radius: 14px; background: #1e1e1e; border-left: 4px solid; }
.bt-h.w { border-color: #5cb36d; }
.bt-h.l { border-color: #e06b5b; }
.bt-h-res { position: absolute; left: -9999px; }
.bt-h b { display: block; font-size: 13.5px; }
.bt-h small { font-size: 11px; color: #8a8d9c; }
.bt-h-sc { font-size: 17px; font-weight: 900; }
.bt-h.w .bt-h-sc { color: #5cb36d; }
.bt-h.l .bt-h-sc { color: #e06b5b; }
.bt-h-sc i { font-style: normal; color: #6c6f84; margin: 0 2px; }

/* ===== Турнир беті: баннерлер / жинақы тақырып ===== */
.th-banners { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 0 #0c0c10, 0 10px 24px rgba(0,0,0,.35); }
.th-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.th-track::-webkit-scrollbar { height: 0; }
.th-slide { flex: 0 0 100%; aspect-ratio: 16 / 9; background-size: cover; background-position: center; scroll-snap-align: center; }
.th-copy { position: absolute; left: 16px; right: 16px; bottom: 16px; pointer-events: none; }
.th-copy b { display: block; font-size: 21px; font-weight: 800; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.th-copy small { font-size: 12px; color: #e0e0e6; }
.th-dots { position: absolute; right: 14px; bottom: 14px; display: flex; gap: 4px; }
.th-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.45); }
.th-dots i.on { width: 14px; background: #fff; }
.th-plain { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 26%, #1e1e22), #1e1e22 75%); border: 1px solid color-mix(in srgb, var(--primary) 40%, #2f2f38); box-shadow: 0 4px 0 #0c0c10; }
.th-plain img { width: 56px; height: 56px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.th-plain b { display: block; font-size: 18px; font-weight: 800; }
.th-plain small { font-size: 12px; color: #c8cad4; }

/* ===== Кестедегі чемпион ===== */
.br-col.champ-col { width: 132px; }
.br-champ { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 8px 10px; border-radius: 16px; background: radial-gradient(ellipse at top, #5a4818, #2a2416 70%); border: 1.5px solid #c99a2a; box-shadow: 0 0 22px rgba(242, 194, 48, .25), 0 4px 0 #0c0c10; overflow: hidden; }
.br-champ.empty { filter: grayscale(.8) opacity(.55); }
.br-crown { position: absolute; top: 4px; color: #ffd24d; }
.br-crown .material-icons-round { font-size: 22px; }
.br-cav { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; box-shadow: 0 0 0 3px #ffd24d, 0 6px 14px rgba(0,0,0,.5); }
.br-cav.q { background: #34343c; }
.br-champ b { margin-top: 6px; font-size: 14px; }
.br-champ small { font-size: 9.5px; letter-spacing: 1.5px; color: #ffd24d; font-weight: 700; }
.br-champ img { width: 108px; margin-top: 4px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }

/* ===== Басты беттегі чемпион баннері ===== */
.cb-slide { position: relative; display: flex; align-items: center; background: radial-gradient(ellipse at 80% 40%, #6a5420, #241e10 60%, #121212); text-align: left; padding: 0 0 0 16px; overflow: hidden; }
.cb-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 2px; max-width: 58%; color: #fff; }
.cb-copy small { font-size: 9.5px; font-weight: 800; letter-spacing: 1px; color: #ffd24d; }
.cb-copy b { font-family: "Oswald", "Roboto", sans-serif; font-size: 22px; line-height: 1.05; text-transform: uppercase; }
.cb-copy em { font-style: normal; font-size: 11px; color: #e0d4b0; }
.cb-av { position: absolute; right: 26px; top: 14px; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; box-shadow: 0 0 0 3px #ffd24d; z-index: 1; }
.cb-slide img { position: absolute; right: 2px; bottom: 6px; width: 120px; z-index: 2; filter: drop-shadow(0 6px 8px rgba(0,0,0,.6)); }

/* ===== Турнир формасы: баннерлер ===== */
.tf-hint { font-weight: 400; color: #8a8d9c; font-size: 11px; }
.tf-bans { display: flex; gap: 8px; }
.tf-ban { position: relative; width: 92px; height: 58px; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid #2e2e36; }
.tf-ban button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; cursor: pointer; }
.tf-ban button .material-icons-round { font-size: 15px; }
.tf-ban.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #181818; border: 1.5px dashed #3a3a42; color: #9a9db0; font-family: inherit; font-size: 11px; cursor: pointer; }
.tf-ban.add .material-icons-outlined { font-size: 22px; color: var(--primary); }
.tf-pv-ban { height: 90px; border-radius: 10px; margin-bottom: 10px; background-size: cover; background-position: center; }
.banner-slide.cb-slide img { position: absolute; width: 118px; height: auto; object-fit: contain; right: 4px; bottom: 8px; top: auto; display: block; }
.banner-slide.cb-slide .cb-av { right: 32px; top: 12px; }

/* ===== Топ соғысы ===== */
.ab-icons { display: flex; }
.bt-btn.rand.wide { width: 100%; flex-direction: row; align-items: center; gap: 12px; }
.bt-btn.rand.wide small { display: block; margin-right: auto; }
.bt-btn.rand.wide b { margin: 0; }
.bt-btn.rand.wide > span:nth-child(2) { display: none; }
.wr-card { width: 100%; display: block; text-align: left; color: #fff; font-family: inherit; cursor: pointer; padding: 14px; border-radius: 18px; border: 1px solid #5a2a24; background: radial-gradient(ellipse at top, #4a1f1a, #1e1e22 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 4px 0 #0c0c10, 0 10px 24px rgba(0,0,0,.35); }
.wr-card.none { display: flex; align-items: center; gap: 12px; border-color: #2f2f38; background: #1e1e1e; cursor: default; }
.wr-card.none .material-icons-outlined { font-size: 30px; color: #6c6f84; }
.wr-card.none b { display: block; font-size: 14px; }
.wr-card.none small { font-size: 11.5px; color: #8a8d9c; }
.wr-top { display: flex; justify-content: space-between; align-items: center; }
.wr-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.wr-badge .material-icons-round { font-size: 15px; }
.wr-badge.battle { background: rgba(224, 87, 76, .22); color: #ff8a70; }
.wr-badge.prep { background: rgba(224, 168, 74, .2); color: #e0a84a; }
.wr-badge.ended { background: rgba(255, 210, 77, .18); color: #ffd24d; }
.wr-time { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #c8cad4; }
.wr-time .material-icons-outlined { font-size: 15px; }
.wr-vs { display: flex; align-items: center; margin-top: 12px; }
.wr-side { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wr-side.r { align-items: flex-end; text-align: right; }
.wr-side b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.wr-st { font-size: 26px; font-weight: 900; color: #ffd24d; }
.wr-side small { font-size: 11px; color: #9a9db0; }
.wr-x { display: flex; flex-direction: column; align-items: center; padding: 0 8px; }
.wr-x img { width: 40px; height: 40px; }
.wr-x small { font-size: 10px; color: #9a9db0; font-weight: 700; }
.wr-me { margin-top: 10px; font-size: 12px; color: #e6e6e6; }
.wr-me i { font-style: normal; margin-left: 2px; }
.wr-me i.used { filter: grayscale(1); opacity: .35; }
.wr-sub { margin-top: 8px; font-size: 11px; color: #9a9db0; }
.wr-hero { margin: 12px 15px 0; padding: 16px; border-radius: 18px; background: radial-gradient(ellipse at top, #4a1f1a, #1e1e22 70%); border: 1px solid #5a2a24; box-shadow: 0 4px 0 #0c0c10; }
.wr-vs.big .wr-st { font-size: 32px; }
.wr-bar { margin-top: 12px; height: 8px; border-radius: 5px; background: #e2574c66; overflow: hidden; }
.wr-bar i { display: block; height: 100%; background: var(--primary); }
.wr-hint { margin: 10px 15px 0; display: flex; gap: 6px; font-size: 12px; color: #c8cad4; }
.wr-hint .material-icons-outlined { font-size: 17px; color: #ff8a70; }
.wr-tabs { margin-top: 12px; }
.wr-base { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; border: 1px solid #2c2c33; background: #1e1e1e; color: #fff; font-family: inherit; text-align: left; }
button.wr-base[data-watk] { cursor: pointer; border-color: #5a2a24; }
.wr-base.down { opacity: .55; }
.wr-base.me { border-color: color-mix(in srgb, var(--primary) 60%, #2c2c33); }
.wr-pos { width: 24px; height: 24px; border-radius: 7px; background: #262628; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; flex-shrink: 0; }
.wr-bn { flex: 1; min-width: 0; }
.wr-bn b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wr-bn small { font-size: 11px; color: #8a8d9c; }
.wr-bn small i { font-size: 11px; }
.wr-stars i { font-style: normal; font-size: 16px; color: #3a3a42; }
.wr-stars i.on { color: #ffd24d; text-shadow: 0 0 6px rgba(255,210,77,.5); }
.wr-stars.sm i { font-size: 12px; }
.wr-bn small i { color: #3a3a42; font-style: normal; }
.wr-bn small i.on { color: #ffd24d; }
.wr-atk { width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(180deg, #f08a7e, #c9483c); display: grid; place-items: center; flex-shrink: 0; }
.wr-atk .material-icons-round { font-size: 18px; }
.wr-done { color: #5cb36d; }
.wr-atks { display: flex; gap: 4px; }
.wr-atks em { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 6px; border-radius: 7px; background: #262628; color: #6c6f84; }
.wr-atks em.s3 { background: rgba(255,210,77,.2); color: #ffd24d; }
.wr-atks em.s2 { background: rgba(92,179,109,.18); color: #5cb36d; }
.wr-atks em.s1 { background: rgba(224,168,74,.18); color: #e0a84a; }
.wr-log { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #26262c; font-size: 12.5px; }
.wr-log small { color: #8a8d9c; width: 34px; text-align: right; }
.wr-hres { width: 30px; font-size: 11px; font-weight: 800; }
.wr-hres.w { color: #5cb36d; }
.wr-hres.l { color: #e06b5b; }
.wr-atk-p { display: flex; align-items: center; gap: 12px; margin: 4px 0 12px; }
.wr-atk-p b { display: block; font-size: 15px; }
.wr-atk-p small { font-size: 12px; color: #9a9db0; }
.wr-from { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #181818; font-size: 13px; }
.wr-from .material-icons-outlined { color: var(--primary); }
.wr-from span { margin-left: auto; font-size: 11.5px; color: #9a9db0; }
.wr-found { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #1f2e24; border: 1px solid #2f5a3a; }
.wr-found .material-icons-outlined { font-size: 26px; color: #5cb36d; }
.wr-found b { display: block; font-size: 13.5px; }
.wr-found small { font-size: 11.5px; color: #a9c7b6; }
.ent-chip:disabled { opacity: .35; }
/* Оқушы профиліндегі деңгей (басылмайды) */
.sp-lvl2 { position: relative; display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px 9px; border-radius: 12px; background: #1e1e1e; border: 1px solid color-mix(in srgb, var(--lc) 40%, #2c2c33); overflow: hidden; }
.sp-lvl2 span { font-size: 15px; }
.sp-lvl2 b { font-size: 13px; color: var(--lc); }
.sp-lvl2 em { font-style: normal; font-size: 11px; color: #8a8d9c; }
.sp-lvl2 i { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--lc); }

/* Турнир формасы: барлық қадамда бірдей биіктік, батырмалар төменде */
.sheet:has(.tf-steps) { height: calc(100% - 64px); max-height: none; display: flex; flex-direction: column; }
.sheet:has(.tf-steps) > .sheet-actions:last-child { margin-top: auto !important; padding-top: 14px; }

/* I4U монета */
img.coin { width: 1.05em; height: 1.05em; vertical-align: -0.15em; margin-right: 3px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.cn { display: inline-block; width: 18px; height: 18px; margin: 0 1px; }
.cn img { width: 100%; height: 100%; filter: grayscale(1) brightness(.45); opacity: .55; }
.cn.on img { filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); opacity: 1; }
.wr-stars.sm .cn { width: 13px; height: 13px; }
.wr-st { display: inline-flex; align-items: center; gap: 4px; }
.wr-st img.coin { width: 26px; height: 26px; }
.wr-vs.big .wr-st img.coin { width: 30px; height: 30px; }
.wr-by { margin-top: 10px; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.25); font-size: 12px; color: #e0e0e6; }
.wr-by .material-icons-outlined { font-size: 17px; color: #ff8a70; }

/* Соғыс картасы (Clash секілді) */
.wr-map { position: relative; display: grid; grid-template-columns: 1fr 1fr; row-gap: 8px; padding: 10px 6px 20px; border-radius: 18px; background: radial-gradient(circle at 30% 20%, #3a2a1c, #1b1612 70%); border: 1px solid #4a3420; }
.wr-map::before { content: ""; position: absolute; left: 50%; top: 30px; bottom: 30px; width: 2px; margin-left: -1px; background: repeating-linear-gradient(#6a4a2a 0 8px, transparent 8px 16px); }
.wr-node { position: relative; z-index: 1; border: 0; background: transparent; color: #fff; font-family: inherit; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; cursor: default; }
.wr-node.l { transform: translateX(-6px); }
.wr-node.r { transform: translateX(6px) translateY(34px); }
.wr-node[data-watk] { cursor: pointer; }
.wr-ring { position: relative; width: 70px; height: 70px; border-radius: 50%; padding: 4px; background: linear-gradient(180deg, #8a6a3a, #4a3420); box-shadow: 0 5px 0 #2a1d10, 0 8px 16px rgba(0,0,0,.5); }
.wr-node[data-watk] .wr-ring { background: linear-gradient(180deg, #f08a7e, #a8322a); box-shadow: 0 5px 0 #6e1f19, 0 0 18px rgba(226, 87, 76, .45); }
.wr-node.down .wr-ring { filter: grayscale(.7) brightness(.7); }
.wr-av { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; border: 2px solid rgba(255,255,255,.15); }
.wr-node.locked .wr-av .material-icons-round { font-size: 26px; color: #8a8d9c; }
.wr-num { position: absolute; left: -4px; top: -4px; width: 24px; height: 24px; border-radius: 50%; background: #1e1e22; border: 2px solid #8a6a3a; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.wr-coins { display: flex; }
.wr-nm { font-size: 11px; color: #e0d4b0; }

/* Монета белгісі, дүкен */
.ab-coin { border: 0; background: transparent; padding: 0; cursor: pointer; }
.coin-chip { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 10px 0 6px; border-radius: 15px; background: rgba(0,0,0,.28); color: #ffd54f; font-size: 13px; }
.coin-chip img.coin { width: 20px; height: 20px; }
.shop { padding-top: 12px; }
.shop-bal { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: radial-gradient(ellipse at 20% 30%, #5a4818, #1e1e22 70%); border: 1px solid #6a5420; box-shadow: 0 4px 0 #0c0c10; }
.shop-bal img { width: 56px; height: 56px; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.shop-bal small { font-size: 12px; color: #e0d4b0; }
.shop-bal b { display: block; font-size: 28px; font-weight: 900; color: #ffd54f; }
.shop-how { margin-left: auto; border: 0; height: 34px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-family: inherit; font-size: 12px; cursor: pointer; }
.shop-cats { padding: 12px 0 4px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.shop-item { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px; border-radius: 16px; border: 1px solid #2f2f38; background: linear-gradient(180deg, #26262c, #1e1e22); box-shadow: 0 3px 0 #0c0c10; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.shop-item.own { border-color: #2f5a3a; }
.shop-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, #1e1e22); color: var(--c); margin-bottom: 4px; }
.shop-ic .material-icons-round { font-size: 26px; }
.shop-item b { font-size: 13.5px; }
.shop-item small { font-size: 11px; color: #9a9db0; line-height: 1.35; min-height: 30px; }
.shop-price { margin-top: 6px; display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 800; color: #ffd54f; }
.shop-price.no { color: #8a8d9c; }
.shop-price.no img { filter: grayscale(1); }
.shop-price.own { color: #5cb36d; font-size: 12px; }
.shop-price.own .material-icons-round { font-size: 16px; }
.coin-log { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #26262c; font-size: 12.5px; }
.coin-log span { flex: 1; }
.coin-log small { color: #8a8d9c; }
.coin-log b { width: 50px; text-align: right; }
.coin-rule { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid #2c2c33; font-size: 13px; }
.coin-rule .material-icons-outlined { color: var(--primary); }
.coin-rule span { flex: 1; }
.coin-rule b { color: #ffd54f; white-space: nowrap; }
/* Көк монета: мәтін түстері */
.coin-chip, .shop-price { color: #a9b4ff; }
.shop-bal b { color: #c3cbff; }
.shop-bal { background: radial-gradient(ellipse at 20% 30%, #2a3170, #1e1e22 70%); border-color: #3b4089; }
.coin-rule b { color: #a9b4ff; }
.shop-bal small { color: #c8cad4; }
/* Staff: Топ соғысы хабы */
.wr-grp { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 10px; border-radius: 16px; border: 1px solid #2f2f38; background: linear-gradient(180deg, #26262c, #1e1e22); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 3px 0 #0c0c10; }
.wr-grp > .material-icons-outlined { font-size: 26px; color: var(--primary); }
.wr-grp b { display: block; font-size: 14px; }
.wr-grp small { font-size: 11.5px; color: #8a8d9c; }
.tour .wr-card { margin-bottom: 10px; }
.wr-go { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; height: 32px; padding: 0 12px; border: 0; border-radius: 10px; font: 700 12.5px inherit; font-family: inherit; color: #fff; background: linear-gradient(180deg, #a07cff, var(--primary)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 0 #4b2f8f; cursor: pointer; }
.wr-go .material-icons-round { font-size: 16px; }
.wr-go:active { transform: translateY(2px); box-shadow: 0 1px 0 #4b2f8f; }
.wr-go:disabled { opacity: .4; cursor: default; }
/* Staff: Магазин қатарлары */
.so-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; border: 1px solid #2f2f38; background: linear-gradient(180deg, #26262c, #1e1e22); box-shadow: 0 3px 0 #0c0c10; color: #fff; font-family: inherit; text-align: left; }
button.so-row { cursor: pointer; }
.so-row.off { opacity: .5; }
.so-row b { display: block; font-size: 13.5px; font-weight: 600; }
.so-row small { display: block; font-size: 11.5px; color: #8a8d9c; }
.so-row em { display: inline-block; margin-top: 4px; font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); padding: 2px 8px; border-radius: 99px; }
.so-row .shop-ic { flex-shrink: 0; }
.so-row .shop-price { margin: 0; flex-shrink: 0; }
/* Турнир формасы: тұрақты биіктік, ішкі айналдыру, бірдей өлшемдер */
.sheet:has(.tf-steps) { padding-bottom: 14px; }
.sheet:has(.tf-steps) > * { flex-shrink: 0; }
.sheet:has(.tf-steps) > .tf-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin: 0 -4px; padding: 0 4px 6px; }
.sheet:has(.tf-steps) > .sheet-actions:last-child { margin-top: 0 !important; padding-top: 12px; border-top: 1px solid #2a2a30; }
.tf-body .ef-label:first-child { margin-top: 6px; }
.tf-fmts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tf-fmt3 { height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 14px; border: 1px solid #2e2e36; background: linear-gradient(180deg, #202024, #181818); box-shadow: 0 3px 0 #0c0c10; color: #c8cad4; font-family: inherit; cursor: pointer; }
.tf-fmt3 .material-icons-outlined { font-size: 26px; color: #8a8d9c; }
.tf-fmt3 b { font-size: 12.5px; font-weight: 600; }
.tf-fmt3.on { color: #fff; border-color: var(--primary); background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 26%, #202024), color-mix(in srgb, var(--primary) 10%, #181818)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 #2c1d55; }
.tf-fmt3.on .material-icons-outlined { color: var(--primary); }
.tf-row3 { margin-top: 2px; }
.tf-step, .tf-cap { height: 44px; }
.tf-prize { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tf-pz { height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; border: 1px solid #2e2e36; background: #181818; color: #c8cad4; font-family: inherit; font-size: 15px; cursor: pointer; }
.tf-pz img.coin { width: 18px; height: 18px; }
.tf-pz.on { border-color: var(--primary); color: #fff; background: color-mix(in srgb, var(--primary) 16%, #181818); }
.tf-podium { margin-top: 8px; border-radius: 12px; background: #181818; padding: 4px 12px; }
.tf-podium > div { display: flex; align-items: center; gap: 6px; padding: 8px 0; font-size: 12.5px; border-bottom: 1px solid #26262c; }
.tf-podium > div:last-child { border-bottom: 0; }
.tf-podium span { flex: 1; color: #c8cad4; }
.tf-podium b { display: inline-flex; align-items: center; gap: 4px; color: #a9b4ff; }
.tf-podium b img.coin { width: 15px; height: 15px; }
.tf-podium small { font-size: 11px; color: #e9a825; }
.tf-from { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 12px; border-radius: 12px; background: #181818; font-size: 13px; }
.tf-from .material-icons-outlined { color: var(--primary); font-size: 20px; }
.tf-from span { margin-left: auto; font-size: 11px; color: #8a8d9c; }
.tf-bans .tf-ban { width: 96px; height: 60px; }
/* Ерекше плиткалар: Кубоктар (алтын) / Топтар шайқасы (қызғылт сары) — 3D жарқыл + тірі белгі */
.service-tile.hot { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 #0c0c10; }
.service-tile.hot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, var(--hc), transparent 55%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.service-tile.hot-cup { --hc: #E9A825; background: radial-gradient(circle at 50% 30%, rgba(233,168,37,.20), var(--card) 62%); }
.service-tile.hot-war { --hc: #F07B3F; background: radial-gradient(circle at 50% 30%, rgba(240,123,63,.20), var(--card) 62%); }
.service-tile.hot img { width: 30px; height: 30px; filter: drop-shadow(0 3px 6px color-mix(in srgb, var(--hc) 45%, transparent)); }
.sv-badge { position: absolute; top: 8px; right: 8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; font-style: normal; font-size: 10px; font-weight: 800; line-height: 18px; text-align: center; color: #2a1d02; background: var(--hc); }
.sv-badge.live { color: #fff; background: #E2574C; letter-spacing: .4px; animation: svPulse 1.6s ease-in-out infinite; }
@keyframes svPulse { 50% { box-shadow: 0 0 0 4px rgba(226,87,76,.25); } }
.tf-from b { white-space: nowrap; }
.tf-from span { flex: 1; text-align: right; }
/* Хабарламалар: оқылмағаны */
.push-row.unread { background: color-mix(in srgb, var(--primary) 10%, transparent); border-radius: 14px; }
.push-row.unread .push-title::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: #E2574C; vertical-align: middle; }
/* Парақша мазмұны ауысқанда анимация жоқ */
.sheet.still { animation: none; }
.sheet:has(.tf-steps) *, .sheet:has(.tf-steps) *:active { transition: none !important; }
.sheet:has(.tf-steps) .tf-fmt3:active, .sheet:has(.tf-steps) .ent-chip:active, .sheet:has(.tf-steps) .tf-pz:active, .sheet:has(.tf-steps) .tf-check:active { transform: none; }
/* Турнир карточкасы: баннер қойылса — белбеудің орнына баннер */
.t3-card.has-ban { flex-wrap: wrap; padding-top: 10px; }
.t3-ban { flex: 0 0 100%; height: 112px; border-radius: 12px; background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.t3-ban.off { filter: grayscale(1) opacity(.5); }
.t3-card.has-ban .t3-body { flex: 1; min-width: 0; }
/* Онлайн батл */
.dv-av { position: relative; display: inline-flex; }
.dv-av i { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid #1e1e1e; background: #6c6f84; display: none; }
.dv-av.on i { display: block; background: #4CC96B; }
.dv-seen { display: block; font-size: 11px; color: #8a8d9c; }
.dv-seen.on { color: #4CC96B; }
.dv-on-n { color: #4CC96B; font-weight: 600; }
#dvAsync, #dvLive { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#dvAsync .material-icons-outlined, #dvLive .material-icons-round { font-size: 18px; }
.btn:disabled { opacity: .4; cursor: default; }
.lv-wait { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 4px; text-align: center; }
.lv-av { position: relative; margin-bottom: 6px; }
.lv-av i { position: absolute; right: 2px; bottom: 2px; width: 14px; height: 14px; border-radius: 50%; border: 3px solid #1e1e1e; background: #4CC96B; }
.lv-wait > b { font-size: 16px; }
.lv-wait > small { font-size: 12px; color: #8a8d9c; }
.lv-ring { width: 96px; height: 96px; margin: 14px 0 6px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px solid var(--primary); box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 18%, transparent); animation: lvPulse 1.4s ease-in-out infinite; }
.lv-ring span { font-size: 30px; font-weight: 800; line-height: 1; }
.lv-ring small { font-size: 11px; color: #8a8d9c; }
@keyframes lvPulse { 50% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--primary) 6%, transparent); } }
.du-live { display: inline-flex; align-items: center; gap: 5px; margin-bottom: 4px; padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 800; letter-spacing: .5px; color: #4CC96B; background: rgba(76,201,107,.14); }
.du-live i { width: 6px; height: 6px; border-radius: 50%; background: #4CC96B; animation: svDot 1.2s ease-in-out infinite; }
@keyframes svDot { 50% { opacity: .3; } }
.du-mid { display: flex; flex-direction: column; align-items: center; }
.du-opst { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #8a8d9c; }
.du-opst .material-icons-outlined, .du-opst .material-icons-round { font-size: 16px; }
.du-opst.done { color: #4CC96B; }
/* Батл шақыру: тұрақты биіктік — тізім ортада айналады, батырмалар әрдайым төменде */
.sheet:has(#dvLive) { height: calc(100% - 64px); max-height: none; overflow: hidden; display: flex; flex-direction: column; padding-bottom: 14px; }
.sheet:has(#dvLive) > * { flex-shrink: 0; }
.sheet:has(#dvLive) > .pick-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
.sheet:has(#dvLive) > .sheet-actions { margin-top: 0; padding-top: 12px; border-top: 1px solid #2a2a30; }
.sheet:has(#dvLive) > .tf-sum { margin: 10px 0 10px; }
/* ====== Дүкен v2 ====== */
.shop-bal-r { margin-left: auto; display: flex; flex-direction: column; gap: 6px; }
.shop-bal-r .shop-how { margin: 0; display: inline-flex; align-items: center; gap: 4px; height: 30px; font-weight: 600; background: linear-gradient(180deg, #7d8cf0, #5B6EC2); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 0 #2e3576; }
.shop-bal-r .shop-how.ghost { background: rgba(255,255,255,.1); box-shadow: none; font-weight: 500; }
.shop-bal-r .material-icons-round { font-size: 16px; }
.sh-tabs { margin-top: 12px; }
.sh-sec { margin: 20px 2px 10px; }
.sh-sec b { display: block; font-size: 16px; font-weight: 700; }
.sh-sec small { font-size: 11.5px; color: #8a8d9c; }
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sh-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 16px 10px 10px; border-radius: 18px; border: 1px solid #2f2f38; background: linear-gradient(180deg, #27272d, #1d1d21); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 0 #0c0c10; color: #fff; font-family: inherit; cursor: pointer; }
.sh-card:active { transform: translateY(3px); box-shadow: 0 1px 0 #0c0c10; }
.sh-card b { margin-top: 8px; font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.sh-card small { font-size: 11px; line-height: 1.35; color: #9a9db0; min-height: 30px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-card.own { border-color: #2f5a3a; }
.sh-card.lock .sh-med { filter: grayscale(.85) brightness(.7); }
.sh-n { position: absolute; top: 8px; right: 8px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: #5B6EC2; border-radius: 99px; padding: 1px 7px; }
.sh-stock { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: 10px; font-weight: 700; color: #c8cad4; background: #2c2c33; border-radius: 99px; padding: 2px 7px; }
.sh-stock.low { color: #ffb4a8; background: rgba(226,87,76,.2); }
/* 3D медальон */
.sh-med { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--c) 55%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 55%, #000)); box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -3px 0 rgba(0,0,0,.25), 0 4px 0 color-mix(in srgb, var(--c) 40%, #000), 0 8px 14px rgba(0,0,0,.35); color: #fff; flex-shrink: 0; }
.sh-med .material-icons-round { font-size: 34px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.sh-med.sm { width: 42px; height: 42px; border-radius: 13px; }
.sh-med.sm .material-icons-round { font-size: 22px; }
.sh-med.lg { width: 72px; height: 72px; border-radius: 22px; }
.sh-med.xl { width: 96px; height: 96px; border-radius: 28px; }
.sh-med.xl .material-icons-round { font-size: 52px; }
/* баға батырмасы */
.sh-btn { position: relative; overflow: hidden; margin-top: 10px; width: 100%; height: 34px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 14px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #7d8cf0, #5B6EC2); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 3px 0 #2e3576; }
.sh-btn img.coin { width: 18px; height: 18px; }
.sh-btn.poor { color: #c8cad4; background: #2c2c33; box-shadow: 0 3px 0 #141418; }
.sh-btn.poor i { position: absolute; left: 0; bottom: 0; height: 3px; background: #5B6EC2; }
.sh-btn.poor img { filter: grayscale(.6); }
.sh-btn.own { color: #5cb36d; background: rgba(92,179,109,.12); box-shadow: none; font-size: 12.5px; }
.sh-btn.lock { color: #8a8d9c; background: #26262c; box-shadow: none; font-size: 12px; font-weight: 600; }
.sh-btn .material-icons-round { font-size: 16px; }
/* күннің ұсынысы */
.sh-deal { position: relative; width: 100%; margin-top: 14px; padding: 14px; border-radius: 20px; border: 1px solid #6a4a1a; background: radial-gradient(ellipse at 85% 0%, rgba(242,169,59,.35), transparent 60%), linear-gradient(180deg, #2c2418, #1d1d21); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 0 #0c0c10; color: #fff; font-family: inherit; text-align: left; cursor: pointer; display: block; }
.sh-deal-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; color: #2a1d02; background: #F2A93B; padding: 3px 9px; border-radius: 99px; }
.sh-deal-tag .material-icons-round { font-size: 14px; }
.sh-deal-time { position: absolute; top: 16px; right: 14px; display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #e0c89a; }
.sh-deal-time .material-icons-outlined { font-size: 15px; }
.sh-deal-b { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.sh-deal-b b { display: block; font-size: 16px; }
.sh-deal-b small { display: block; font-size: 12px; color: #c8b89a; margin-top: 2px; }
.sh-deal-p { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; }
.sh-deal-p s { color: #8a8d9c; font-size: 13px; margin-right: 4px; }
.sh-deal-p b { font-size: 20px; color: #fff; display: inline; }
.sh-deal-p img.coin { width: 20px; height: 20px; }
.sh-deal .sh-btn { margin-top: 12px; background: linear-gradient(180deg, #ffc56a, #F2A93B); color: #2a1d02; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 0 #8a5a10; }
/* менің заттарым */
.sh-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; background: #1e1e22; border: 1px solid #2a2a30; }
.sh-row > span:nth-child(2) { flex: 1; min-width: 0; }
.sh-row b { display: block; font-size: 13.5px; }
.sh-row b i { font-style: normal; color: #a9b4ff; margin-left: 4px; }
.sh-row small { display: block; font-size: 11.5px; color: #8a8d9c; }
.sh-use { height: 32px; padding: 0 14px; border: 0; border-radius: 10px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #7d8cf0, #5B6EC2); box-shadow: 0 2px 0 #2e3576; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.sh-use.on { background: rgba(92,179,109,.15); color: #5cb36d; box-shadow: none; }
.sh-use .material-icons-round { font-size: 16px; }
.sh-auto { font-size: 11px; color: #8a8d9c; }
.sh-ost { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); padding: 3px 8px; border-radius: 99px; max-width: 120px; text-align: center; }
.sh-empty { font-size: 12px; color: #6c6f84; padding: 6px 2px 10px; }
.sh-active { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(92,179,109,.12); color: #5cb36d; }
.sh-active b { display: block; font-size: 13px; color: #fff; }
.sh-active small { font-size: 11px; }
/* тауар парағы */
.sh-detail { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 4px 0 8px; }
.sh-detail > b { margin-top: 12px; font-size: 19px; }
.sh-detail > small { font-size: 13px; color: #9a9db0; }
.sh-have { margin-top: 6px; font-size: 12px; font-weight: 700; color: #a9b4ff; background: rgba(91,110,194,.18); padding: 3px 10px; border-radius: 99px; }
.sh-how { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: #181818; }
.sh-how > div { display: flex; gap: 8px; padding: 5px 0; font-size: 12.5px; color: #c8cad4; }
.sh-how .material-icons-outlined { font-size: 17px; color: #5cb36d; }
.sh-need { margin-top: 10px; font-size: 12px; color: #c8cad4; }
.sh-need i { display: block; height: 6px; margin: 6px 0; border-radius: 3px; background: #2c2c33; overflow: hidden; }
.sh-need i b { display: block; height: 100%; background: #5B6EC2; }
.sh-buy { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.sh-buy img.coin { width: 18px; height: 18px; }
.sh-buy s { opacity: .6; font-weight: 400; }
.sh-prev { margin-top: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px; border-radius: 14px; background: #181818; }
.sh-prev small { font-size: 11px; color: #8a8d9c; }
.sh-logsum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.sh-logsum span { padding: 10px 12px; border-radius: 12px; background: #181818; font-size: 11.5px; color: #8a8d9c; }
.sh-logsum b { display: block; font-size: 17px; margin-top: 2px; }
/* аватар жиектері (дүкен → профиль) */
.pf-av { position: relative; display: inline-grid; place-items: center; border-radius: 50%; padding: 4px; }
.pf-av.fr-frame_gold { background: conic-gradient(#FFF1B8, #F2C230, #B57A0A, #F2C230, #FFF1B8); box-shadow: 0 0 14px rgba(242,194,48,.45); }
.pf-av.fr-frame_fire { background: conic-gradient(#FFD27A, #FF6A3D, #C2281A, #FF6A3D, #FFD27A); box-shadow: 0 0 16px rgba(255,106,61,.55); }
.pf-av.fr-frame_neon { background: conic-gradient(#B8F1FF, #4FD1FF, #2a6bff, #4FD1FF, #B8F1FF); box-shadow: 0 0 18px rgba(79,209,255,.6); }
.pf-av .du-av { border: 3px solid #1e1e1e; }
.pf-title { display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); padding: 3px 10px; border-radius: 99px; }
/* ====== Студент профилі: статистика + жетістіктер ====== */
.du-av.xl { width: 88px; height: 88px; font-size: 30px; }
.pf-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px 16px; border-radius: 20px; background: radial-gradient(ellipse at 50% 0%, rgba(91,110,194,.28), transparent 65%), var(--card); margin-bottom: 12px; }
.pf-card .user-name { margin-top: 6px; }
.pf-sub { font-size: 12px; color: #8a8d9c; text-align: center; }
.pf-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.pf-stats > * { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: 16px; border: 0; background: var(--card); color: var(--text); font-family: inherit; text-align: left; box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 3px 0 #0c0c10; }
button.pf-stats > *, .pf-stats > button { cursor: pointer; }
.pf-stats span { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.pf-stats span img { width: 24px; height: 24px; }
.pf-stats span .material-icons-round { font-size: 22px; }
.pf-stats b { font-size: 18px; font-weight: 800; line-height: 1.1; }
.pf-stats small { font-size: 11px; color: #8a8d9c; }
.pf-block { padding: 14px; border-radius: 20px; background: var(--card); margin-bottom: 12px; }
.pf-head { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; background: none; color: var(--text); font-family: inherit; padding: 0 0 12px; cursor: pointer; }
.pf-head b { font-size: 15px; }
.pf-head span { display: inline-flex; align-items: center; font-size: 12.5px; color: #a9b4ff; font-weight: 600; }
.pf-head .material-icons-round { font-size: 20px; }
.pf-ach { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
/* жетістік медалі (3D, деңгей түсімен) */
.ach-med { position: relative; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.25), 0 4px 0 var(--e), 0 8px 12px rgba(0,0,0,.35); background: radial-gradient(circle at 35% 28%, var(--l), var(--m) 55%, var(--d)); }
.ach-med .material-icons-round { font-size: 28px; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.ach-med i { position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 10px; letter-spacing: -1px; color: #FFD54F; background: #1e1e1e; border-radius: 99px; padding: 0 5px; line-height: 15px; text-shadow: 0 1px 0 #7a4e05; }
.ach-med.bronze { --l: #F6C9A0; --m: #CD7F32; --d: #8A4E1A; --e: #5e330f; }
.ach-med.silver { --l: #FFFFFF; --m: #B8C2CC; --d: #6E7A86; --e: #46505a; }
.ach-med.gold { --l: #FFF1B8; --m: #F2C230; --d: #B57A0A; --e: #7a5005; }
.ach-med.none { --l: #4a4a52; --m: #34343c; --d: #24242a; --e: #141418; color: #6c6f84; }
.ach-med.none .material-icons-round { filter: none; }
.ach-med.xl { width: 96px; height: 96px; }
.ach-med.xl .material-icons-round { font-size: 48px; }
.ach-med.xl i { font-size: 14px; line-height: 20px; bottom: -11px; }
.ach-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border: 0; background: none; color: var(--text); font-family: inherit; text-align: center; cursor: pointer; }
.ach-cell b { margin-top: 8px; font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.ach-cell small { font-size: 10.5px; color: #8a8d9c; }
.ach-cell.sm .ach-med { width: 52px; height: 52px; }
.ach-cell.sm .ach-med .material-icons-round { font-size: 26px; }
.ach-cell.sm b { font-size: 10.5px; }
.ach-max { color: #F2C230 !important; font-weight: 800; }
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; }
.ach-bar { display: block; width: 70%; height: 4px; border-radius: 2px; background: #2c2c33; overflow: hidden; }
.ach-bar u { display: block; height: 100%; background: #5B6EC2; text-decoration: none; }
.ach-sum { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 14px; padding: 10px 12px; border-radius: 12px; background: #181818; font-size: 12.5px; color: #c8cad4; }
.ach-sum b { font-size: 17px; color: #fff; }
.ach-sum > span:last-child { display: inline-flex; align-items: center; gap: 4px; }
.ach-dot { display: inline-grid; place-items: center; width: 12px; height: 12px; border-radius: 50%; font-style: normal; }
.ach-dot.bronze { background: #CD7F32; } .ach-dot.silver { background: #B8C2CC; } .ach-dot.gold { background: #F2C230; }
.ach-steps { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ach-step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #181818; opacity: .55; }
.ach-step.done, .ach-step.cur { opacity: 1; }
.ach-step.cur { box-shadow: inset 0 0 0 1px #5B6EC2; }
.ach-step .ach-dot { width: 26px; height: 26px; font-size: 12px; font-weight: 800; color: #1e1e1e; }
.ach-step .ach-dot .material-icons-round { font-size: 16px; }
.ach-step > span:nth-child(2) { flex: 1; }
.ach-step b { display: block; font-size: 13px; }
.ach-step small { font-size: 11px; color: #8a8d9c; }
.ach-step em { font-style: normal; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: #a9b4ff; }
.ach-step em img.coin { width: 15px; height: 15px; }
.pf-card, .pf-stats, .pf-block { margin-left: 16px; margin-right: 16px; }
.user-profile > .pf-card { margin-top: 16px; }
/* ====== Дүкен v3 — Free Fire үлгісі ====== */
.ff { display: grid; grid-template-columns: 66px 1fr; min-height: 100%; }
.ff-rail { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 4px; padding: 10px 6px; background: linear-gradient(180deg, #1a1a1f, #141417); border-right: 1px solid #26262c; }
.ff-rail button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border: 0; border-radius: 12px; background: transparent; color: #8a8d9c; font-family: inherit; font-size: 9.5px; font-weight: 600; line-height: 1.1; cursor: pointer; }
.ff-rail button .material-icons-round { font-size: 22px; }
.ff-rail button.on { color: #fff; background: linear-gradient(180deg, #5B6EC2, #3B4089); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 0 #22275e; }
.ff-rail button.vault { margin-top: 8px; box-shadow: 0 -9px 0 -8px #33333b; }
.ff-rail button.vault.on { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 0 #22275e; }
.ff-rail button i { position: absolute; top: 6px; right: 12px; width: 8px; height: 8px; border-radius: 50%; background: #E2574C; box-shadow: 0 0 0 2px #17171b; }
.ff-main { min-width: 0; padding: 10px 12px 24px; }
.ff-top { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.ff-bal { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 3px 0 8px; border-radius: 99px; background: #101014; border: 1px solid #2f3570; }
.ff-bal img.coin { width: 20px; height: 20px; }
.ff-bal b { font-size: 14px; color: #c3cbff; }
.ff-bal button, .ff-ic { width: 26px; height: 26px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #7dd36a, #3e9b4f); box-shadow: 0 2px 0 #1f5a2a; cursor: pointer; }
.ff-bal button .material-icons-round { font-size: 18px; }
.ff-ic { width: 32px; height: 32px; background: #24242a; box-shadow: none; color: #c8cad4; }
.ff-ic .material-icons-round { font-size: 19px; }
.ff-h { display: flex; align-items: center; gap: 6px; margin: 16px 0 8px; font-size: 13.5px; font-weight: 800; letter-spacing: .2px; text-transform: uppercase; }
.ff-h .material-icons-round { font-size: 18px; color: #FF9F1A; }
.ff-h small { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; text-transform: none; color: #8a8d9c; }
.ff-h small .material-icons-outlined { font-size: 14px; }
.ff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
/* карточка: сиректік түсі */
.ff-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 0 0 8px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--r) 55%, #000); background: linear-gradient(180deg, color-mix(in srgb, var(--r) 38%, #15151a) 0%, #1b1b20 72%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 3px 0 #0a0a0d; color: #fff; font-family: inherit; text-align: center; cursor: pointer; }
.ff-card:active { transform: translateY(2px); box-shadow: 0 1px 0 #0a0a0d; }
.ff-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--r); }
.ff-art { width: 100%; height: 86px; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--r) 45%, transparent), transparent 62%); }
.ff-art .sh-med { width: 56px; height: 56px; border-radius: 17px; }
.ff-art .sh-med .material-icons-round { font-size: 30px; }
.ff-rar { align-self: stretch; margin: 0 0 4px; padding: 2px 0; font-size: 9.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--r) 70%, transparent), transparent); }
.ff-card > b { padding: 0 6px; font-size: 12px; font-weight: 700; line-height: 1.2; min-height: 29px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ff-price { margin-top: 6px; display: inline-flex; align-items: center; gap: 3px; height: 26px; padding: 0 10px; border-radius: 8px; font-size: 13px; font-weight: 800; color: #fff; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); }
.ff-price img.coin { width: 16px; height: 16px; }
.ff-price s { margin-left: 3px; font-size: 10.5px; font-weight: 500; color: #8a8d9c; }
.ff-price.poor { color: #ff8a80; }
.ff-price.own { color: #5cb36d; font-size: 11.5px; }
.ff-price.lock { color: #8a8d9c; font-size: 11px; font-weight: 600; }
.ff-price .material-icons-round { font-size: 14px; }
.ff-card.lock .ff-art { filter: grayscale(.9) brightness(.6); }
.ff-card.own { opacity: .85; }
.ff-tag { position: absolute; z-index: 1; top: 6px; left: 0; display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 9.5px; font-weight: 900; padding: 2px 7px 2px 6px; border-radius: 0 6px 6px 0; color: #fff; }
.ff-tag.off { background: #E2373C; }
.ff-tag.new { background: #2fb34f; }
.ff-tag.lim { background: #FF9F1A; color: #2a1d02; }
.ff-tag .material-icons-outlined { font-size: 11px; }
.ff-n { position: absolute; z-index: 1; top: 6px; right: 6px; font-style: normal; font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 99px; background: #5B6EC2; color: #fff; }
.ff-n.st { background: rgba(0,0,0,.5); color: #c8cad4; }
.ff-n.st::before { content: "қалды "; font-weight: 600; }
.ff-n.st.low { color: #ffb4a8; }
/* жоғарғы ұсыныс баннері */
.ff-hero { position: relative; overflow: hidden; width: 100%; height: 150px; display: flex; align-items: center; padding: 0 12px 0 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--r) 60%, #000); background: radial-gradient(circle at 78% 50%, color-mix(in srgb, var(--r) 60%, transparent), transparent 55%), linear-gradient(120deg, #2a1608, #15151a 70%); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 4px 0 #0a0a0d; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.ff-rays { position: absolute; inset: -60%; background: repeating-conic-gradient(from 0deg at 50% 50%, color-mix(in srgb, var(--r) 22%, transparent) 0 8deg, transparent 8deg 20deg); animation: ffSpin 18s linear infinite; pointer-events: none; }
.ff-hero .ff-rays { left: 30%; }
@keyframes ffSpin { to { transform: rotate(360deg); } }
.ff-hero-t { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.ff-hero-t em { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 9.5px; font-weight: 900; letter-spacing: .6px; color: #2a1d02; background: var(--r); padding: 2px 7px; border-radius: 4px; }
.ff-hero-t em .material-icons-round { font-size: 12px; }
.ff-hero-t b { font-size: 20px; font-weight: 900; text-transform: uppercase; text-shadow: 0 2px 0 rgba(0,0,0,.5); }
.ff-hero-t small { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: #e0c89a; }
.ff-hero-t small .material-icons-outlined { font-size: 13px; }
.ff-hero-t .ff-price { margin-top: 4px; background: linear-gradient(180deg, #ffc56a, #F2A93B); color: #2a1d02; border: 0; box-shadow: 0 2px 0 #8a5a10; }
.ff-hero-av { position: relative; z-index: 1; }
/* тауар парағы: сахна */
.ff-stage { position: relative; overflow: hidden; height: 170px; margin: 0 -16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 55%, color-mix(in srgb, var(--r) 55%, transparent), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--r) 22%, #15151a), #1e1e1e); }
.ff-stage > .sh-med, .ff-stage > .pf-av, .ff-stage > .ff-try-t { position: relative; z-index: 1; }
.ff-stage > .ff-rar, .ff-stage > .ff-tag { z-index: 2; }
.ff-stage .ff-rar.big { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); margin: 0; padding: 3px 14px; border-radius: 99px; background: var(--r); font-size: 10.5px; }
.ff-stage .ff-tag { top: 12px; }
.ff-try-t { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 18px; border-radius: 14px; background: rgba(0,0,0,.4); }
.ff-tryb { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 14px; border-radius: 99px; border: 1px solid #3a3a44; background: #24242a; color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ff-tryb.on { border-color: #5B6EC2; background: rgba(91,110,194,.2); }
.ff-tryb .material-icons-outlined { font-size: 17px; }
.ff-bun { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.ff-bun > span { width: 72px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--r) 50%, #000); background: linear-gradient(180deg, color-mix(in srgb, var(--r) 28%, #15151a), #1b1b20); }
.ff-bun small { font-size: 10px; line-height: 1.2; text-align: center; color: #c8cad4; }
.ff-bun-p { margin-top: 8px; text-align: center; font-size: 12px; color: #8a8d9c; display: flex; align-items: center; justify-content: center; gap: 4px; }
.ff-bun-p b { color: #5cb36d; }
.ff-bun-p img.coin { width: 15px; height: 15px; }
/* сәттілік дөңгелегі */
.ff-spin { display: flex; flex-direction: column; align-items: center; }
.sp-wrap { position: relative; width: 232px; height: 232px; margin: 8px 0 14px; }
.sp-wheel { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #2a2a33; box-shadow: 0 0 0 3px #FF9F1A, 0 10px 24px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.15); }
.sp-lbl { position: absolute; left: 50%; top: 50%; width: 60px; margin: -9px 0 0 -30px; display: flex; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); transform-origin: 50% 50%; }
.sp-lbl img { width: 13px; height: 13px; }
.sp-hub { position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #2a1d02; background: radial-gradient(circle at 35% 30%, #FFF1B8, #F2C230 55%, #B57A0A); box-shadow: 0 4px 0 #7a5005, 0 6px 12px rgba(0,0,0,.4); z-index: 2; }
.sp-pin { position: absolute; z-index: 3; top: -10px; left: 50%; margin-left: -11px; width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 22px solid #E2373C; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.ff-go { max-width: 240px; height: 42px; font-size: 15px; background: linear-gradient(180deg, #ffc56a, #F2A93B); color: #2a1d02; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 0 #8a5a10; border: 0; font-family: inherit; cursor: pointer; }
.ff-go:disabled { filter: grayscale(1); opacity: .6; cursor: default; }
.sp-note { display: flex; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: #181818; font-size: 11.5px; line-height: 1.5; color: #9a9db0; }
.sp-note .material-icons-outlined { font-size: 17px; color: #5B6EC2; }
.sp-note b { color: #fff; }
.sp-last { margin-top: 10px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #c8cad4; }
.sp-last .material-icons-outlined { color: #FF9F1A; }
.sh-buy { white-space: nowrap; font-size: 14px; }
.ff { min-height: calc(100% + 0px); }
.ff-rail { min-height: 100%; }
/* Дүкен: бөлімдер жолағы жоғарыда, көлденең (тік емес) */
.ff { display: block; }
.ff > .ff-top { padding: 10px 12px 0; margin-bottom: 8px; }
.ff-rail { position: sticky; top: 0; z-index: 3; min-height: 0; flex-direction: row; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid #26262c; background: linear-gradient(180deg, #1a1a1f, #151518); }
.ff-rail::-webkit-scrollbar { display: none; }
.ff-rail button { flex: 0 0 auto; min-width: 64px; padding: 7px 10px 6px; font-size: 10.5px; }
.ff-rail button.vault { margin: 0 0 0 4px; box-shadow: -7px 0 0 -6px #33333b; }
.ff-rail button.vault.on { box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 0 #22275e; }
.ff-rail button i { right: 10px; }
.ff-main { padding: 12px 16px 24px; }
.ff-main > .ff-h:first-child, .ff-main > .ff-spin:first-child .ff-h { margin-top: 0; }
.ff-grid { gap: 10px; }
.ff-art { height: 96px; }
/* Дүкен: баланс app bar-дың оң жағында */
.ab-shop { display: inline-flex; align-items: center; gap: 6px; }
.ab-shop .ff-bal { height: 30px; background: rgba(0,0,0,.28); border-color: rgba(169,180,255,.35); }
.ab-shop .ff-bal button { width: 24px; height: 24px; }
.ab-shop .ff-ic { width: 30px; height: 30px; background: rgba(255,255,255,.12); color: #fff; }
.ff-rail { top: 0; }
/* ====== Тауар беті: 3D айналу ====== */
.x3d { position: relative; overflow: hidden; height: 250px; display: grid; place-items: center; perspective: 700px; touch-action: pan-y; cursor: grab; background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--r) 50%, transparent), transparent 62%), linear-gradient(180deg, color-mix(in srgb, var(--r) 26%, #141418), #1a1a1e); }
.x3d.drag { cursor: grabbing; }
.x3d.drag .x3d-obj { animation-play-state: paused; }
.x3d .ff-rays { opacity: .8; }
.x3d-rot { position: relative; z-index: 1; transform-style: preserve-3d; transition: transform .05s linear; }
.x3d-obj { position: relative; width: 124px; height: 124px; transform-style: preserve-3d; animation: x3dSpin 7s linear infinite; }
.x3d-obj > i { position: absolute; inset: 0; border-radius: 36px; background: color-mix(in srgb, var(--c) 50%, #000); }
.x3d-face { position: absolute; inset: 0; border-radius: 36px; display: grid; place-items: center; color: #fff; transform: translateZ(9px); backface-visibility: hidden; background: radial-gradient(circle at 35% 26%, color-mix(in srgb, var(--c) 45%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: inset 0 3px 0 rgba(255,255,255,.4), inset 0 -4px 0 rgba(0,0,0,.25); }
.x3d-face.back { transform: rotateY(180deg) translateZ(9px); }
.x3d-face .material-icons-round { font-size: 66px; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
@keyframes x3dSpin { from { transform: rotateX(-8deg) rotateY(0); } to { transform: rotateX(-8deg) rotateY(360deg); } }
.x3d-shadow { position: absolute; bottom: 34px; left: 50%; width: 120px; height: 18px; margin-left: -60px; border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.55), transparent 70%); animation: x3dShadow 3.5s ease-in-out infinite; }
@keyframes x3dShadow { 50% { transform: scaleX(.55); opacity: .6; } }
.x3d-hint { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; color: rgba(255,255,255,.55); }
.x3d-hint .material-icons-outlined { font-size: 14px; }
.x3d.try { cursor: default; }
.x3d.try > *:not(.ff-rays) { position: relative; z-index: 1; }
.it-body { padding-top: 14px; padding-bottom: 96px; }
.it-head { display: flex; align-items: center; gap: 6px; }
.it-rar { font-size: 10.5px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; color: #fff; background: var(--r); padding: 3px 10px; border-radius: 99px; }
.ff-tag.static { position: static; border-radius: 99px; padding: 3px 9px; }
.it-name { margin-top: 8px; font-size: 22px; font-weight: 800; }
.it-desc { margin-top: 2px; font-size: 13px; color: #9a9db0; }
.it-body .ff-tryb { margin-top: 12px; }
.it-sec { display: flex; align-items: center; gap: 6px; margin: 20px 0 8px; font-size: 14px; font-weight: 700; }
.it-sec .material-icons-outlined { font-size: 18px; color: #a9b4ff; }
.it-why { font-size: 13px; line-height: 1.55; color: #d4d6e0; padding: 12px 14px; border-radius: 14px; background: #1e1e22; }
.it-steps { margin: 0; padding: 4px 0 0; list-style: none; counter-reset: st; }
.it-steps li { counter-increment: st; position: relative; padding: 8px 0 8px 36px; font-size: 13px; color: #d4d6e0; }
.it-steps li::before { content: counter(st); position: absolute; left: 0; top: 5px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #7d8cf0, #5B6EC2); box-shadow: 0 2px 0 #2e3576; }
.it-spec { border-radius: 14px; background: #1e1e22; padding: 2px 14px; }
.it-spec > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #2a2a30; font-size: 12.5px; }
.it-spec > div:last-child { border-bottom: 0; }
.it-spec span { color: #8a8d9c; flex-shrink: 0; }
.it-spec em { font-style: normal; text-align: right; color: #fff; }
.it-foot { display: flex; align-items: center; gap: 12px; }
.it-price { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.it-price img.coin { width: 24px; height: 24px; }
.it-price b { font-size: 20px; font-weight: 900; }
.it-price s { font-size: 12px; color: #8a8d9c; }
.it-foot .ef-submit { flex: 1; }
.it-foot .ef-submit:disabled { opacity: .5; }
/* Бас куратор: тауар формасы */
.si-pv { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px; margin-top: 4px; border-radius: 14px; background: #161619; }
.si-pv small { font-size: 11px; color: #8a8d9c; }
.si-pv .ff-card { cursor: default; }
.si-icons { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.si-icons button { aspect-ratio: 1; border: 1px solid #2e2e36; border-radius: 9px; background: #181818; color: #9a9db0; display: grid; place-items: center; cursor: pointer; padding: 0; }
.si-icons button .material-icons-round { font-size: 19px; }
.si-icons button.on { border-color: var(--primary); color: #fff; background: color-mix(in srgb, var(--primary) 25%, #181818); }
.si-colors { display: flex; gap: 8px; margin-top: 10px; }
.si-colors button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 -2px 0 rgba(0,0,0,.25); }
.si-colors button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--primary); }
.si-ta { height: 70px; padding: 10px 14px; resize: none; line-height: 1.45; }
/* Профильді өзгерту */
.du-av.ph { color: transparent; }
.pe-ph { display: flex; align-items: center; gap: 16px; padding: 6px 0 4px; }
.pe-av { position: relative; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.pe-av i { position: absolute; right: -2px; bottom: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #7d8cf0, #5B6EC2); border: 3px solid #1e1e1e; color: #fff; font-style: normal; }
.pe-av i .material-icons-round { font-size: 16px; }
.pe-ph-b { display: flex; flex-direction: column; gap: 8px; }
.pe-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid #2e2e36; border-radius: 10px; background: #181818; color: #fff; font-family: inherit; font-size: 13px; cursor: pointer; }
.pe-btn .material-icons-outlined { font-size: 18px; color: #a9b4ff; }
.pe-btn.del { color: #ff8a80; }
.pe-btn.del .material-icons-outlined { color: #ff8a80; }
.pe-ro { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: #181818; font-size: 13.5px; color: #c8cad4; }
.pe-ro .material-icons-outlined { grid-row: 1 / 3; font-size: 18px; color: #6c6f84; }
.pe-ro small { font-size: 11px; color: #6c6f84; }
input[type="date"].ef-input { color-scheme: dark; }

/* Өткен апта чемпионы: оның өз профиль фотосы (жоқ болса — аватары) алтын сақинада */
.champ-pic { display: grid; place-items: center; width: 140px; }
.champ-ava { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-family: "Oswald", "Roboto", sans-serif; font-size: 38px; font-weight: 700; color: #fff; box-shadow: 0 0 0 4px #1e1e1e, 0 0 0 7px #d4a72c, 0 0 26px rgba(212,167,44,.45), 0 10px 22px rgba(0,0,0,.5); }
.champ-crown { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffe08a, #d4a72c 55%, #8a6510); box-shadow: 0 3px 0 #5e4508, 0 4px 10px rgba(0,0,0,.5); }
.champ-crown .material-icons-round { font-size: 19px; color: #3a2a06; }
.champ-pic .champ-ava { margin-top: 26px; }
/* Монета ережелері: мәтін солға тураланады */
.coin-rule > .material-icons-outlined { flex: 0 0 auto; }
.coin-rule > span:not([class*="material"]) { flex: 1; text-align: left; }
.coin-rule b { display: inline-flex; align-items: center; gap: 3px; }
.coin-rule b img.coin { width: 16px; height: 16px; }
/* ====== Құттықтау (3D) ====== */
.cel { position: absolute; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(6,8,20,0); transition: background .25s; }
.cel.in { background: rgba(6,8,20,.72); backdrop-filter: blur(3px); }
.cel.out { background: rgba(6,8,20,0); }
.cel-card { position: relative; overflow: hidden; width: 100%; max-width: 310px; padding: 22px 18px 18px; border-radius: 26px; text-align: center; color: #fff; background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--r) 45%, transparent), transparent 60%), linear-gradient(180deg, #232845, #16161c); border: 1px solid color-mix(in srgb, var(--r) 60%, #000); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 0 #0a0a10, 0 24px 60px rgba(0,0,0,.6); transform: scale(.6) translateY(30px); opacity: 0; transition: transform .45s cubic-bezier(.2,1.6,.4,1), opacity .2s; }
.cel.in .cel-card { transform: none; opacity: 1; }
.cel.out .cel-card { transform: scale(.9); opacity: 0; transition: transform .2s, opacity .2s; }
.cel-card .ff-rays { inset: -40%; opacity: .9; }
.cel-card > *:not(.ff-rays):not(.cel-conf) { position: relative; z-index: 1; }
.cel-stage { height: 150px; display: grid; place-items: center; perspective: 600px; }
/* 3D монета: алдыңғы/артқы бет + қыры (10 қабат) */
.cel-coin { position: relative; width: 120px; height: 120px; transform-style: preserve-3d; animation: celDrop .7s cubic-bezier(.2,1.5,.4,1) both, celSpin 1.8s linear .7s infinite; }
.cel-coin b { position: absolute; inset: 6px; border-radius: 50%; background: linear-gradient(90deg, #232766, #5B6EC2, #232766); }
.cel-coin img { position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden; filter: drop-shadow(0 0 18px rgba(138,151,242,.6)); }
.cel-coin img.f { transform: translateZ(7.5px); }
.cel-coin img.bk { transform: rotateY(180deg) translateZ(7.5px); }
@keyframes celDrop { from { transform: translateY(-160px) scale(.3) rotateY(-540deg); } to { transform: translateY(0) scale(1) rotateY(0); } }
@keyframes celSpin { to { transform: rotateY(360deg); } }
.cel-item { transform-style: preserve-3d; animation: celDrop .7s cubic-bezier(.2,1.5,.4,1) both; }
.cel-item .x3d-obj { width: 110px; height: 110px; animation-duration: 4s; }
.cel-item .x3d-obj > i, .cel-item .x3d-face { border-radius: 32px; }
.cel-item .x3d-face .material-icons-round { font-size: 58px; }
.cel-t { margin-top: 6px; font-size: 24px; font-weight: 900; letter-spacing: .3px; text-shadow: 0 2px 0 rgba(0,0,0,.4); animation: celPop .5s .45s both; }
.cel-n { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 40px; font-weight: 900; color: #c3cbff; text-shadow: 0 0 20px rgba(138,151,242,.6); animation: celPop .5s .55s both; }
.cel-n img { width: 34px; height: 34px; }
.cel-name { margin-top: 6px; font-size: 19px; font-weight: 800; animation: celPop .5s .55s both; }
.cel-card .it-rar { display: inline-block; margin-top: 8px; animation: celPop .5s .5s both; }
.cel-s { margin-top: 6px; font-size: 13px; color: #b8bbd0; animation: celPop .5s .65s both; }
@keyframes celPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
.cel-ok { margin-top: 16px; width: 100%; height: 46px; border: 0; border-radius: 14px; font-family: inherit; font-size: 16px; font-weight: 800; color: #2a1d02; background: linear-gradient(180deg, #ffd27a, #F2A93B); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 0 #8a5a10; cursor: pointer; animation: celPop .4s .8s both; }
.cel-ok:active { transform: translateY(3px); box-shadow: 0 1px 0 #8a5a10; }
.cel-conf { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.cel-conf i { position: absolute; top: -12px; width: 7px; height: 12px; border-radius: 2px; opacity: 0; animation: celConf linear infinite; }
@keyframes celConf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), 420px) rotate(540deg); } }

/* Staff дүкені — күлгін түс */
html[data-mode="staff"] .ff-rail button.on { background: linear-gradient(180deg, #a07cff, #8B5CF6); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 3px 0 #4b2f8f; }
html[data-mode="staff"] .ab-shop .ff-bal { border-color: rgba(176,140,255,.4); }
html[data-mode="staff"] .sh-use { background: linear-gradient(180deg, #a07cff, #8B5CF6); box-shadow: 0 2px 0 #4b2f8f; }
/* ====== Ойындар ====== */
.gm { padding-top: 12px; padding-bottom: 24px; }
.gm-card { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 12px; border-radius: 20px; border: 1px solid color-mix(in srgb, var(--c) 45%, #000); background: radial-gradient(circle at 15% 50%, color-mix(in srgb, var(--c) 28%, transparent), transparent 60%), linear-gradient(180deg, #26262c, #1c1c20); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 4px 0 #0c0c10; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.gm-card:active { transform: translateY(3px); box-shadow: 0 1px 0 #0c0c10; }
.gm-card > .material-icons-round { color: #6c6f84; }
.gm-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gm-c em { align-self: flex-start; font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); padding: 2px 8px; border-radius: 99px; }
.gm-c b { font-size: 17px; font-weight: 800; }
.gm-c small { font-size: 12px; color: #9a9db0; line-height: 1.35; }
.gm-c i { font-style: normal; font-size: 11px; color: #c8cad4; margin-top: 3px; }
.gm-h { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 17px; font-weight: 800; margin-top: 6px; }
.gm-h .material-icons-outlined { color: #F2A93B; }
.gm-sub { text-align: center; font-size: 12.5px; color: #9a9db0; margin: 6px 0 14px; }
/* бұқа мен сиыр */
.bc-in { display: flex; justify-content: center; gap: 10px; margin: 12px 0; }
.bc-in span { width: 54px; height: 64px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; font-weight: 900; background: #1a1a1e; border: 2px solid #2e2e36; box-shadow: inset 0 -3px 0 rgba(0,0,0,.3); }
.bc-in span.on { border-color: #F2A93B; color: #fff; background: linear-gradient(180deg, #2c2418, #1a1a1e); }
.bc-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bc-keys button { height: 50px; border: 0; border-radius: 14px; font-family: inherit; font-size: 22px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #2c2c33, #222227); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 0 #0c0c10; cursor: pointer; display: grid; place-items: center; }
.bc-keys button:active { transform: translateY(2px); box-shadow: 0 1px 0 #0c0c10; }
.bc-keys button:disabled { opacity: .3; cursor: default; }
.bc-keys button.ok { font-size: 15px; color: #2a1d02; background: linear-gradient(180deg, #ffd27a, #F2A93B); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 0 #8a5a10; }
.bc-turn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border-radius: 12px; background: #1a1a1e; font-size: 13px; color: #c8cad4; }
.bc-turn .material-icons-outlined { font-size: 18px; color: #F2A93B; }
.bc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.bc-cols > div { max-height: 178px; overflow-y: auto; padding: 8px; border-radius: 14px; background: #18181c; }
.bc-ch { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: #8a8d9c; margin-bottom: 6px; }
.bc-row { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 6px 8px; margin-bottom: 5px; border-radius: 10px; background: #222227; }
.bc-row b { grid-row: 1 / 3; align-self: center; font-size: 17px; letter-spacing: 2px; }
.bc-row span { font-size: 12px; line-height: 1.1; }
.bc-row small { font-size: 10.5px; color: #8a8d9c; }
.bc-row.win { background: rgba(92,179,109,.2); }
.bc-mine { margin: 10px auto 0; display: flex; align-items: center; gap: 6px; border: 0; background: none; color: #9a9db0; font-family: inherit; font-size: 12.5px; cursor: pointer; }
.bc-mine .material-icons-outlined { font-size: 17px; }
.bc-mine b { color: #fff; letter-spacing: 3px; }
.bc-end { margin-top: 10px; padding: 14px; border-radius: 16px; text-align: center; font-size: 20px; font-weight: 900; background: rgba(92,179,109,.15); color: #7fe08f; }
.bc-end.bot { background: rgba(226,87,76,.14); color: #ff9a8f; }
.bc-end small { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; color: #c8cad4; }
/* дар ағашы */
.hg-inc { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 8px; border-radius: 14px; border: 1px solid #2a2a30; background: #1e1e22; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.hg-inc > span:nth-child(2) { flex: 1; min-width: 0; }
.hg-inc b { display: block; font-size: 13.5px; }
.hg-inc small { font-size: 11.5px; color: #8a8d9c; }
.hg-inc em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #fff; padding: 7px 14px; border-radius: 10px; background: linear-gradient(180deg, #6fb0ff, #4F9BFF); box-shadow: 0 2px 0 #2a5fa8; }
.hg-inc.sent { cursor: default; }
.hg-w { font-weight: 900; letter-spacing: 2px; color: #a9b4ff; font-size: 13px; }
.hg-from { display: flex; align-items: center; gap: 10px; }
.hg-from > span:not(.du-av) { flex: 1; }
.hg-from b { display: block; font-size: 13.5px; }
.hg-from small { font-size: 11.5px; color: #8a8d9c; }
.hg-from em { font-style: normal; font-size: 12px; font-weight: 700; color: #ffb4a8; }
.hg-stage { display: grid; place-items: center; margin: 6px 0; }
.hg-svg { width: 170px; height: 150px; }
.hg-word { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.hg-word span { width: 28px; height: 38px; display: grid; place-items: center; font-size: 22px; font-weight: 900; border-bottom: 3px solid #4F9BFF; }
.hg-word span.miss { color: #ff8a80; }
.hg-hint { display: flex; gap: 6px; justify-content: center; font-size: 12.5px; color: #c8cad4; margin-bottom: 12px; }
.hg-hint .material-icons-outlined { font-size: 17px; color: #FFD54F; }
.hg-keys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.hg-keys button { height: 40px; border: 0; border-radius: 9px; font-family: inherit; font-size: 15px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #2c2c33, #222227); box-shadow: 0 2px 0 #0c0c10; cursor: pointer; padding: 0; }
.hg-keys button.ok { background: #2f7d43; }
.hg-keys button.no { background: #4a2420; color: #8a6560; }
.hg-keys button:disabled { cursor: default; }
.hs-word { font-size: 20px; font-weight: 900; letter-spacing: 3px; text-transform: uppercase; }
.hs-to { max-height: 110px; overflow-y: auto; }
/* мафия */
.mf-room { width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; margin-bottom: 10px; border-radius: 18px; border: 1px solid #3a2420; background: radial-gradient(ellipse at 100% 0%, rgba(226,87,76,.22), transparent 55%), linear-gradient(180deg, #26262c, #1c1c20); box-shadow: 0 4px 0 #0c0c10; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.mf-room.ended { opacity: .75; border-color: #2a2a30; }
.mf-room > b { font-size: 16px; }
.mf-room > small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #9a9db0; }
.mf-room > small .material-icons-outlined { font-size: 14px; }
.mf-top { display: flex; gap: 6px; flex-wrap: wrap; }
.mf-st { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: #2c2c33; color: #c8cad4; }
.mf-st.live { background: rgba(226,87,76,.2); color: #ff9a8f; }
.mf-st.reg { background: rgba(92,179,109,.18); color: #7fe08f; }
.mf-st.me { background: rgba(91,110,194,.22); color: #a9b4ff; }
.mf-st.host { background: rgba(242,169,59,.2); color: #ffc56a; }
.mf-pl { display: flex; align-items: center; margin-top: 6px; }
.mf-pl .du-av { width: 26px; height: 26px; font-size: 10px; margin-right: -6px; border: 2px solid #1e1e22; }
.mf-pl i { font-style: normal; font-size: 11px; color: #c8cad4; margin-left: 10px; }
.mf-pl span { margin-left: 12px; font-size: 12px; font-weight: 700; color: #fff; }
.mf-res { color: #F2C230 !important; }
.mf-hero { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; background: #1e1e22; }
.mf-hero b { display: block; font-size: 17px; }
.mf-hero small { display: block; font-size: 12px; color: #9a9db0; }
.mf-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mf-roles span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, #1a1a1e); color: var(--c); }
.mf-roles b { font-size: 18px; color: #fff; }
.mf-roles small { font-size: 10.5px; color: #c8cad4; }
.mf-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px 4px; }
.mf-list span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mf-list small { font-size: 10.5px; color: #c8cad4; }
.ef-submit.ghost { background: #2c2c33; box-shadow: none; }
.mf-game { transition: background .4s; }
.gm-screen .content:has(.mf-game.night) { background: radial-gradient(ellipse at 50% 0%, #1b2350, #0d0f1c 70%); }
.mf-banner { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #1e1e22; }
.mf-game.night .mf-banner { background: rgba(30,40,90,.6); }
.mf-banner span { font-size: 22px; }
.mf-banner b { flex: 1; font-size: 15px; }
.mf-banner em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--c, #ffc56a); background: color-mix(in srgb, var(--c, #F2A93B) 18%, transparent); padding: 3px 9px; border-radius: 99px; }
.mf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; margin: 12px 0; }
.mf-p { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px; border: 2px solid transparent; border-radius: 14px; background: rgba(255,255,255,.04); color: #fff; font-family: inherit; cursor: pointer; }
.mf-p:disabled { cursor: default; }
.mf-p .du-av { width: 44px; height: 44px; font-size: 15px; }
.mf-p small { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-p em { font-style: normal; font-size: 9.5px; font-weight: 800; color: var(--c); }
.mf-p.sel { border-color: #F2A93B; background: rgba(242,169,59,.14); }
.mf-p.dead .du-av { filter: grayscale(1) brightness(.5); }
.mf-x { position: absolute; top: 6px; left: 50%; margin-left: -13px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #E2574C; font-style: normal; }
.mf-x .material-icons-round { font-size: 30px; }
.mf-card { width: 100%; height: 190px; border: 0; padding: 0; background: none; perspective: 900px; cursor: pointer; font-family: inherit; }
.mf-card-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,1.3,.5,1); }
.mf-card-in.flip { transform: rotateY(180deg); }
.mf-card-in > span { position: absolute; inset: 0; border-radius: 20px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #fff; }
.mf-card-in .f { background: repeating-linear-gradient(45deg, #2a2a33 0 12px, #23232b 12px 24px); border: 2px solid #3a3a44; }
.mf-card-in .b { transform: rotateY(180deg); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c) 55%, #1e1e22), #16161a 75%); border: 2px solid var(--c); }
.mf-card-in .material-icons-round { font-size: 52px; }
.mf-card-in b { font-size: 20px; font-weight: 900; }
.mf-card-in small { font-size: 12px; color: #d4d6e0; padding: 0 20px; text-align: center; }
.mf-wait { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.05); font-size: 13px; color: #c8cad4; text-align: center; }
.mf-wait.dead { color: #ff9a8f; }
.mf-wait .material-icons-outlined { font-size: 18px; }
.mf-act { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--c) 16%, #1a1a1e); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.mf-act > .material-icons-round { font-size: 28px; color: var(--c); }
.mf-act b { display: block; font-size: 14px; }
.mf-act small { font-size: 11.5px; color: #c8cad4; }
.mf-news { padding: 14px; border-radius: 14px; background: #1e1e22; font-size: 14px; line-height: 1.5; text-align: center; }
.mf-host { display: flex; gap: 8px; padding: 12px; border-radius: 14px; background: rgba(242,169,59,.12); font-size: 12.5px; line-height: 1.5; color: #f0d8a8; }
.mf-host .material-icons-outlined { color: #F2A93B; }
.mf-log { font-size: 12px; color: #9a9db0; padding: 6px 0; border-bottom: 1px solid #26262c; }

.bc-row span.bc-res { font-size: 11px; color: #c8cad4; display: inline-flex; align-items: center; gap: 3px; }
.bc-res i { font-style: normal; min-width: 16px; height: 16px; border-radius: 5px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 900; color: #10130f; }
.bc-res i.bb { background: #5CB36D; }
.bc-res i.cc { background: #F2C230; margin-left: 3px; }
.bc-dots { display: flex; gap: 3px; margin-top: 3px; }
.bc-dots u { width: 9px; height: 9px; border-radius: 50%; background: #34343c; }
.bc-dots u.b { background: #5CB36D; }
.bc-dots u.c { background: #F2C230; }
.hg-from .du-av, .hg-inc .du-av { width: 40px; height: 40px; flex: 0 0 40px; }
/* ====== Бұқа мен сиыр v2: тек бот жасырады, болжамдар кестесі ====== */
.bc2 { padding-bottom: 290px; }
.bc-secret { position: relative; margin-top: 12px; padding: 16px 14px 12px; border-radius: 20px; text-align: center; background: radial-gradient(circle at 50% 0%, rgba(242,169,59,.25), transparent 65%), linear-gradient(180deg, #26262c, #1c1c20); border: 1px solid #4a3a1e; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 4px 0 #0c0c10; }
.bc-bot { position: absolute; top: -14px; left: 50%; margin-left: -18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #ffd27a, #F2A93B); color: #2a1d02; box-shadow: 0 3px 0 #8a5a10; }
.bc-bot .material-icons-outlined { font-size: 20px; }
.bc-cards { display: flex; justify-content: center; gap: 10px; margin-top: 10px; perspective: 600px; }
.bc-card { position: relative; width: 52px; height: 64px; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.3,1.4,.5,1) var(--d); }
.bc-card i { position: absolute; inset: 0; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 30px; font-weight: 900; backface-visibility: hidden; }
.bc-card .f { color: #F2A93B; background: repeating-linear-gradient(45deg, #2c2418 0 8px, #241e14 8px 16px); border: 2px solid #5a4520; animation: bcBob 2.4s ease-in-out infinite; animation-delay: var(--d); }
.bc-card .b { transform: rotateY(180deg); color: #fff; background: linear-gradient(180deg, #3a8a4c, #2a6a3a); border: 2px solid #5CB36D; }
.bc-secret.open .bc-card { transform: rotateY(180deg); }
.bc-secret.open.lose .bc-card .b { background: linear-gradient(180deg, #8a3a32, #6a2a24); border-color: #E2574C; }
@keyframes bcBob { 50% { transform: translateY(-3px); } }
.bc-secret small { display: block; margin-top: 10px; font-size: 12.5px; color: #c8cad4; }
.bc-table { margin-top: 14px; border-radius: 16px; overflow: hidden; background: #18181c; border: 1px solid #26262c; }
.bc-tr { display: grid; grid-template-columns: 34px 1fr 64px 64px; align-items: center; padding: 9px 10px; border-top: 1px solid #222227; font-size: 13px; }
.bc-tr.th { border-top: 0; background: #202026; font-size: 11px; font-weight: 700; color: #8a8d9c; text-transform: uppercase; letter-spacing: .3px; }
.bc-tr.th span { display: inline-flex; align-items: center; gap: 4px; }
.bc-tr > span:nth-child(3), .bc-tr > span:nth-child(4) { justify-content: center; text-align: center; }
.bc-tr > span:first-child { color: #6c6f84; font-weight: 700; }
.bc-tr .g { display: flex; gap: 4px; }
.bc-tr .g b { width: 26px; height: 30px; border-radius: 7px; display: grid; place-items: center; font-size: 17px; font-weight: 900; background: #26262c; }
.bc-tr em { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-style: normal; font-size: 16px; font-weight: 900; color: #10130f; }
.bc-tr em.bb { background: #5CB36D; }
.bc-tr em.cc { background: #F2C230; }
.bc-tr.new { animation: bcRow .45s cubic-bezier(.2,1.4,.4,1); }
.bc-tr.new em { animation: bcPop .4s cubic-bezier(.2,1.6,.4,1) both; animation-delay: var(--d); }
.bc-tr.new .g b { animation: bcPop .3s both; }
.bc-tr.new .g b:nth-child(2) { animation-delay: .05s; } .bc-tr.new .g b:nth-child(3) { animation-delay: .1s; } .bc-tr.new .g b:nth-child(4) { animation-delay: .15s; }
.bc-tr.win { background: rgba(92,179,109,.16); }
@keyframes bcRow { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes bcPop { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.bc-empty { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 18px; font-size: 12.5px; color: #6c6f84; }
.bc-legend { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 11.5px; color: #8a8d9c; }
.bc-legend span, .bc-tr.th span { display: inline-flex; align-items: center; gap: 6px; }
.bc-legend u, .bc-tr.th u { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
u.b { background: #5CB36D; } u.c { background: #F2C230; }
.bc-foot { padding-top: 10px; background: linear-gradient(180deg, rgba(18,18,20,.9), #121214 30%); }
.bc-foot .bc-in { margin: 0 0 10px; }
.bc-foot .bc-in span { width: 48px; height: 54px; font-size: 26px; }
.bc-foot .bc-in span.on { animation: bcPop .25s cubic-bezier(.2,1.6,.4,1); }
.bc-foot .bc-keys button { height: 44px; }
/* ====== Мафия: онлайн дөңгелек үстел ====== */
.mf-tbl { position: relative; width: 100%; max-width: 340px; aspect-ratio: 1; margin: 6px auto 10px; }
.mf-felt { position: absolute; inset: 19%; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2a6e4a, #164a31 60%, #0f3322); border: 9px solid #6b4423; box-shadow: inset 0 0 0 2px rgba(255,255,255,.08), inset 0 8px 24px rgba(0,0,0,.5), 0 0 0 3px #3e2612, 0 14px 30px rgba(0,0,0,.55); transition: background .6s, filter .6s; }
.mf-felt::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.12); }
.mf-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; }
.mf-center b { font-size: 15px; font-weight: 800; }
.mf-center small { font-size: 10.5px; color: rgba(255,255,255,.65); }
.mf-ce { font-size: 30px; line-height: 1; margin-bottom: 4px; animation: mfFloat 3s ease-in-out infinite; }
@keyframes mfFloat { 50% { transform: translateY(-4px); } }
.mf-tbl.night .mf-felt { background: radial-gradient(circle at 50% 40%, #233163, #141c3e 60%, #0b1028); border-color: #3a2a1a; }
.mf-tbl.night::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(circle, rgba(20,30,80,.35), transparent 70%); pointer-events: none; }
.mf-seat { position: absolute; width: 64px; margin: -30px 0 0 -32px; display: flex; flex-direction: column; align-items: center; gap: 1px; z-index: 2; transition: opacity .5s, filter .5s; }
.mf-tbl.enter .mf-seat { animation: mfSeat .5s cubic-bezier(.2,1.5,.4,1) both; animation-delay: calc(var(--i) * 80ms); }
@keyframes mfSeat { from { opacity: 0; transform: scale(.2) translateY(20px); } to { opacity: 1; transform: none; } }
.mf-seat small { max-width: 64px; font-size: 10.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-seat em { font-style: normal; font-size: 9px; font-weight: 800; color: var(--c); background: rgba(0,0,0,.6); padding: 0 5px; border-radius: 99px; }
.mf-sb { position: relative; border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.mf-sb:disabled { cursor: default; }
.mf-seat .du-av { width: 44px; height: 44px; font-size: 14px; box-shadow: 0 0 0 3px #1a1a1e, 0 4px 10px rgba(0,0,0,.5); }
.mf-seat.me .du-av { box-shadow: 0 0 0 3px #5B6EC2, 0 0 14px rgba(91,110,194,.6); }
.mf-seat.sel .du-av { box-shadow: 0 0 0 3px #F2A93B, 0 0 18px rgba(242,169,59,.8); animation: mfPulse 1s ease-in-out infinite; }
.mf-seat.sel.night .du-av { box-shadow: 0 0 0 3px #E2574C, 0 0 18px rgba(226,87,76,.8); }
@keyframes mfPulse { 50% { transform: scale(1.08); } }
.mf-seat.sleep { opacity: .5; filter: saturate(.4); }
.mf-seat.dead { opacity: .55; }
.mf-seat.dead .du-av { filter: grayscale(1) brightness(.5); }
.mf-seat .mf-x { position: absolute; inset: 0; display: grid; place-items: center; color: #E2574C; font-style: normal; }
.mf-seat .mf-x .material-icons-round { font-size: 34px; }
.mf-v { position: absolute; top: -6px; right: -8px; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 900; color: #2a1d02; background: #F2A93B; box-shadow: 0 2px 0 #8a5a10; animation: bcPop .4s cubic-bezier(.2,1.6,.4,1) both; }
.mf-seat.talk .mf-sb::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #5CB36D; animation: mfTalk 1.2s ease-out infinite; }
@keyframes mfTalk { from { opacity: 1; transform: scale(.9); } to { opacity: 0; transform: scale(1.35); } }
.mf-on { position: absolute; margin: 32px 0 0 34px; width: 10px; height: 10px; border-radius: 50%; background: #4CC96B; border: 2px solid #1a1a1e; }
.mf-seat.empty .mf-empty { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed rgba(255,255,255,.25); color: rgba(255,255,255,.35); background: rgba(0,0,0,.2); }
.mf-seat.empty .mf-empty .material-icons-outlined { font-size: 20px; }
.mf-seat.empty small { color: rgba(255,255,255,.35); }
.mf-tbl.lobby .mf-seat.empty { animation: none; opacity: 1; }
.mf-game .mf-grid { display: none; }
/* ойынға карточкалар */
.mf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mf-cc { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 4px 9px; border-radius: 12px; border: 2px solid #2e2e36; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 18%, #1e1e22), #18181c); color: #fff; font-family: inherit; cursor: pointer; aspect-ratio: 3 / 3.6; justify-content: center; }
.mf-cc .material-icons-round { font-size: 26px; color: var(--c); }
.mf-cc b { font-size: 11px; line-height: 1.15; text-align: center; }
.mf-cc small { font-size: 10px; color: #8a8d9c; }
.mf-cc.on { border-color: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent); transform: translateY(-3px); }
.mf-cc.none { opacity: .5; }
/* дүкенде мафия карточкасы — ойын картасы түрінде */
.ff-card.cardart .sh-med { width: 46px; height: 64px; border-radius: 8px; transform: rotate(-8deg); }
.ff-card.cardart .sh-med .material-icons-round { font-size: 26px; }
.ff-card.cardart .ff-art::before { content: ""; position: absolute; width: 46px; height: 64px; border-radius: 8px; background: rgba(255,255,255,.12); transform: translateX(10px) rotate(8deg); }
.ff-card.cardart .ff-art { position: relative; }

/* Бұқа мен сиыр: 6 цифр — кішірек ұяшықтар */
.bc-secret { padding-top: 12px; }
.bc-cards { margin-top: 0; }
.bc-secret.n6 .bc-cards { gap: 6px; }
.bc-secret.n6 .bc-card { width: 42px; height: 54px; }
.bc-secret.n6 .bc-card i { font-size: 24px; }
.bc-foot.n6 .bc-in { gap: 6px; }
.bc-foot.n6 .bc-in span { width: 42px; height: 50px; font-size: 22px; }
.bc-tr .g b { flex-shrink: 0; }
/* ====== Мафия: карта тарату, рөлді ашу, чат, аудио ====== */
.mf-fly { position: absolute; z-index: 1; left: var(--x); top: var(--y); width: 18px; height: 26px; margin: -13px 0 0 -9px; border-radius: 3px; font-style: normal; background: repeating-linear-gradient(45deg, #7a1f1a 0 4px, #5a1612 4px 8px); border: 1.5px solid #e8c9a0; box-shadow: 0 2px 4px rgba(0,0,0,.5); transform: rotate(calc(var(--i) * 37deg)); pointer-events: none; }
.mf-fly.deal { animation: mfDeal .55s cubic-bezier(.2,.9,.3,1) both; animation-delay: calc(300ms + var(--i) * 160ms); }
@keyframes mfDeal { 0% { left: 50%; top: 50%; transform: rotate(0) scale(1.3); opacity: 0; } 15% { opacity: 1; } 100% { left: var(--x); top: var(--y); transform: rotate(calc(var(--i) * 37deg + 360deg)) scale(1); opacity: 1; } }
.mf-fly.open { background: var(--c); border-color: #fff; }
.mf-fly.mine { animation: mfMine 1.2s ease-in-out infinite; }
@keyframes mfMine { 50% { box-shadow: 0 0 0 3px #F2A93B, 0 0 14px #F2A93B; } }
/* үлкен карта: басып тұрғанда көтеріліп, аударылады */
.mf-reveal { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 4px; }
.mf-big { width: 170px; height: 240px; perspective: 900px; touch-action: none; cursor: pointer; user-select: none; -webkit-user-select: none; animation: mfBigIn .7s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes mfBigIn { from { transform: translateY(-160px) scale(.2) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.mf-big-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s cubic-bezier(.3,1.3,.5,1); }
.mf-big.peek .mf-big-in { transform: translateY(-14px) rotateY(180deg) scale(1.06); }
.mf-big-in > span { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; overflow: hidden; }
.mf-big-in .f { background: radial-gradient(circle at 50% 40%, #8a2a22, #4a0f0b 70%); border: 3px solid #e8c9a0; box-shadow: inset 0 0 0 6px #4a0f0b, inset 0 0 0 8px #c9a46a, 0 12px 26px rgba(0,0,0,.6); color: #f3dcb6; }
.mf-big-in .f::before { content: ""; position: absolute; inset: 14px; border-radius: 10px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 6px, transparent 6px 12px); }
.mf-logo { position: relative; font-style: normal; font-size: 13px; font-weight: 900; letter-spacing: 2px; padding: 3px 8px; border: 1.5px solid #c9a46a; border-radius: 6px; }
.mf-big-in .f b { position: relative; font-family: "Oswald", "Roboto", sans-serif; font-size: 26px; letter-spacing: 4px; }
.mf-big-in .f small { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: #e8c9a0; animation: mfHint 1.6s ease-in-out infinite; }
.mf-big-in .f small .material-icons-outlined { font-size: 16px; }
@keyframes mfHint { 50% { opacity: .45; } }
.mf-big-in .b { transform: rotateY(180deg); color: #fff; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--c) 70%, #1e1e22), #121216 75%); border: 3px solid var(--c); box-shadow: 0 0 30px color-mix(in srgb, var(--c) 60%, transparent); }
.mf-big-in .b .material-icons-round { position: relative; font-size: 64px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); }
.mf-big-in .b b { position: relative; font-size: 24px; font-weight: 900; }
.mf-big-in .b small { position: relative; font-size: 11.5px; padding: 0 14px; text-align: center; color: #e4e6f0; }
.mf-burst { position: absolute; inset: -40%; background: repeating-conic-gradient(color-mix(in srgb, var(--c) 35%, transparent) 0 10deg, transparent 10deg 24deg); animation: ffSpin 8s linear infinite; }
.mf-rv-t { font-size: 12.5px; color: #c8cad4; text-align: center; }
.mf-reveal .ef-submit { margin-top: 2px; }
/* чат */
.mf-chat { margin-top: 12px; border-radius: 16px; background: #18181c; border: 1px solid #26262c; overflow: hidden; }
.mf-ch-h { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #26262c; }
.mf-ch-h .material-icons-outlined { font-size: 18px; color: #a9b4ff; }
.mf-ch-h b { font-size: 13.5px; }
.mf-ch-tabs { margin-left: auto; display: flex; gap: 4px; }
.mf-ch-tabs button { height: 26px; padding: 0 10px; border: 0; border-radius: 99px; font-family: inherit; font-size: 11.5px; font-weight: 700; color: #8a8d9c; background: #222227; cursor: pointer; }
.mf-ch-tabs button.on { color: #fff; background: #5B6EC2; }
.mf-ch-tabs button.maf.on { background: #a8352b; }
.mf-ch-list { max-height: 210px; min-height: 90px; overflow-y: auto; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.mf-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; }
.mf-msg .du-av { width: 24px; height: 24px; font-size: 9px; flex: 0 0 24px; }
.mf-msg > span { padding: 7px 10px; border-radius: 14px 14px 14px 4px; background: #26262c; font-size: 12.5px; line-height: 1.35; color: #e4e6f0; }
.mf-msg b { display: block; font-size: 10.5px; color: #a9b4ff; margin-bottom: 1px; }
.mf-msg.me { align-self: flex-end; flex-direction: row-reverse; }
.mf-msg.me > span { background: #3b4a9a; border-radius: 14px 14px 4px 14px; }
.mf-msg.sys { align-self: center; max-width: 100%; }
.mf-msg.sys > span { background: rgba(242,169,59,.12); color: #f0d8a8; font-size: 11.5px; border-radius: 10px; text-align: center; }
.mf-msg.new { animation: bcRow .35s cubic-bezier(.2,1.4,.4,1); }
.mf-ch-in { display: flex; gap: 6px; padding: 8px; border-top: 1px solid #26262c; }
.mf-ch-in input { flex: 1; height: 38px; border: 0; border-radius: 99px; padding: 0 14px; background: #222227; color: #fff; font-family: inherit; font-size: 13px; outline: none; }
.mf-ch-in button { width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #7d8cf0, #5B6EC2); cursor: pointer; }
.mf-ch-in button .material-icons-round { font-size: 18px; }
.mf-ch-in.lock span { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 38px; font-size: 12px; color: #6c6f84; }
.mf-ch-in.lock .material-icons-outlined { font-size: 16px; }
/* аудио жолағы */
.mf-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mf-ab { height: 54px; border: 0; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: inherit; color: #fff; background: linear-gradient(180deg, #2c2c33, #222227); box-shadow: 0 3px 0 #0c0c10; cursor: pointer; }
.mf-ab .material-icons-round, .mf-ab .material-icons-outlined { font-size: 22px; }
.mf-ab small { font-size: 10.5px; color: #c8cad4; }
.mf-ab.on { background: linear-gradient(180deg, #4fd07a, #2f9a52); box-shadow: 0 3px 0 #1d5e33, 0 0 0 0 rgba(79,208,122,.5); animation: mfMicOn 1.4s ease-out infinite; }
.mf-ab.on small { color: #fff; }
@keyframes mfMicOn { 70% { box-shadow: 0 3px 0 #1d5e33, 0 0 0 10px rgba(79,208,122,0); } }
.mf-ab.dim { opacity: .5; }
.mf-game { padding-bottom: 96px; }
/* ====== Staff: Чат (кураторлар) ====== */
.ch-list { padding-top: 12px; }
.ch-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; margin-bottom: 10px; border-radius: 14px; background: var(--card); color: #8a8d9c; }
.ch-search input { flex: 1; border: 0; background: none; color: #fff; font-family: inherit; font-size: 14px; outline: none; }
.ch-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 6px; border: 0; border-bottom: 1px solid #222227; background: none; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.ch-row:active { background: rgba(255,255,255,.04); }
.ch-av { position: relative; flex-shrink: 0; }
.ch-av .du-av { width: 50px; height: 50px; font-size: 17px; }
.ch-av i { position: absolute; right: 1px; bottom: 1px; width: 12px; height: 12px; border-radius: 50%; background: #4CC96B; border: 2px solid #121214; }
.ch-av.sm .du-av { width: 38px; height: 38px; font-size: 13px; }
.ch-av.sm i { width: 10px; height: 10px; }
.du-av.ch-grp { background: linear-gradient(180deg, #a07cff, #6a47d6) !important; }
.du-av.ch-grp .material-icons-round { font-size: 26px; }
.ch-av.sm .du-av.ch-grp .material-icons-round { font-size: 20px; }
.ch-mid { flex: 1; min-width: 0; }
.ch-mid b { display: block; font-size: 15px; font-weight: 600; }
.ch-mid small { display: block; margin-top: 2px; font-size: 12.5px; color: #8a8d9c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.ch-end small { font-size: 11px; color: #6c6f84; }
.ch-end em { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--primary); }
.ch-tick { font-style: normal; color: #6c6f84; display: inline-flex; }
.ch-tick .material-icons-round { font-size: 15px; }
.ch-tick.r { color: #6fc3ff; }
/* сөйлесу */
.ch-bar { gap: 10px; }
.ch-hd { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-hd b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-hd small { font-size: 11.5px; color: rgba(255,255,255,.7); }
.ch-thread { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 90px; min-height: 100%; background: radial-gradient(circle at 20% 10%, rgba(139,92,246,.08), transparent 40%), radial-gradient(circle at 80% 80%, rgba(91,110,194,.08), transparent 40%); }
.ch-day { align-self: center; margin: 4px 0 8px; }
.ch-day span { font-size: 11px; color: #c8cad4; background: rgba(255,255,255,.08); padding: 3px 10px; border-radius: 99px; }
.ch-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 82%; animation: bcRow .3s ease-out; }
.ch-msg .du-av, .ch-gap { width: 28px; height: 28px; font-size: 10px; flex: 0 0 28px; }
.ch-b { position: relative; padding: 8px 11px 6px; border-radius: 16px 16px 16px 4px; background: #26262c; font-size: 14px; line-height: 1.4; color: #eceef6; word-break: break-word; }
.ch-b b { display: block; font-size: 11.5px; margin-bottom: 2px; }
.ch-b small { float: right; display: inline-flex; align-items: center; gap: 2px; margin: 6px 0 -2px 10px; font-size: 10.5px; color: rgba(255,255,255,.5); }
.ch-msg.me { align-self: flex-end; }
.ch-msg.me .ch-b { background: linear-gradient(180deg, #8b6cf0, #6a47d6); border-radius: 16px 16px 4px 16px; color: #fff; }
.ch-msg.pin .ch-b { border: 1px solid rgba(242,169,59,.5); background: #2c2618; }
.ch-pin { display: flex; align-items: center; gap: 3px; font-style: normal; font-size: 10.5px; font-weight: 700; color: #F2A93B; margin-bottom: 3px; }
.ch-pin .material-icons-round { font-size: 13px; }
.ch-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.ch-typing i { width: 7px; height: 7px; border-radius: 50%; background: #8a8d9c; animation: chDot 1s infinite; }
.ch-typing i:nth-child(2) { animation-delay: .15s; } .ch-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes chDot { 50% { transform: translateY(-4px); opacity: .5; } }
.ch-foot { display: flex; align-items: center; gap: 8px; }
.ch-foot input { flex: 1; height: 42px; border: 0; border-radius: 21px; padding: 0 16px; background: #222227; color: #fff; font-family: inherit; font-size: 14px; outline: none; }
.ch-att, .ch-send { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.ch-att { background: transparent; color: #8a8d9c; }
.ch-send { color: #fff; background: linear-gradient(180deg, #a07cff, #8B5CF6); box-shadow: 0 2px 0 #4b2f8f; }

/* Рөл картасы: бір шерту → 3D айналып ашылады (2.5 айналым), 15 с тұрады, кейін жабылады */
.mf-big.open .mf-big-in { animation: mfSpinOpen 1.4s cubic-bezier(.25,.9,.3,1) forwards; }
@keyframes mfSpinOpen {
  0% { transform: translateY(0) rotateY(0) scale(1); }
  30% { transform: translateY(-40px) rotateY(360deg) scale(1.12); }
  100% { transform: translateY(-6px) rotateY(900deg) scale(1.06); }
}
.mf-big.close .mf-big-in { animation: mfSpinClose .7s ease-in forwards; }
@keyframes mfSpinClose { from { transform: translateY(-6px) rotateY(180deg) scale(1.06); } to { transform: rotateY(360deg) scale(1); } }
.mf-big.open { animation: none; }
.mf-big.open::after { content: ""; position: absolute; }
.mf-big { position: relative; }
.mf-big.open .mf-big-in .b { box-shadow: 0 0 40px color-mix(in srgb, var(--c) 70%, transparent), 0 0 90px color-mix(in srgb, var(--c) 35%, transparent); }
.mf-timer { position: relative; width: 170px; height: 22px; border-radius: 11px; background: #26262c; overflow: hidden; }
.mf-timer i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #E2574C, #F2A93B); }
.mf-timer span { position: relative; display: block; text-align: center; line-height: 22px; font-size: 12px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; }
.mf-timer span::after { content: " сек"; font-weight: 600; }
.mf-timer i { transition: width 1s linear; }
/* ====== Staff: Отчёт ====== */
.rp { padding-top: 12px; padding-bottom: 28px; }
.rp-seg { margin-bottom: 12px; }
.rp-hero { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: radial-gradient(circle at 0% 0%, rgba(139,92,246,.22), transparent 60%), linear-gradient(180deg, #26262c, #1c1c20); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 0 #0c0c10; }
.rp-ring { --p: 0; position: relative; width: 78px; height: 78px; flex-shrink: 0; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: conic-gradient(#8B5CF6 calc(var(--p) * 1%), #2c2c33 0); }
.rp-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #1e1e22; }
.rp-ring b, .rp-ring small { position: relative; }
.rp-ring b { font-size: 18px; font-weight: 900; }
.rp-ring small { font-size: 9.5px; color: #8a8d9c; }
.rp-hi { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.rp-hi b { font-size: 15px; }
.rp-hi small { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #9a9db0; }
.rp-hi small .material-icons-outlined { font-size: 14px; }
.rp-hi em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); padding: 3px 9px; border-radius: 99px; }
.rp-week { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 10px; }
.rp-week span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; border-radius: 12px; background: #1c1c20; font-size: 11px; color: #8a8d9c; }
.rp-week i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: #2c2c33; }
.rp-week i .material-icons-round { font-size: 15px; color: #fff; }
.rp-week .ok i { background: #3a9a55; } .rp-week .late i { background: #c98a22; } .rp-week .now i { background: #8B5CF6; box-shadow: 0 0 0 3px rgba(139,92,246,.3); }
.rp-week .now b { color: #fff; }
.rp-back { display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; font-size: 12.5px; line-height: 1.45; color: #f0c8c2; background: color-mix(in srgb, var(--c, #E2574C) 14%, #1a1a1e); border: 1px solid color-mix(in srgb, var(--c, #E2574C) 40%, transparent); }
.rp-back .material-icons-outlined { font-size: 18px; color: var(--c, #E2574C); }
.rp-task { display: flex; gap: 12px; padding: 12px; margin-bottom: 8px; border-radius: 16px; background: #1e1e22; border: 1px solid #2a2a30; transition: background .2s, border-color .2s; }
.rp-task.done { border-color: rgba(92,179,109,.45); background: linear-gradient(180deg, rgba(92,179,109,.10), #1e1e22); }
.rp-chk { width: 30px; height: 30px; flex-shrink: 0; border: 0; border-radius: 10px; display: grid; place-items: center; font-family: inherit; font-size: 12px; font-weight: 800; color: #8a8d9c; background: #2c2c33; box-shadow: inset 0 -2px 0 rgba(0,0,0,.3); cursor: pointer; }
.rp-chk:disabled { cursor: default; }
.rp-task.done .rp-chk { color: #fff; background: linear-gradient(180deg, #5fd47a, #2f9a52); box-shadow: 0 2px 0 #1d5e33; }
.rp-chk .material-icons-round { font-size: 18px; }
.rp-task.ro.miss .rp-chk { color: #fff; background: #8a3a32; }
.rp-tb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rp-tb b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.rp-tb b i { font-style: normal; color: #e86b6b; margin-left: 2px; }
.rp-tb small { font-size: 11.5px; color: #8a8d9c; }
.rp-of { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rp-of i { font-style: normal; color: #6c6f84; }
.rp-in { width: 100%; border: 1px solid #2e2e36; border-radius: 10px; background: #16161a; color: #fff; font-family: inherit; font-size: 13px; padding: 8px 10px; outline: none; resize: none; }
.rp-in:focus { border-color: #8B5CF6; }
.rp-in.sm { width: 64px; height: 34px; text-align: center; font-weight: 800; font-size: 15px; padding: 0 6px; }
.rp-in:disabled { opacity: .7; }
.rp-att { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rp-att > span, .rp-att > button { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 99px; font-family: inherit; font-size: 12px; color: #c8cad4; background: #222227; border: 1px dashed #3a3a44; cursor: pointer; }
.rp-att .material-icons-round, .rp-att .material-icons-outlined { font-size: 16px; }
.rp-foot { margin-top: 12px; }
.rp-foot .ef-submit { display: flex; align-items: center; justify-content: center; gap: 6px; }
.rp-foot .ef-submit:disabled { opacity: .45; }
.rp-hist { display: grid; grid-template-columns: 12px 1fr; column-gap: 10px; align-items: center; padding: 9px 2px; border-bottom: 1px solid #222227; }
.rp-hist b { font-size: 13px; }
.rp-hist small { grid-column: 2; font-size: 11.5px; color: #8a8d9c; }
.rp-dot { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: #3a9a55; }
.rp-dot.late { background: #c98a22; }
/* бас куратор */
.rp-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rp-sum span { display: flex; flex-direction: column; align-items: center; padding: 12px 4px; border-radius: 16px; background: color-mix(in srgb, var(--c) 12%, #1c1c20); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.rp-sum b { font-size: 24px; font-weight: 900; color: var(--c); }
.rp-sum small { font-size: 11px; color: #c8cad4; }
.rp-cur { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin-bottom: 8px; border-radius: 16px; border: 1px solid #2a2a30; background: #1e1e22; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.rp-cur .du-av { width: 44px; height: 44px; font-size: 15px; flex: 0 0 44px; }
.rp-cur > span:not(.du-av) { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.rp-cur b { font-size: 14px; }
.rp-cur small { font-size: 11.5px; color: #8a8d9c; }
.rp-cur em { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); padding: 2px 8px; border-radius: 99px; }
.rp-cur > .material-icons-round { color: #6c6f84; }
.rp-remind { font-style: normal; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #f07b6e, #E2574C); box-shadow: 0 2px 0 #8a2a22; }
.rp-remind .material-icons-outlined { font-size: 19px; }
.rt-row { display: grid; grid-template-columns: 22px 1fr auto 32px; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #26262c; }
.rt-row > span { font-size: 12px; color: #6c6f84; font-weight: 800; }
.rt-row b { font-size: 13px; font-weight: 500; }
.rt-row small { font-size: 10.5px; color: #8a8d9c; background: #26262c; padding: 2px 7px; border-radius: 99px; }
.rt-row button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: #e86b6b; cursor: pointer; }
.rp-foot .ef-submit { width: 100%; }
.rp-foot .tf-sum { margin-top: 8px; }
/* ====== Отчёт v2 (жинақы бөлімдер, степпер, бекітулі жіберу жолағы) ====== */
.rp2 { padding-top: 12px; padding-bottom: 0; }
.rp-head { position: relative; overflow: hidden; padding: 14px 14px 12px; border-radius: 20px; color: #fff; background: radial-gradient(circle at 100% 0%, rgba(255,255,255,.18), transparent 45%), linear-gradient(135deg, #7b52e8, #4b2f9a); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 4px 0 #2a1a5a, 0 12px 24px rgba(75,47,154,.35); }
.rp-h1 { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rp-h1 small { display: block; font-size: 11.5px; opacity: .8; }
.rp-h1 b { font-size: 20px; font-weight: 900; letter-spacing: .3px; }
.rp-h1 em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--c); background: rgba(10,8,30,.45); padding: 5px 10px; border-radius: 99px; }
.rp-h1 em .material-icons-outlined { font-size: 15px; }
.rp-prog { height: 8px; margin: 12px 0 8px; border-radius: 4px; background: rgba(255,255,255,.2); overflow: hidden; }
.rp-prog i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #ffd27a, #7fe08f); transition: width .4s; }
.rp-h2 { display: flex; justify-content: space-between; align-items: center; font-size: 12px; opacity: .92; }
.rp-h2 b { font-size: 15px; }
.rp-h2 span { display: inline-flex; align-items: center; gap: 4px; }
.rp-h2 .material-icons-outlined { font-size: 15px; }
.rp-days { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 12px; }
.rp-days span { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.rp-days small { font-size: 10.5px; opacity: .75; }
.rp-days i { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-style: normal; background: rgba(255,255,255,.14); }
.rp-days i .material-icons-round { font-size: 15px; }
.rp-days .ok i { background: #3fae5d; } .rp-days .late i { background: #d6952a; }
.rp-days .now i { background: #fff; color: #5a35c8; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.rp-days .now small { opacity: 1; font-weight: 800; }
.rp-sec { margin-top: 14px; border-radius: 18px; background: #1c1c20; border: 1px solid #26262c; overflow: hidden; }
.rp-sec > header { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid #26262c; background: #202026; }
.rp-sec > header .material-icons-outlined, .rp-sec > header .material-icons-round { font-size: 19px; color: #a98bff; }
.rp-sec > header b { flex: 1; font-size: 13.5px; }
.rp-sec > header span { font-size: 11.5px; font-weight: 800; color: #8a8d9c; background: #2a2a31; padding: 2px 8px; border-radius: 99px; }
.rp-sec > header span.all { color: #10130f; background: #5CB36D; }
.rp-row { display: flex; gap: 12px; padding: 12px 14px; border-top: 1px solid #24242a; }
.rp-row:first-of-type { border-top: 0; }
.rp-tick { width: 26px; height: 26px; flex-shrink: 0; margin-top: 1px; border-radius: 50%; border: 2px solid #4a4a55; background: transparent; display: grid; place-items: center; color: transparent; cursor: pointer; transition: all .2s; }
.rp-tick .material-icons-round { font-size: 17px; transform: scale(.4); transition: transform .25s cubic-bezier(.2,1.6,.4,1); }
.rp-tick:disabled { cursor: default; }
.rp-row:not(.check) .rp-tick { border-style: dashed; }
.rp-row.done .rp-tick { border: 0; color: #fff; background: linear-gradient(180deg, #5fd47a, #2f9a52); box-shadow: 0 2px 0 #1d5e33; }
.rp-row.done .rp-tick .material-icons-round { transform: scale(1); }
.rp-row.done.check .rp-rt b { color: #9a9db0; text-decoration: line-through; text-decoration-color: rgba(154,157,176,.5); }
.rp-rb { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rp-rt { display: flex; align-items: flex-start; gap: 6px; }
.rp-rt b { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.rp-req { flex-shrink: 0; width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: #E2574C; }
.rp-row.done .rp-req { background: #5CB36D; }
.rp-h { font-size: 11.5px; color: #8a8d9c; margin-top: -4px; }
.rp-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rp-ctl > small { font-size: 11.5px; color: #8a8d9c; }
.rp-step { display: inline-flex; align-items: center; height: 34px; border-radius: 11px; background: #26262c; box-shadow: inset 0 0 0 1px #33333b; }
.rp-step button { width: 32px; height: 34px; border: 0; background: none; color: #c8cad4; display: grid; place-items: center; cursor: pointer; }
.rp-step button .material-icons-round { font-size: 18px; }
.rp-step button:active { color: #a98bff; }
.rp-step input { width: 40px; height: 34px; border: 0; background: none; color: #fff; text-align: center; font-family: inherit; font-size: 16px; font-weight: 800; outline: none; -moz-appearance: textfield; }
.rp-step input::-webkit-outer-spin-button, .rp-step input::-webkit-inner-spin-button, .rp-of2 input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rp-step.dis { opacity: .6; }
.rp-of2 { display: inline-flex; align-items: center; gap: 6px; }
.rp-of2 i { font-style: normal; color: #6c6f84; font-size: 18px; }
.rp-of2 input { width: 44px; height: 34px; border: 0; border-radius: 10px; background: #18181c; color: #c8cad4; text-align: center; font-family: inherit; font-size: 15px; font-weight: 700; outline: none; }
.rp-of2 small { font-size: 10.5px; line-height: 1.25; color: #8a8d9c; }
.rp-auto { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 10.5px; font-weight: 700; color: #F2C230; background: rgba(242,194,48,.12); padding: 2px 7px; border-radius: 99px; }
.rp-auto .material-icons-round { font-size: 12px; }
.rp-mini { height: 4px; border-radius: 2px; background: #2a2a31; overflow: hidden; }
.rp-mini i { display: block; height: 100%; background: #8B5CF6; transition: width .3s; }
.rp-row.done .rp-mini i { background: #5CB36D; }
.rp-ta { width: 100%; border: 1px solid #2e2e36; border-radius: 12px; background: #16161a; color: #fff; font-family: inherit; font-size: 13px; line-height: 1.45; padding: 9px 11px; outline: none; resize: none; }
.rp-ta:focus { border-color: #8B5CF6; box-shadow: 0 0 0 3px rgba(139,92,246,.18); }
.rp-files { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-files > span, .rp-files > button { display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border-radius: 10px; font-family: inherit; font-size: 12px; color: #c8cad4; background: #222227; border: 1px dashed #3a3a44; cursor: pointer; }
.rp-files .material-icons-outlined { font-size: 16px; color: #a98bff; }
.rp-histh { margin: 18px 2px 8px; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #8a8d9c; }
.rp-tl { position: relative; padding-left: 18px; }
.rp-tl::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: #2a2a31; }
.rp-tl > div { position: relative; padding: 4px 0 12px; }
.rp-tl > div i { position: absolute; left: -18px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: #3fae5d; box-shadow: 0 0 0 3px #121214; }
.rp-tl > div.late i { background: #d6952a; }
.rp-tl b { display: block; font-size: 13px; }
.rp-tl small { font-size: 11.5px; color: #8a8d9c; }
.rp-bar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; margin: 8px -16px 0; padding: 10px 16px 12px; background: linear-gradient(180deg, rgba(18,18,20,0), #121214 28%); }
.rp-bq { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.rp-bq b { font-size: 17px; font-weight: 900; }
.rp-bq small { font-size: 10px; color: #8a8d9c; }
.rp-send { flex: 1; height: 50px; border: 0; border-radius: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-size: 15.5px; font-weight: 800; color: #fff; background: linear-gradient(180deg, #a07cff, #7b52e8); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 0 #3e2590; cursor: pointer; }
.rp-send:active { transform: translateY(3px); box-shadow: 0 1px 0 #3e2590; }
.rp-send:disabled { opacity: .45; cursor: default; }
.rp-lock { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 50px; border-radius: 15px; background: #1e1e22; font-size: 13px; color: #c8cad4; }
.rp-lock .material-icons-outlined { color: #7fe08f; }
.rp-sec > header > .material-icons-outlined, .rp-sec > header > .material-icons-round { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(139,92,246,.16); font-size: 18px; flex-shrink: 0; }
.rp-bar { background: linear-gradient(180deg, rgba(18,18,20,0), #121214 35%); }

/* Жіберу жолағы — тарихтың үстінде қалқып тұрмасын: тұрақты орында, түсініктемеден кейін */
.rp-bar { position: static; margin: 14px 0 0; padding: 0; background: none; }
.rp-tl { padding-bottom: 20px; }

/* Отчёт: автомат есеп блоктары, скриндер */
.rp-auto2 { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: #16161a; border: 1px solid #26262c; }
.rp-auto2 + .rp-auto2 { margin-top: 2px; }
.rp-a-h b { display: block; font-size: 12.5px; }
.rp-a-h small { font-size: 11px; color: #8a8d9c; }
.rp-scs { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-sc { display: inline-flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 10px; font-size: 11.5px; color: #c8cad4; background: color-mix(in srgb, var(--c) 13%, transparent); }
.rp-sc b { font-size: 15px; font-weight: 900; color: var(--c); }
.rp-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 12px; border: 0; border-radius: 10px; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(180deg, #a07cff, #7b52e8); box-shadow: 0 2px 0 #3e2590; cursor: pointer; }
.rp-go .material-icons-outlined { font-size: 16px; }
.rp-names { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #ff9a8f; }
.rp-names .material-icons-outlined { font-size: 15px; }
.rp-ok { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #7fe08f; }
.rp-ok .material-icons-outlined { font-size: 16px; }
.rp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-chips span { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 99px; background: #26262c; font-size: 12px; }
.rp-chips .du-av { width: 22px; height: 22px; font-size: 9px; }
.rp-row.auto .rp-tick { border-style: solid; }
.rp-auto { align-self: flex-start; }
.rp-shots { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-shot { position: relative; width: 74px; height: 96px; border-radius: 12px; background: #16161a center/cover; border: 1px solid #2e2e36; }
.rp-shot button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.65); cursor: pointer; }
.rp-shot button .material-icons-round { font-size: 14px; }
.rp-shot.add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed #4a4a55; color: #a98bff; font-family: inherit; cursor: pointer; }
.rp-shot.add small { font-size: 11px; color: #8a8d9c; }

/* Сенбілік пакет: шарт бойынша тапсыру */
.rp-lead { margin: 10px 2px 0; font-size: 12.5px; line-height: 1.45; color: #b7bac8; }
.rp-link { border: 0; background: none; color: #fff; font-family: inherit; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; opacity: .95; }
.rp-jump { width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(242,169,59,.45); background: rgba(242,169,59,.12); color: #ffd7a1; font-family: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.rp-jump .material-icons-outlined { font-size: 18px; }
.rp-came { width: 100%; margin-top: 12px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid #3a3a44; background: #1c1c20; color: #fff; font-family: inherit; text-align: left; cursor: pointer; }
.rp-came:disabled { cursor: default; }
.rp-came b { display: block; font-size: 14px; }
.rp-came small { display: block; margin-top: 2px; font-size: 11.5px; color: #8a8d9c; }
.rp-came .rp-tick { border-style: solid; }
.rp-came.on { border-color: rgba(92,179,109,.55); background: linear-gradient(180deg, rgba(92,179,109,.12), #1c1c20); }
.rp-came.on .rp-tick { border: 0; color: #fff; background: linear-gradient(180deg, #5fd47a, #2f9a52); box-shadow: 0 2px 0 #1d5e33; }
.rp-came.on .rp-tick .material-icons-round { transform: scale(1); }
.rp-pad { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; }
.rp-due { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 800; color: #c8cad4; background: #2a2a31; padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.rp-due.ok { color: #102015; background: #5CB36D; }
.rp-due.late { color: #ffd0c8; background: rgba(226,87,76,.85); }
.rp-due.soon { color: #2a2110; background: #F2A93B; }
.rp-fine { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 800; color: #ffd0c8; background: rgba(226,87,76,.85); padding: 3px 8px; border-radius: 99px; white-space: nowrap; }
.rp-who { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #24242a; }
.rp-who:first-child { border-top: 0; padding-top: 0; }
.rp-who .du-av { width: 32px; height: 32px; font-size: 11px; flex: 0 0 32px; }
.rp-who > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rp-who b { font-size: 13px; font-weight: 600; }
.rp-who small { font-size: 11px; color: #8a8d9c; }
.rp-pos { width: 18px; flex: 0 0 18px; font-size: 12px; color: #8a8d9c; }
.rp-mark { margin-left: auto; height: 30px; padding: 0 10px; border: 0; border-radius: 10px; display: inline-flex; align-items: center; gap: 3px; font-family: inherit; font-size: 12px; font-weight: 700; color: #fff; background: #34343c; cursor: pointer; flex-shrink: 0; }
.rp-mark .material-icons-round { font-size: 14px; }
.rp-mark.on { background: #2f9a52; }
.rp-mark:disabled { opacity: .7; cursor: default; }
.rp-live { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.rp-live > b { flex: 0 0 auto; font-size: 12px; color: #c8cad4; }
.rp-live > span { flex: 1; min-width: 0; font-size: 12.5px; }
.rp-live small { display: block; color: #8a8d9c; font-size: 11px; }
.rp-rules { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rp-rules b { margin-top: 8px; font-size: 14px; }
.rp-rules p { margin: 0; font-size: 13px; line-height: 1.45; color: #c8cad4; }
