html, body {
  height: 100%;
  margin: 0;
  background-color: #fafafa;
  overflow-x: hidden;
}

:root {
  --mirror-nav-height: 56px;
}

[hidden] {
  display: none !important;
}

.mirror-toolbar {
  background-color: #3f51b5 !important;
  color: #fff;
  min-height: var(--mirror-nav-height);
  width: 100%;
  padding: 0;
}

.container-app {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  align-items: center;
}

.c-flex {
  display: flex;
  align-items: center;
}

.spacer {
  flex: 1 1 auto;
}

.mirror-brand-link,
.mirror-nav-btn {
  color: #fff;
  text-decoration: none;
  font-family: Roboto, sans-serif;
  font-size: 14px;
}

.mirror-home-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  padding: 4px;
  margin-right: 4px;
}

.mirror-home-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mirror-home-icon {
  color: #fff;
  margin-right: 0;
}

.mirror-topnav {
  gap: 8px;
}

.mirror-nav-btn {
  padding: 8px 12px;
  border-radius: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.mirror-nav-btn-active {
  background: rgba(255, 255, 255, 0.15);
}

.mirror-nav-support {
  background: rgba(255, 255, 255, 0.1);
}

.mirror-nav-muted {
  opacity: 0.75;
  font-size: 12px;
}

.mirror-site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  min-height: var(--mirror-nav-height);
  background: #3f51b5;
}

.fix-nav,
.mirror-site-header .mat-toolbar.fix-nav,
mat-toolbar.fix-nav {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: auto;
  min-height: var(--mirror-nav-height);
  height: auto;
}

body > .main_content,
body.mat-typography > .main_content,
body.mirror-uni-body > .main_content {
  padding: 12px 0 48px !important;
  max-width: none !important;
  margin: 0 !important;
}

.main_content {
  padding: 12px 0 48px;
  max-width: none;
}

/* Официальные стили pk2026: fixed .header и большой padding у .main_content */
.main_content .header {
  position: static;
  top: auto;
  right: auto;
  left: auto;
  z-index: auto;
}

