/* Кабинет студента и предпросмотр файлов. Палитра и материалы — из общей темы (macos.css). */
.st-app {
  --st-surface: var(--mac-surface, var(--theme-surface, #fff));
  --st-raised: var(--mac-raised, #f3f6f9);
  --st-text: var(--mac-text, var(--ink));
  --st-muted: var(--mac-secondary, var(--muted));
  --st-line: var(--mac-line, var(--line));
  --st-accent: var(--mac-accent, var(--purple));
  --st-accent-soft: var(--mac-accent-soft, var(--purple-bg));
  --st-radius: 18px;
  --st-shadow: var(--mac-shadow, 0 6px 20px #0000000d);
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--st-text);
}
.st-sidebar {
  display: none;
}
.st-main {
  min-width: 0;
  padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
.st-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--st-surface) 88%, transparent);
  border-bottom: 1px solid var(--st-line);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.st-top-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.st-top-brand strong {
  font-size: 15px;
}
@media (max-width: 480px) {
  /* На телефоне заголовок раздела есть на странице: в шапке остаётся логотип колледжа. */
  .st-top .st-top-title {
    visibility: hidden;
  }
}
.st-top .st-top-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.st-top-actions .theme-toggle-label {
  display: none;
}
.st-bell {
  position: relative;
}
.st-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: #c4314b;
}
.st-bell .st-badge {
  position: absolute;
  top: -4px;
  right: -4px;
}
.st-badge[hidden] {
  display: none;
}
#st-main {
  display: grid;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  outline: none;
}
.st-tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--st-surface) 92%, transparent);
  border-top: 1px solid var(--st-line);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
}
.st-tab {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 6px 2px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--st-muted);
}
.st-tab .icon {
  width: 22px;
  height: 22px;
}
.st-tab.active {
  color: var(--st-accent);
  background: var(--st-accent-soft);
  font-weight: 650;
}
@media (min-width: 960px) {
  .st-app {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
  }
  .st-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100vh;
    height: 100dvh;
    padding: 18px 14px;
    overflow-y: auto;
    background: var(--mac-sidebar, var(--st-raised));
    border-right: 1px solid var(--st-line);
  }
  .st-sidebar nav {
    display: grid;
    gap: 2px;
  }
  .st-main {
    padding-bottom: 32px;
  }
  .st-tabbar,
  .st-top-brand {
    display: none;
  }
  .st-top {
    padding-inline: 28px;
  }
  #st-main {
    padding: 24px 28px;
  }
}
.st-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 8px;
}
.st-brand strong,
.st-brand small {
  display: block;
}
.st-brand small,
.st-sidebar-user small {
  color: var(--st-muted);
  font-size: 12px;
}
.st-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 11px;
  color: var(--st-text);
}
.st-nav-link:hover {
  background: var(--mac-hover, var(--st-raised));
}
.st-nav-link.active {
  color: var(--st-accent);
  background: var(--st-accent-soft);
  font-weight: 650;
}
.st-nav-link span:not(.st-badge) {
  flex: 1;
  min-width: 0;
}
.st-nav-label {
  margin: 12px 10px 4px;
  font-size: 12px;
  font-weight: 650;
  color: var(--st-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 10px;
  border-radius: 14px;
  background: var(--st-surface);
  border: 1px solid var(--st-line);
}
.st-sidebar-user strong {
  display: block;
  font-size: 14px;
}
/* Карточки и заголовки */
.st-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}
.st-heading h2 {
  margin: 0;
  line-height: 1.2;
  font-size: clamp(22px, 5vw, 28px);
  letter-spacing: -0.01em;
}
.st-heading p {
  margin: 4px 0 0;
  color: var(--st-muted);
}
.st-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  background: var(--st-surface);
  box-shadow: var(--st-shadow);
}
.st-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.st-card-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 17px;
}
.st-card-head h3 .icon {
  color: var(--st-accent);
}
.st-card-title {
  margin: 0 0 6px;
  font-weight: 650;
}
.st-grid {
  display: grid;
  gap: 16px;
}
@media (max-width: 759px) {
  .st-grid.cert.has-requests > :last-child {
    order: -1;
  }
}
@media (min-width: 760px) {
  .st-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-grid.cert {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    align-items: start;
  }
}
.st-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.st-empty {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 36px 16px;
  text-align: center;
  color: var(--st-muted);
  border: 1px dashed var(--st-line);
  border-radius: var(--st-radius);
}
.st-empty .icon {
  width: 34px;
  height: 34px;
  color: var(--st-accent);
}
.st-empty h3 {
  margin: 4px 0 0;
  color: var(--st-text);
}
.st-empty p {
  margin: 0;
}
.st-hero h2 {
  margin: 2px 0 2px;
  font-size: clamp(22px, 5.4vw, 30px);
  letter-spacing: -0.01em;
}
.st-hero p {
  margin: 0;
  color: var(--st-muted);
}
.st-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--st-radius);
  background: var(--st-accent-soft);
  border: 1px solid color-mix(in srgb, var(--st-accent) 30%, transparent);
}
.st-callout > .icon {
  width: 26px;
  height: 26px;
  color: var(--st-accent);
}
.st-callout div {
  flex: 1;
  min-width: 200px;
}
.st-callout p {
  margin: 2px 0 0;
  color: var(--st-muted);
}
/* Таймер */
.st-timer {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, #6c58c4 0%, #4c3b8a 55%, #2f5f8f 100%);
  box-shadow: 0 14px 30px #4c3b8a33;
  overflow: hidden;
}
.st-timer.phase-break,
.st-timer.phase-before {
  background: linear-gradient(135deg, #1f8a6d 0%, #1d6a73 60%, #2f5f8f 100%);
  box-shadow: 0 14px 30px #1d6a7333;
}
.st-timer.phase-later {
  background: linear-gradient(135deg, #4b5d75, #34465c);
}
.st-timer.muted-timer,
.st-timer.loading {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--st-text);
  background: var(--st-surface);
  border: 1px solid var(--st-line);
  box-shadow: var(--st-shadow);
}
.st-timer.muted-timer > .icon {
  width: 32px;
  height: 32px;
  color: var(--st-accent);
}
.st-timer.muted-timer p {
  margin: 2px 0 0;
  color: var(--st-muted);
}
.st-timer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 14px;
}
.st-timer-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.st-timer-label .icon {
  width: 18px;
  height: 18px;
}
.st-timer-when {
  opacity: 0.85;
}
.st-timer-value {
  font-size: clamp(44px, 14vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff !important;
}
.st-timer-empty {
  display: block;
  font-size: 17px;
}
.st-timer-progress {
  height: 8px;
  border-radius: 4px;
  background: #ffffff33;
  overflow: hidden;
}
.st-timer-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width 0.9s linear;
}
.st-bell-table {
  width: 100%;
  border-collapse: collapse;
}
.st-bell-table th,
.st-bell-table td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid var(--st-line);
  font-variant-numeric: tabular-nums;
}
.st-bell-table th {
  font-size: 12px;
  font-weight: 650;
  color: var(--st-muted);
}
.st-bell-table tr.current td {
  background: var(--st-accent-soft);
  font-weight: 650;
}
.st-week details {
  border-top: 1px solid var(--st-line);
}
.st-week summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  cursor: pointer;
  list-style: none;
}
.st-week summary::-webkit-details-marker {
  display: none;
}
.st-week summary span {
  flex: 1;
  color: var(--st-muted);
}
.st-week details[open] summary .icon {
  transform: rotate(180deg);
}
/* Медиа-карточки: мероприятия и кружки */
.st-media-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.st-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--st-raised);
}
.st-cover.placeholder {
  display: grid;
  place-items: center;
  color: var(--st-accent);
  background: linear-gradient(135deg, var(--st-accent-soft), var(--st-raised));
}
.st-cover.placeholder .icon {
  width: 40px;
  height: 40px;
}
.st-media-body {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}
.st-media-body h3 {
  margin: 0;
  font-size: 17px;
}
.st-media-card.compact .st-cover {
  aspect-ratio: 2 / 1;
}
.st-event-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}
.st-date,
.st-place {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--st-accent);
}
.st-place {
  color: var(--st-muted);
  font-weight: 500;
}
.st-date .icon,
.st-place .icon,
.st-facts .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.st-facts {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--st-muted);
}
.st-facts li {
  display: flex;
  gap: 6px;
}
.st-text p {
  margin: 0 0 8px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.st-text a,
.st-check a {
  color: var(--st-accent);
  text-decoration: underline;
}
.st-text.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-links,
.st-request-actions,
.st-preview-actions,
.st-push-actions,
.st-profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.btn.small {
  min-height: 36px;
  padding: 6px 12px;
  font-size: 13px;
}
.st-past summary {
  margin-bottom: 12px;
  cursor: pointer;
  font-weight: 650;
  color: var(--st-muted);
}
/* Файлы */
.st-files {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.st-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: var(--st-raised);
}
.st-file > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.st-file strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-file small {
  color: var(--st-muted);
}
.st-file-kind {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--st-accent);
  background: var(--st-accent-soft);
}
.st-file-actions {
  display: flex;
  gap: 6px;
}
.st-preview {
  margin-top: 12px;
}
/* Формы */
.st-form {
  display: grid;
  gap: 14px;
}
.st-form label:not(.st-check):not(.st-radio) {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.st-form input:not([type='checkbox']):not([type='radio']),
.st-form select,
.st-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--st-line);
  border-radius: 12px;
  color: var(--st-text);
  background: var(--st-surface);
  font-size: 16px;
  font-weight: 400;
}
.st-form input[readonly] {
  background: var(--st-raised);
  color: var(--st-muted);
}
.st-form fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.st-form legend {
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 15px;
}
.st-form-row {
  display: grid;
  gap: 12px;
}
@media (min-width: 560px) {
  .st-form-row.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .st-form-row.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.st-radios {
  display: grid;
  gap: 8px;
}
.st-radio,
.st-check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: var(--st-surface);
  cursor: pointer;
}
.st-radio:has(input:checked),
.st-check:has(input:checked) {
  border-color: var(--st-accent);
  background: var(--st-accent-soft);
}
.st-radio input,
.st-check input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--st-accent);
}
.st-check span strong,
.st-check span small {
  display: block;
}
.st-check span small {
  margin-top: 2px;
  color: var(--st-muted);
  font-size: 13px;
  line-height: 1.5;
}
.st-hint {
  margin: 0;
  font-size: 13px;
  color: var(--st-muted);
}
.st-consent {
  display: grid;
  gap: 6px;
}
.st-consent details {
  padding: 0 4px 0 44px;
}
.st-consent summary,
.st-doc summary {
  cursor: pointer;
  color: var(--st-accent);
  font-weight: 600;
  font-size: 13px;
}
.st-doc-text {
  max-height: 260px;
  margin: 8px 0;
  padding: 12px;
  overflow: auto;
  border-radius: 12px;
  background: var(--st-raised);
  font-size: 13px;
  line-height: 1.6;
}
.st-doc-text p {
  margin: 0 0 8px;
}
/* Заявки и уведомления */
.st-requests,
.st-mini-list,
.st-notice-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.st-request {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
}
.st-request p {
  margin: 0;
}
.st-request-head,
.st-mini-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.st-note {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--st-raised);
  font-size: 13px;
}
.st-note .icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--st-accent);
}
.st-notice-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--st-line);
}
.st-notice-list li:last-child {
  border-bottom: 0;
}
.st-notice-list li > div {
  flex: 1;
  min-width: 0;
}
.st-notice-list p {
  margin: 2px 0;
  color: var(--st-muted);
}
.st-notice-list small {
  color: var(--st-muted);
  font-size: 12px;
}
.st-notice-list li.unread strong::after {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 8px;
  border-radius: 50%;
  background: #c4314b;
  vertical-align: middle;
}
.st-notice-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  color: var(--st-accent);
  background: var(--st-accent-soft);
}
.st-notice-icon .icon {
  width: 18px;
  height: 18px;
}
/* Соцсети и «Ещё» */
.st-social,
.st-more {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}
.st-social-link,
.st-more-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--st-line);
  border-radius: 16px;
  background: var(--st-surface);
  box-shadow: var(--st-shadow);
}
.st-social-link > span:nth-child(2),
.st-more-link span {
  flex: 1;
  min-width: 0;
}
.st-social-link strong,
.st-social-link small {
  display: block;
}
.st-social-link small {
  color: var(--st-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-social-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  font-weight: 700;
  color: #fff;
  background: #5b6b80;
}
.kind-vk .st-social-icon {
  background: #2d6fd1;
}
.kind-telegram .st-social-icon {
  background: #2591d0;
}
.kind-max .st-social-icon {
  background: #6a4ad8;
}
.kind-youtube .st-social-icon,
.kind-rutube .st-social-icon {
  background: #c8323c;
}
.kind-dzen .st-social-icon {
  background: #222;
}
.kind-ok .st-social-icon {
  background: #e77b1a;
}
.kind-site .st-social-icon {
  background: var(--st-accent);
}
.st-more-link .icon:first-child {
  color: var(--st-accent);
}
.st-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}
.st-profile h3 {
  margin: 0;
}
.st-profile p {
  margin: 2px 0 0;
}
.avatar.large {
  width: 64px;
  height: 64px;
  font-size: 22px;
}
.st-push-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.st-push-row p {
  margin: 0;
}
/* Экран первого входа */
.st-gate {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
}
.st-gate-card {
  display: grid;
  gap: 12px;
  width: min(640px, 100%);
  padding: 22px 18px;
  border: 1px solid var(--mac-line, var(--line));
  border-radius: 24px;
  background: var(--mac-surface, var(--theme-surface, #fff));
  box-shadow: var(--mac-shadow);
}
.st-gate-card h1 {
  margin: 0;
  font-size: clamp(22px, 5vw, 28px);
}
.st-gate-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-gate-brand > div {
  flex: 1;
}
.st-gate-brand strong,
.st-gate-brand small {
  display: block;
}
.st-gate-brand small,
.st-lead {
  color: var(--mac-secondary, var(--muted));
}
.st-gate-brand .theme-toggle-label {
  display: none;
}
.st-lead {
  margin: 0;
}
.st-gate-logout {
  justify-self: center;
}
.st-gate .st-form fieldset {
  padding: 14px;
  border: 1px solid var(--mac-line, var(--line));
  border-radius: 16px;
}
.st-gate .st-form label:not(.st-check):not(.st-radio) {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.st-gate .st-form input:not([type='checkbox']) {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--mac-line, var(--line));
  border-radius: 12px;
  font-size: 16px;
}
.st-modal .modal-body {
  overflow-wrap: anywhere;
}
/* Предпросмотр файлов (общий для студентов и сотрудников) */
.fp {
  min-width: 0;
}
.fp-status,
.fp-note {
  margin: 8px 0;
  color: var(--mac-secondary, var(--muted));
  font-size: 13px;
}
.fp-error {
  color: var(--red);
}
.fp-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
}
.fp-pages {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--mac-raised, #eef1f5);
}
.fp-page {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 10px #0000001f;
}
.fp-sheet h4 {
  margin: 12px 0 6px;
}
.fp-table-scroll {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--mac-line, var(--line));
  border-radius: 12px;
}
.fp-table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 13px;
}
.fp-table td {
  padding: 6px 10px;
  border: 1px solid var(--mac-line, var(--line));
  white-space: pre-wrap;
  vertical-align: top;
}
.fp-table tr:first-child td {
  font-weight: 650;
  background: var(--mac-header, #eaf0f6);
}
.fp-text {
  max-height: 70vh;
  overflow: auto;
  padding: 16px;
  border-radius: 12px;
  background: var(--mac-raised, #f3f6f9);
  line-height: 1.6;
}
.fp-text p {
  margin: 0 0 8px;
}
.fp-gap {
  height: 6px;
}
.fp-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--mac-line, var(--line));
}
html.student-mode body {
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .st-timer-progress i {
    transition: none;
  }
}

