.itfest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--itfest-space-2);
  min-height: var(--itfest-control-h);
  padding: 0 var(--itfest-control-px);
  border: none;
  border-radius: var(--itfest-r-md);
  background: var(--itfest-brand);
  color: var(--itfest-ink-inverse);
  font-size: var(--itfest-fs-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.itfest-btn:hover {
  background: var(--itfest-brand-hover);
  color: var(--itfest-ink-inverse);
}

.itfest-btn--track {
  background: var(--itfest-track);
}

.itfest-btn--track:hover {
  filter: brightness(0.95);
  color: var(--itfest-ink-inverse);
}

.itfest-btn--hack {
  background: var(--itfest-hack);
}

.itfest-btn--hack:hover {
  filter: brightness(0.95);
  color: var(--itfest-ink-inverse);
}

.itfest-btn--startup {
  background: var(--itfest-startup);
}

.itfest-btn--startup:hover {
  filter: brightness(0.95);
  color: var(--itfest-ink-inverse);
}

.itfest-btn--secondary {
  background: var(--itfest-surface);
  color: var(--itfest-ink);
  border: 1px solid var(--itfest-line-strong);
}

.itfest-btn--secondary:hover {
  background: var(--itfest-surface-2);
  color: var(--itfest-ink);
}

.itfest-btn--ghost {
  background: transparent;
  color: var(--itfest-ink-2);
  border: 1px solid transparent;
}

.itfest-btn--ghost:hover {
  background: var(--itfest-surface-2);
  color: var(--itfest-ink);
}

.itfest-btn--sm {
  min-height: var(--itfest-control-h-sm);
  padding: 0 var(--itfest-control-px-sm);
  font-size: var(--itfest-fs-xs);
}

.itfest-btn--block {
  width: 100%;
}

.itfest-btn:disabled,
.itfest-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.itfest-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--itfest-r-pill);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.itfest-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.itfest-chip--success {
  background: var(--itfest-success-soft);
  color: var(--itfest-success);
}

.itfest-chip--success .itfest-chip__dot {
  background: var(--itfest-success);
}

.itfest-chip--warning {
  background: var(--itfest-warning-soft);
  color: var(--itfest-warning);
}

.itfest-chip--warning .itfest-chip__dot {
  background: var(--itfest-warning);
}

.itfest-chip--danger {
  background: var(--itfest-danger-soft);
  color: var(--itfest-danger);
}

.itfest-chip--danger .itfest-chip__dot {
  background: var(--itfest-danger);
}

.itfest-chip--info {
  background: var(--itfest-info-soft);
  color: var(--itfest-info);
}

.itfest-chip--info .itfest-chip__dot {
  background: var(--itfest-info);
}

.itfest-chip--track {
  background: var(--itfest-track-soft);
  color: var(--itfest-track);
}

.itfest-chip--track .itfest-chip__dot {
  background: var(--itfest-track);
}

.itfest-chip--neutral {
  background: var(--itfest-surface-2);
  color: var(--itfest-ink-2);
}

.itfest-chip--neutral .itfest-chip__dot {
  background: var(--itfest-ink-3);
}

.itfest-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--itfest-r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.itfest-role-badge--admin {
  background: var(--itfest-info-soft);
  color: var(--itfest-info);
}

.itfest-role-badge--jury {
  background: var(--itfest-startup-soft);
  color: var(--itfest-startup);
}

.itfest-role-badge--participant {
  background: var(--itfest-cyber-soft);
  color: var(--itfest-cyber);
}

.itfest-role-badge--system {
  background: var(--itfest-surface-2);
  color: var(--itfest-ink-2);
}

.itfest-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--itfest-r-pill);
  background: var(--itfest-brand-soft);
  color: var(--itfest-brand-ink);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.itfest-avatar--sm {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.itfest-avatar--track {
  background: var(--itfest-track-soft);
  color: var(--itfest-track);
}

.itfest-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.itfest-field__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--itfest-ink-2);
}