@media (max-width: 768px) {
  .mirror-nav-muted,
  .mirror-nav-external {
    display: none;
  }

  .mirror-topnav {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .mirror-nav-btn {
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .mirror-nav-support {
    font-size: 11px;
    max-width: 118px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .mirror-brand-link {
    font-size: 13px;
    max-width: 72px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mirror-toolbar .container-app {
    flex-wrap: nowrap;
    padding-top: 0;
    padding-bottom: 0;
    min-height: var(--mirror-nav-height);
  }

  .mirror-list-page-head {
    margin-top: 4px;
  }

  .mirror-filter-bar {
    margin-top: 12px;
  }

  .admission-complete-page .flex-between {
    flex-direction: column;
    gap: 12px;
  }

  .admission-complete-page .mirror-actions {
    width: 100%;
  }

  .admission-help-box {
    padding: 12px;
    font-size: 13px;
  }

  .admission-help-list {
    padding-left: 16px;
  }

  .admission-help-footnote {
    font-size: 12px;
  }

  .admission-section-title {
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .admission-complete-page .funding-legend {
    flex-wrap: wrap;
    gap: 8px;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.header-2 {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: Roboto, sans-serif;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.mirror-muted {
  color: rgba(0, 0, 0, 0.54);
}

.mirror-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}

.mirror-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mirror-admission-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.3;
  color: #444;
  cursor: pointer;
  background: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  max-width: 280px;
}

.mirror-admission-option input {
  margin-top: 2px;
  flex-shrink: 0;
}

.mirror-action-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mirror-hero-actions {
  margin-top: 20px;
  padding: 16px 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.mirror-hero-actions .mirror-actions {
  text-align: left;
}

.mirror-refresh-btn,
.mirror-back-link,
.mirror-source-link {
  display: inline-block;
  font-family: Roboto, sans-serif;
  font-size: 14px;
}

.mirror-refresh-btn {
  background: #3f51b5;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 16px;
  cursor: pointer;
}

.mirror-refresh-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.mirror-complete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  font-family: Roboto, sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.mirror-complete-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.34);
}

.mirror-complete-btn:active:not(:disabled) {
  transform: translateY(0);
}

.mirror-complete-btn:disabled {
  opacity: 0.72;
  cursor: wait;
  box-shadow: none;
}

.mirror-admission-launch {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, #f1f8f4 0%, #fff 100%);
  border: 1px solid #c8e6c9;
  border-radius: 12px;
}

.mirror-admission-launch-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.62);
}

.admission-ttl-banner {
  background: linear-gradient(135deg, #e8eaf6, #fff);
  border: 1px solid #c5cae9;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.admission-ttl-title {
  font-size: 16px;
  font-weight: 600;
  color: #283593;
  margin-bottom: 6px;
}

.admission-ttl-countdown {
  font-size: 22px;
  color: #1a237e;
  margin-bottom: 6px;
}

.admission-ttl-hint {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
}

.admission-ttl-expired {
  background: #ffebee;
  border-color: #ef9a9a;
}

.admission-ttl-expired .admission-ttl-title,
.admission-ttl-expired .admission-ttl-countdown {
  color: #b71c1c;
}

.admission-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
}

.admission-stat {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
}

.admission-program-total {
  margin: 8px 0 0;
  font-size: 14px;
}

.admission-help-box {
  margin: 12px 0 4px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f7f9fc;
  border: 1px solid rgba(25, 118, 210, 0.2);
  font-size: 14px;
  line-height: 1.5;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admission-help-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: rgba(0, 0, 0, 0.85);
}

.admission-help-list {
  margin: 0;
  padding-left: 20px;
  color: rgba(0, 0, 0, 0.72);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admission-help-list li {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admission-help-list li + li {
  margin-top: 8px;
}

.admission-help-footnote {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(25, 118, 210, 0.15);
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.65);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admission-complete-page {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

.admission-complete-page .mirror-hero {
  max-width: 100%;
  min-width: 0;
}

.admission-complete-page .mirror-hero.flex-between > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.admission-section-note {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.68);
}

.admission-section {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.admission-section.funding-budget {
  background: #f1f8f1;
  border-color: #a5d6a7;
}

.admission-section.funding-paid {
  background: #fff5f5;
  border-color: #ef9a9a;
}

.admission-section.funding-quota-special {
  background: #fffdf5;
  border-color: #ffe082;
}

.admission-section.funding-quota-separate {
  background: #faf5fc;
  border-color: #ce93d8;
}

.admission-section.funding-target {
  background: #f3f9ff;
  border-color: #90caf9;
}

.admission-section-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admission-section.funding-budget .admission-section-title {
  color: #2e7d32;
}

.admission-section.funding-paid .admission-section-title {
  color: #c62828;
}

.admission-section.funding-quota-special .admission-section-title {
  color: #f57f17;
}

.admission-section.funding-quota-separate .admission-section-title {
  color: #7b1fa2;
}

.admission-section.funding-target .admission-section-title {
  color: #1565c0;
}

.admission-table-wrap {
  overflow-x: auto;
}

.admission-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.admission-table th,
.admission-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
}

.admission-table th {
  background: rgba(0, 0, 0, 0.04);
  font-weight: 600;
}

.admission-quota-divider td {
  padding: 0;
  border: none;
  background: transparent;
}

.admission-quota-divider-label {
  display: block;
  margin: 10px 0 6px;
  padding: 6px 0 4px;
  border-top: 3px solid #e53935;
  font-size: 12px;
  font-weight: 600;
  color: #c62828;
  letter-spacing: 0.02em;
}

.admission-expired {
  margin-top: 24px;
  text-align: center;
}

.mirror-last-update {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.54);
}

.admission-result-banner {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  font-size: 14px;
  color: #1b5e20;
}

.admission-result-banner a {
  margin-left: 8px;
  color: #2e7d32;
  font-weight: 600;
}

.admission-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(2px);
}

.admission-progress-overlay[hidden] {
  display: none !important;
}

.admission-progress-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: #374151;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.admission-progress-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.admission-progress-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1a237e;
}

.admission-progress-message {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 16px;
  min-height: 20px;
}

.admission-progress-track {
  height: 12px;
  border-radius: 999px;
  background: #e8eaf6;
  overflow: hidden;
}

.admission-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #3949ab, #5c6bc0);
  transition: width 0.25s ease;
}

.admission-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
}