/* Логотип колледжа: белая подложка в обеих темах, как в шапке сайта сотрудников */
.st-college-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 4px 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px #0000001a;
}
.st-college-logo img {
  display: block;
  width: auto;
  height: 46px;
}
.st-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.st-brand small {
  padding-left: 4px;
}
.st-top-brand .st-college-logo {
  padding: 2px 6px;
  border-radius: 10px;
}
.st-top-brand .st-college-logo img {
  height: 34px;
}
.st-gate-brand .st-college-logo img {
  height: 40px;
}
/* Короткие карточки: подробности открываются по нажатию */
.st-clickable {
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.st-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px #0000001f;
}
.st-clickable:focus-visible {
  outline: 3px solid var(--st-accent);
  outline-offset: 3px;
}
.st-media-body h3,
.st-modal .modal-head h2 {
  overflow-wrap: anywhere;
}
.st-media-body h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.st-place span,
.st-facts.short li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.st-place,
.st-facts li {
  min-width: 0;
}
.st-more-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 650;
  color: var(--st-accent);
}
.st-more-hint .icon {
  width: 16px;
  height: 16px;
}
.st-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.st-detail-cover {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 14px;
}
.st-detail-meta {
  display: grid;
  gap: 6px;
}
.st-detail .st-text {
  overflow-wrap: anywhere;
  white-space: normal;
}
@media (prefers-reduced-motion: reduce) {
  .st-clickable {
    transition: none;
  }
  .st-clickable:hover {
    transform: none;
  }
}
/* Опросы: шкала 1–5 крупными кнопками */
.st-survey > .muted {
  margin: -4px 0 12px;
}
.st-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.st-scale-option {
  position: relative;
  cursor: pointer;
}
.st-scale-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.st-scale-option span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--st-line);
  border-radius: 14px;
  background: var(--st-surface);
  font-size: 18px;
  font-weight: 700;
}
.st-scale-option input:checked + span {
  border-color: var(--st-accent);
  background: var(--st-accent-soft);
  color: var(--st-accent);
}
.st-scale-option input:focus-visible + span {
  outline: 3px solid var(--st-accent);
  outline-offset: 2px;
}