.itfest-field__hint {
  font-size: 11px;
  color: var(--itfest-ink-3);
}

.itfest-input,
.itfest-select,
.itfest-textarea {
  width: 100%;
  min-height: var(--itfest-control-h);
  padding: 0 var(--itfest-control-px-sm);
  border: 1px solid var(--itfest-line);
  border-radius: var(--itfest-r-md);
  background: var(--itfest-surface);
  color: var(--itfest-ink);
  font-size: var(--itfest-fs-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.itfest-textarea {
  min-height: 7.5rem;
  padding: var(--itfest-space-3) var(--itfest-control-px-sm);
  resize: vertical;
}

.itfest-input::placeholder,
.itfest-textarea::placeholder {
  color: var(--itfest-ink-3);
}

.itfest-input:focus,
.itfest-select:focus,
.itfest-textarea:focus {
  outline: none;
  border-color: var(--itfest-brand);
  box-shadow: 0 0 0 3px rgba(91, 78, 240, 0.12);
}

[data-track="hackathon"] .itfest-input:focus,
[data-track="hackathon"] .itfest-select:focus,
[data-track="hackathon"] .itfest-textarea:focus,
[data-track="hackathon"] .itfest-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
[data-track="hackathon"] .itfest-field select:focus,
[data-track="hackathon"] .itfest-field textarea:focus {
  border-color: var(--itfest-hack);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.14);
}

[data-track="startup"] .itfest-input:focus,
[data-track="startup"] .itfest-select:focus,
[data-track="startup"] .itfest-textarea:focus,
[data-track="startup"] .itfest-field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):focus,
[data-track="startup"] .itfest-field select:focus,
[data-track="startup"] .itfest-field textarea:focus {
  border-color: var(--itfest-startup);
  box-shadow: 0 0 0 3px rgba(255, 106, 61, 0.14);
}

.itfest-input--readonly,
.itfest-input:read-only {
  background: var(--itfest-surface-2);
  color: var(--itfest-ink-2);
}

.itfest-search {
  position: relative;
}

.itfest-search .itfest-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--itfest-ink-3);
  pointer-events: none;
}

.itfest-search .itfest-input {
  padding-left: 42px;
}

.itfest-nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--itfest-control-h);
  padding: 0 var(--itfest-control-px-sm);
  border-radius: var(--itfest-r-md);
  color: var(--itfest-ink-2);
  font-size: var(--itfest-fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.itfest-nav-item:hover {
  background: var(--itfest-surface-2);
  color: var(--itfest-ink);
}

.itfest-nav-item.is-active {
  background: var(--itfest-track-soft);
  color: var(--itfest-track);
  box-shadow: inset 3px 0 0 var(--itfest-track);
}

.itfest-nav-item__icon-wrap {
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.itfest-nav-item__icon-wrap svg,
.itfest-nav-item__icon-wrap img,
.itfest-nav-item__icon,
.itfest-nav-item__icon-wrap .itfest-icon {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0;
  transform: none;
  flex-shrink: 0;
}

.itfest-nav-item__label {
  min-width: 0;
  line-height: 1.3;
}

.itfest-track-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--itfest-space-2);
  width: 100%;
  min-height: var(--itfest-control-h-lg);
  padding: 0 var(--itfest-space-3);
  border: none;
  border-radius: var(--itfest-r-md);
  background: var(--itfest-track-soft);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.itfest-track-switcher__main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.itfest-track-switcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--itfest-r-sm);
  background: var(--itfest-track);
  color: var(--itfest-ink-inverse);
  flex-shrink: 0;
}

.itfest-track-switcher__icon svg {
  width: 17px;
  height: 17px;
}

.itfest-track-switcher__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.itfest-track-switcher__label {
  font-size: 9px;
  font-weight: 600;
  color: var(--itfest-ink-3);
}

.itfest-track-switcher__value {
  font-family: var(--itfest-font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--itfest-ink);
}