.mirror-applicant-search {
  margin: 18px 0 8px;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.admission-page-search {
  margin-bottom: 20px;
  max-width: 100%;
  overflow-x: hidden;
}

.admission-page-search .mirror-search-results {
  max-width: 100%;
}

.mirror-search-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.mirror-search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mirror-search-input {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  font-size: 14px;
}

.mirror-search-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #3f51b5;
  color: #fff;
  cursor: pointer;
}

.mirror-search-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.mirror-search-results {
  margin-top: 14px;
}

.mirror-search-summary,
.mirror-search-loading,
.mirror-search-empty {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 10px;
}

.mirror-search-divider {
  height: 1px;
  margin: 14px 0 12px;
  background: rgba(0, 0, 0, 0.12);
}

.mirror-search-enrollment {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mirror-search-enrollment-ok {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}

.mirror-search-enrollment-miss {
  background: #fff8e1;
  border: 1px solid #ffe082;
}

.mirror-search-enrollment-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.mirror-search-enrollment-details {
  font-size: 14px;
}

.mirror-search-enrollment-notes {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(0, 0, 0, 0.72);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mirror-search-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mirror-search-card {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mirror-search-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mirror-search-card-link {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: #3f51b5;
  text-decoration: none;
  flex: 1 1 180px;
  min-width: 0;
}

.mirror-search-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.72);
}

.mirror-search-card-note {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f5f7fb;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.75);
}

.mirror-search-note {
  min-width: 0;
  max-width: none;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(0, 0, 0, 0.68);
}

.mirror-search-table-wrap {
  overflow-x: auto;
}

.mirror-search-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.mirror-search-table th,
.mirror-search-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 13px;
  text-align: left;
  vertical-align: top;
}

.mirror-search-profile {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 4px;
}

.admission-featured-banner {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: 12px;
}

.admission-featured-enrolled {
  background: linear-gradient(135deg, #e8f5e9, #fff);
  border: 1px solid #a5d6a7;
}

.admission-featured-missed {
  background: linear-gradient(135deg, #fff8e1, #fff);
  border: 1px solid #ffe082;
}

.admission-featured-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.55);
  margin-bottom: 6px;
}

.admission-featured-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.admission-featured-details {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.72);
}

.mirror-applicant-seek-highlight {
  outline: 2px solid #f9a825 !important;
  background: rgba(255, 241, 118, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(249, 168, 37, 0.25);
}

.admission-row-highlight {
  background: #fff59d !important;
  outline: 3px solid #f9a825;
  box-shadow: 0 0 0 4px rgba(249, 168, 37, 0.25);
  animation: admission-row-pulse 1.2s ease-in-out 2;
}

.admission-table tr[data-applicant-code] {
  scroll-margin-top: 88px;
}

@keyframes admission-row-pulse {
  0%, 100% {
    background: #fff59d !important;
  }
  50% {
    background: #ffe082 !important;
  }
}

.mirror-faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.mirror-faculty-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mirror-faculty-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.mirror-faculty-card.has-data {
  border-color: #a5d6a7;
}

.mirror-faculty-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.mirror-faculty-id {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.mirror-faculty-status {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f5f5f5;
  color: rgba(0, 0, 0, 0.55);
}

.mirror-faculty-status-ok {
  background: #e8f5e9;
  color: #2e7d32;
}

.mirror-faculty-title {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1a237e;
}

.mirror-faculty-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mirror-faculty-stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  background: #f8f9ff;
}

.mirror-faculty-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #283593;
}

.mirror-faculty-stat-label {
  display: block;
  font-size: 11px;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 2px;
}

.mirror-faculty-action {
  font-size: 14px;
  font-weight: 600;
  color: #3f51b5;
}

.mirror-faculty-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 12px 0;
}

.mirror-faculty-summary-item {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.72);
}

.mirror-hero {
  margin-bottom: 8px;
}

.funding-legend {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.funding-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.funding-budget {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.funding-paid {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.funding-quota-special {
  background: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}

.funding-quota-separate {
  background: #f3e5f5;
  color: #7b1fa2;
  border: 1px solid #ce93d8;
}

.funding-target {
  background: #e3f2fd;
  color: #1565c0;
  border: 1px solid #90caf9;
}

.funding-unknown {
  background: #f5f5f5;
  color: #616161;
  border: 1px solid #e0e0e0;
}

.mirror-programs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 28px;
}

.mirror-program {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mirror-program-header {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mirror-program-code {
  flex-shrink: 0;
  background: #e8eaf6;
  color: #3f51b5;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 8px;
  min-width: 90px;
  text-align: center;
}

.mirror-program-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 500;
  font-family: Roboto, sans-serif;
}

.mirror-program-profile {
  margin: 0;
  color: rgba(0, 0, 0, 0.65);
  line-height: 1.45;
  font-size: 15px;
}

.mirror-program-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.mirror-funding-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mirror-funding-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.mirror-funding-link.funding-budget {
  background: #f1f8f1;
  border-color: #a5d6a7;
}

.mirror-funding-link.funding-paid {
  background: #fff5f5;
  border-color: #ef9a9a;
}

.mirror-funding-link.funding-quota-special {
  background: #fffdf5;
  border-color: #ffe082;
}

.mirror-funding-link.funding-quota-separate {
  background: #faf5fc;
  border-color: #ce93d8;
}

.mirror-funding-link.funding-target {
  background: #f3f9ff;
  border-color: #90caf9;
}

.mirror-funding-link.funding-unknown {
  background: #fafafa;
  border-color: #e0e0e0;
}

.mirror-funding-label {
  font-size: 20px;
  font-weight: 700;
}

.mirror-funding-link.funding-budget .mirror-funding-label {
  color: #2e7d32;
}

.mirror-funding-link.funding-paid .mirror-funding-label {
  color: #c62828;
}

.mirror-funding-link.funding-quota-special .mirror-funding-label {
  color: #f57f17;
}

.mirror-funding-link.funding-quota-separate .mirror-funding-label {
  color: #7b1fa2;
}

.mirror-funding-link.funding-target .mirror-funding-label {
  color: #1565c0;
}

.mirror-funding-action {
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
}

.mirror-funding-meta {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 4px;
}

.mirror-list-badge {
  display: inline-block;
  margin: 8px 0 0 12px;
  vertical-align: middle;
}

.mirror-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 16px auto 0;
  padding: 14px 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.mirror-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.mirror-filter-option input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.mirror-filter-dual span {
  color: #c62828;
  font-weight: 600;
}

.mirror-filter-budget span {
  color: #2e7d32;
  font-weight: 600;
}

.mirror-filter-priority span {
  color: #1565c0;
  font-weight: 600;
}

.mirror-filter-hint {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

.mirror-filter-status {
  margin-left: auto;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.54);
}

.mirror-cross-list-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 196px;
  pointer-events: none;
  z-index: 4;
}

.mirror-cross-list-row {
  position: absolute;
  left: 0;
  right: 0;
  min-height: 30.24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 3px 4px;
  padding: 2px 0;
  font-size: 10px;
  line-height: 1.15;
  box-sizing: border-box;
}

.mirror-cross-list-chip {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.72);
  white-space: nowrap;
  font-size: 10px;
}

.mirror-cross-list-chip.is-current {
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.mirror-cross-list-chip.is-budget {
  background: rgba(46, 125, 50, 0.14);
  color: #2e7d32;
}

.mirror-cross-list-chip.is-paid {
  background: rgba(198, 40, 40, 0.12);
  color: #c62828;
}

.mirror-cross-list-chip.is-quota-special {
  background: rgba(245, 127, 23, 0.14);
  color: #f57f17;
}

.mirror-cross-list-chip.is-quota-separate {
  background: rgba(123, 31, 162, 0.12);
  color: #7b1fa2;
}

.mirror-cross-list-chip.is-target {
  background: rgba(21, 101, 192, 0.12);
  color: #1565c0;
}

.mirror-cross-list-chip.is-passing {
  background: rgba(46, 125, 50, 0.12);
  color: #2e7d32;
}

.mirror-fast-report {
  position: relative;
}

.mirror-fast-report.has-cross-list {
  padding-right: 0;
}

.mirror-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.mirror-card {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mirror-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.mirror-card-code {
  font-weight: 600;
  color: #3f51b5;
  margin-bottom: 8px;
}

.mirror-card-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 6px;
}

.mirror-card-profile {
  color: rgba(0, 0, 0, 0.7);
  margin-bottom: 12px;
  line-height: 1.4;
}

.mirror-card-badge {
  display: inline-block;
  background: #e8eaf6;
  color: #3f51b5;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  margin-bottom: 12px;
}

.mirror-card-meta {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.54);
}

.mirror-warning {
  color: #d32f2f;
}

.mirror-report-wrap {
  width: 100%;
  margin: 0 auto;
}

.table-scroll {
  width: 100%;
  overflow: auto;
}

.content-box,
.mirror-fast-report {
  width: 100%;
  margin: 0 auto;
  background: #fff;
}

/* Скрываем встроенный чекбокс согласия FastReport — используем панель фильтров сайта */
.mirror-fast-report div[style*="top:151"][style*="left:514"],
.mirror-fast-report div[style*="top:150"][style*="left:490"] {
  display: none !important;
}

/* Белые фоновые полосы строк FastReport — не должны показывать текст/номера */
.mirror-fast-report [class*="cs49"],
.mirror-fast-report [class*="cs50"] {
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.mirror-fast-report [class*="cs50"] {
  display: none !important;
}

.mirror-empty {
  background: #fff;
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mirror-error {
  background: #ffebee;
  color: #b71c1c;
  padding: 12px;
  border-radius: 4px;
  white-space: pre-wrap;
}

.mirror-footer {
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.54);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mirror-footer a {
  color: #3f51b5;
}

.mirror-back-link,
.mirror-source-link {
  color: #3f51b5;
  text-decoration: none;
  margin-left: 12px;
}

.mb-3 a {
  color: #3f51b5;
  text-decoration: none;
}

.gray {
  color: rgba(0, 0, 0, 0.38);
}

.cursor {
  cursor: pointer;
}

.mr-1 {
  margin-right: 4px;
}

.mb-2 {
  margin-bottom: 8px;
}

.ml-2 {
  margin-left: 8px;
}

.hidden-sm {
  display: inline;
}

@media (max-width: 768px) {
  .hidden-sm {
    display: none;
  }

  .mirror-topnav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

/* Межвузовский портал */
.portal-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 45%, #f1f5f9 100%);
  font-family: Roboto, sans-serif;
  color: #1e293b;
}

.mirror-toolbar-agu {
  background-color: #003a94 !important;
}

.mirror-toolbar-kubgu {
  background-color: #6a1b9a !important;
}

.mirror-toolbar-mtuci {
  background-color: #c62828 !important;
}

.mirror-uni-body {
  margin: 0;
  font-family: Roboto, sans-serif;
  background: #f4f6fb;
}

.mirror-agu-report {
  padding: 20px 24px 28px;
}

.mirror-agu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
}

.mirror-agu-table th,
.mirror-agu-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: left;
  vertical-align: middle;
}

.mirror-agu-table thead th {
  background: #f5f7fb;
  font-weight: 600;
  color: #334155;
  position: sticky;
  top: 0;
  z-index: 1;
}

.mirror-agu-table tbody tr.mirror-row-passing {
  background: rgba(46, 125, 50, 0.08);
}

.mirror-agu-table tbody tr[hidden] {
  display: none;
}

.mirror-agu-code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.mirror-agu-cross-col {
  min-width: 120px;
}

.mirror-agu-cross-cell {
  white-space: nowrap;
}

.mirror-empty-cell {
  text-align: center;
  color: rgba(0, 0, 0, 0.54);
  padding: 24px !important;
}

.mirror-fast-report.mirror-agu-report-root {
  padding: 0;
  overflow: visible;
}

.mirror-fast-report.mirror-agu-report-root.has-cross-list {
  padding-right: 0;
}

.portal-header {
  background: #1e3a8a;
  color: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.15);
}