.itfest-track-switcher__chevron {
  width: 16px;
  height: 16px;
  color: var(--itfest-track);
  flex-shrink: 0;
}

.itfest-track-menu {
  position: relative;
}

.itfest-track-menu__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--itfest-line);
  border-radius: var(--itfest-r-md);
  background: var(--itfest-surface);
  box-shadow: var(--itfest-shadow-md);
}

.itfest-track-menu__panel[hidden] {
  display: none;
}

.itfest-track-menu__option {
  display: block;
  padding: 10px 12px;
  border-radius: var(--itfest-r-sm);
  color: var(--itfest-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.itfest-track-menu__option:hover {
  background: var(--itfest-surface-2);
  color: var(--itfest-ink);
}

.itfest-profile-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--itfest-r-md);
  background: var(--itfest-surface-2);
}

.itfest-profile-card__info {
  flex: 1;
  min-width: 0;
}

.itfest-profile-card__name {
  font-size: 12px;
  font-weight: 700;
  color: var(--itfest-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itfest-profile-card__meta {
  font-size: 10px;
  color: var(--itfest-ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.itfest-profile-card__settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: var(--itfest-r-sm);
  background: transparent;
  color: var(--itfest-ink-3);
}

.itfest-profile-card__settings .itfest-nav-item__icon,
.itfest-profile-card__settings .itfest-icon {
  width: 16px;
  height: 16px;
}

.itfest-profile-card__settings:hover {
  background: var(--itfest-surface);
  color: var(--itfest-ink-2);
}

.itfest-card {
  background: var(--itfest-surface);
  border: 1px solid var(--itfest-line);
  border-radius: var(--itfest-r-lg);
  box-shadow: var(--itfest-shadow-sm);
}

.itfest-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--itfest-gap);
  padding: var(--itfest-card-pad) var(--itfest-card-pad) 0;
}

.itfest-card__body {
  padding: var(--itfest-space-4) var(--itfest-card-pad) var(--itfest-card-pad);
}

.itfest-card__title {
  font-size: var(--itfest-fs-sm);
  font-weight: 700;
}

.itfest-card__subtitle {
  margin-top: var(--itfest-space-1);
  font-size: var(--itfest-fs-xs);
  color: var(--itfest-ink-3);
}

.itfest-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: var(--itfest-gap-sm);
}

.itfest-stat-card {
  padding: var(--itfest-card-pad-sm) var(--itfest-card-pad);
  border-radius: var(--itfest-r-lg);
  background: var(--itfest-surface);
  border: 1px solid var(--itfest-line);
}

.itfest-stat-card__label {
  font-size: 12px;
  color: var(--itfest-ink-3);
}

.itfest-stat-card__value {
  margin-top: var(--itfest-space-2);
  font-family: var(--itfest-font-display);
  font-size: var(--itfest-fs-kpi);
  font-weight: 700;
  color: var(--itfest-ink);
}

.itfest-stat-card__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: middle;
}

.itfest-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.itfest-tab {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--itfest-line);
  border-radius: var(--itfest-r-pill);
  background: var(--itfest-surface);
  color: var(--itfest-ink-2);
  font-size: 12px;
  font-weight: 600;
}

.itfest-tab:hover {
  background: var(--itfest-surface-2);
  color: var(--itfest-ink);
}

.itfest-tab.is-active {
  background: var(--itfest-ink);
  border-color: var(--itfest-ink);
  color: var(--itfest-ink-inverse);
}

.itfest-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--itfest-line);
  border-radius: var(--itfest-r-lg);
  background: var(--itfest-surface);
}

.itfest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.itfest-table th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--itfest-line);
  background: var(--itfest-surface-2);
  color: var(--itfest-ink-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.itfest-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--itfest-line);
  color: var(--itfest-ink);
  vertical-align: middle;
}

.itfest-table tr:last-child td {
  border-bottom: none;
}

.itfest-table tbody tr:hover {
  background: rgba(247, 248, 252, 0.7);
}