.portal-header-inner,
.portal-container,
.portal-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.portal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.portal-brand-icon {
  font-size: 24px;
}

.portal-header-badge {
  font-size: 12px;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 10px;
  border-radius: 999px;
}

.portal-main {
  padding: 32px 0 48px;
}

.portal-hero {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 28px;
}

.portal-hero-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.portal-hero-lead {
  margin: 0 0 24px;
  color: #475569;
  max-width: 760px;
  line-height: 1.55;
}

.portal-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-scrape-all-btn,
.portal-scrape-missing-btn {
  border: none;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.portal-scrape-all-btn {
  color: #fff;
  background: linear-gradient(135deg, #0f766e, #0d9488);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.2);
}

.portal-scrape-missing-btn {
  color: #0f766e;
  background: #fff;
  border: 1px solid #99f6e4;
}

.portal-scrape-all-btn:disabled,
.portal-scrape-missing-btn:disabled,
.portal-complete-all-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.portal-complete-all-btn {
  border: none;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.portal-complete-all-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.portal-hero-hint {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 14px;
}

.portal-section-title {
  margin: 0 0 16px;
  font-size: 20px;
}

.portal-uni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.portal-uni-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
  border-top: 4px solid var(--uni-accent, #2563eb);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-uni-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.portal-uni-short {
  font-weight: 700;
  color: var(--uni-accent, #2563eb);
  font-size: 18px;
}

.portal-uni-city {
  color: #94a3b8;
  font-size: 13px;
}

.portal-uni-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 500;
}

.portal-uni-stats {
  display: flex;
  gap: 16px;
}

.portal-uni-stat {
  display: flex;
  flex-direction: column;
}

.portal-uni-stat-value {
  font-weight: 700;
  font-size: 18px;
}

.portal-uni-stat-label {
  font-size: 12px;
  color: #64748b;
}

.portal-uni-meta {
  font-size: 12px;
  color: #64748b;
}

.portal-uni-open-btn {
  margin-top: auto;
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: var(--uni-accent, #2563eb);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
}

.portal-uni-soon {
  opacity: 0.92;
}

.portal-uni-soon-badge {
  display: inline-block;
  width: fit-content;
  background: #f1f5f9;
  color: #64748b;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.portal-uni-soon-text {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.portal-uni-soon-text a {
  color: #2563eb;
}

.portal-progress-card {
  max-width: 520px;
}

.portal-admission-uni-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.portal-admission-uni-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-admission-uni-running {
  background: rgba(37, 99, 235, 0.15);
}

.portal-admission-uni-done {
  background: rgba(34, 197, 94, 0.15);
}

.portal-admission-uni-error {
  background: rgba(239, 68, 68, 0.15);
}

.portal-admission-results {
  margin-top: 16px;
  padding: 14px 16px;
  background: #eff6ff;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
}

.portal-results-title {
  font-weight: 500;
  margin-bottom: 10px;
}

.portal-results-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-results-link {
  color: #1d4ed8;
  text-decoration: none;
  font-size: 14px;
}

.portal-uni-missing {
  color: #b45309;
}
  padding: 24px 0 32px;
  color: #64748b;
  font-size: 13px;
}

@media (max-width: 640px) {
  .portal-hero {
    padding: 20px;
  }

  .portal-hero-title {
    font-size: 22px;
  }

  .portal-uni-grid {
    grid-template-columns: 1fr;
  }
}