.itfest-progress {
  display: flex;
  gap: 4px;
}

.itfest-progress__segment {
  flex: 1;
  height: 8px;
  border-radius: var(--itfest-r-pill);
  background: var(--itfest-line);
}

.itfest-progress__segment.is-filled {
  background: var(--itfest-track);
}

.itfest-toggle {
  position: relative;
  display: inline-flex;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.itfest-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.itfest-toggle__track {
  width: 100%;
  height: 100%;
  border-radius: var(--itfest-r-pill);
  background: var(--itfest-line-strong);
  transition: background 0.15s ease;
}

.itfest-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--itfest-surface);
  box-shadow: var(--itfest-shadow-sm);
  transition: transform 0.15s ease;
}

.itfest-toggle input:checked + .itfest-toggle__track {
  background: var(--itfest-brand);
}

.itfest-toggle input:checked ~ .itfest-toggle__thumb {
  transform: translateX(20px);
}

.itfest-message {
  padding: 12px 14px;
  border-radius: var(--itfest-r-md);
  font-size: 13px;
}

.itfest-message--success {
  background: var(--itfest-success-soft);
  color: var(--itfest-success);
}

.itfest-message--warning {
  background: var(--itfest-warning-soft);
  color: #b54708;
}

.itfest-message--error {
  background: var(--itfest-danger-soft);
  color: var(--itfest-danger);
}

.itfest-message--info {
  background: var(--itfest-info-soft);
  color: var(--itfest-info);
}

.itfest-countdown {
  font-family: var(--itfest-font-mono);
  font-size: var(--itfest-fs-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--itfest-ink);
}

.itfest-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.itfest-logo img,
.itfest-logo svg {
  display: block;
}

.itfest-logo img[width] {
  width: auto;
  max-width: none;
}

.itfest-logo--color img,
.itfest-logo--white img {
  height: 38px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.itfest-logo svg {
  width: 104px;
  height: 38px;
}

.itfest-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.itfest-icon--sm {
  width: 16px;
  height: 16px;
}

.itfest-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--itfest-ink-3);
  font-size: 12px;
}

.itfest-divider::before,
.itfest-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--itfest-line);
}

.itfest-link {
  color: var(--itfest-track);
  text-decoration: none;
  font-weight: 600;
}

.itfest-school-select {
  position: relative;
  display: grid;
  gap: 8px;
}

.itfest-school-select__control {
  position: relative;
  display: flex;
  align-items: stretch;
}

.itfest-school-select__control .itfest-school-select__search {
  width: 100%;
  padding-right: 42px;
}

.itfest-school-select__search::-webkit-search-cancel-button,
.itfest-school-select__search::-webkit-search-decoration,
.itfest-school-select__search::-webkit-search-results-button,
.itfest-school-select__search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.itfest-school-select__toggle {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 1;
  width: 40px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--itfest-muted, #64748b);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}

.itfest-school-select__toggle svg {
  width: 18px;
  height: 18px;
}

.itfest-school-select__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--itfest-border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.itfest-school-select__option {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: var(--itfest-fs-sm, 14px);
}

.itfest-school-select__option:hover,
.itfest-school-select__option:focus {
  background: rgba(249, 115, 22, 0.08);
}

.itfest-school-select__other-label {
  margin: 0 0 6px;
  font-size: var(--itfest-fs-sm, 14px);
  color: var(--itfest-muted, #64748b);
}

.itfest-school-select__error {
  display: block;
  font-size: var(--itfest-fs-sm, 14px);
  color: var(--itfest-danger, #dc2626);
}

.itfest-link--brand {
  color: var(--itfest-brand);
  font-weight: 600;
}

.itfest-link:hover {
  color: var(--itfest-brand-hover);
}

.itfest-link--muted {
  color: var(--itfest-ink-2);
  font-weight: 600;
}

.itfest-link--muted:hover {
  color: var(--itfest-ink);
}
