/* Уральское сообщество бизнес-инженеров — стили */
:root {
  --bg: #0f1419;
  --bg-elevated: #1a222d;
  --surface: #232f3e;
  --text: #e8edf4;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --border: rgba(148, 163, 184, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: "Manrope", system-ui, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --header-h: 120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Чтобы заголовки секций не прятались под липкой шапкой при переходе по якорям */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.logo-mark {
  width: 76px;
  height: 76px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.logo-text {
  display: inline;
}

.logo-text-brand {
  color: #fff;
}

.logo-text-sub {
  font-weight: 500;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(0.5rem, 1.4vw, 1.75rem);
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.5rem 1rem;
  background: var(--accent-soft);
  color: var(--accent) !important;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.nav-cta:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #93c5fd !important;
}

.nav-dropdown {
  position: relative;
  flex-shrink: 0;
}

.nav-dropdown__trigger {
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-dropdown__trigger:hover {
  color: var(--text);
}

.nav-dropdown__menu {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  left: 0;
  top: calc(100% + 0.35rem);
  min-width: min(320px, 92vw);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 200;
}

.nav-dropdown__menu a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.nav-dropdown__menu a:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 1100px) {
  .logo-mark {
    width: 64px;
    height: 64px;
  }

  .logo {
    font-size: clamp(0.95rem, 3.2vw, 1.15rem);
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 1rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
  }

  .nav a:hover {
    background: var(--surface);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown__trigger {
    width: 100%;
    text-align: left;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
  }

  .nav-dropdown__trigger:hover {
    color: var(--text);
    background: var(--surface);
  }

  .nav-dropdown__menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0.35rem 0.75rem;
    min-width: 0;
    background: transparent;
  }

  .nav-dropdown.is-open .nav-dropdown__menu {
    display: block;
  }

  .nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-dropdown__menu a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    white-space: normal;
  }

  .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.25), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.12), transparent),
    linear-gradient(180deg, var(--bg) 0%, #121a22 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.hero-primary {
  min-width: 0;
}

.hero-pitch {
  margin: 0;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.hero-pitch-lead {
  margin: 0 0 1.25rem;
  color: var(--text);
}

.hero-pitch-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.hero-pitch-list {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hero-pitch-list li {
  padding-left: 0.35rem;
}

.hero-pitch-list li strong {
  color: var(--text);
  font-weight: 600;
}

.hero-pitch-result {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.hero-pitch-result strong {
  color: var(--text);
}

.hero-pitch-question {
  margin: 0;
  font-weight: 600;
  color: var(--accent);
  font-size: 1rem;
}

@media (max-width: 960px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1.25rem;
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: #93c5fd;
}

.hero-lead {
  margin: 0 0 2rem;
  max-width: 42ch;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--border);
}

.hero-stats div {
  margin: 0;
}

.hero-stats dt {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero-stats dd {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

@media (max-width: 600px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section.benefits {
  background: var(--bg-elevated);
}

.section.about,
.section.events,
.section.contact {
  background: var(--bg);
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 640px;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.card-feature h3 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.card-feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.card-feature p + p {
  margin-top: 0.75rem;
}

.vision-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.vision-text p + p {
  margin-top: 0.75rem;
}

/* Benefits */
.benefits-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.benefits-list li {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.benefits-list strong {
  font-size: 1.0625rem;
  font-weight: 600;
}

.benefits-list span {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 640px) {
  .benefits-list li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .events-grid {
    grid-template-columns: 1fr;
  }
}

.event-card time {
  display: block;
  margin-bottom: 0.75rem;
}

.event-card-date-line {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-card-time-line {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
}

.event-card-telemost-wrap {
  margin: 0 0 0.85rem;
}

.event-card-telemost {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(
    135deg,
    rgba(252, 76, 2, 0.18) 0%,
    rgba(255, 140, 66, 0.12) 100%
  );
  border: 1px solid rgba(252, 76, 2, 0.35);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.event-card-telemost:hover {
  border-color: rgba(252, 140, 90, 0.55);
  background: linear-gradient(
    135deg,
    rgba(252, 76, 2, 0.26) 0%,
    rgba(255, 140, 66, 0.18) 100%
  );
  transform: translateY(-1px);
}

.event-card-telemost__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(252, 76, 2, 0.35);
  color: #fff;
  font-size: 0.75rem;
  line-height: 1;
}

.event-card-telemost__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.event-card-telemost__action {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.event-card-telemost__brand {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.event-card-venue-wrap {
  margin: 0 0 0.75rem;
}

.event-card-venue {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  line-height: 1.35;
  max-width: 100%;
}

.event-card-venue:hover {
  color: #bfdbfe;
}

.event-card-venue__icon {
  flex-shrink: 0;
  line-height: 1.35;
  text-decoration: none;
}

.event-card-venue__text {
  min-width: 0;
  word-break: break-word;
}

.event-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.event-card-image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  border: 1px solid var(--border);
}

.event-card p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.tag {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #93c5fd;
}

.tag-members {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.content-materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.content-material-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.content-material-card__summary {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.content-material-card__link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.content-material-card__link:hover {
  color: #93c5fd;
}

.event-card-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.event-card-materials {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.event-card-materials:hover {
  color: #bfdbfe;
}

/* Contact */
.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.75rem !important;
  cursor: pointer;
}

.checkbox input {
  margin-top: 0.2rem;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--accent);
}

.form-note {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-note--error {
  color: #f87171;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-brand p {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-telegram,
.footer-email {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.footer-telegram:hover,
.footer-email:hover {
  text-decoration: underline;
  color: #93c5fd;
}

@media (max-width: 600px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    align-items: flex-start;
  }
}

/* Пустой блок мероприятий */
.events-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

/* Админ-страница */
.admin-page .nav-toggle {
  display: none;
}

@media (max-width: 900px) {
  .admin-page .nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    flex-direction: row;
    padding: 0;
    border: none;
    background: transparent;
  }
}

.admin-main {
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

.admin-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
}

.admin-lead {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 52ch;
}

.admin-nav {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.15rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.admin-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
}

.admin-nav-list a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.admin-nav-list a:hover {
  color: var(--text);
  background: var(--surface);
}

.admin-nav-list a[aria-current="page"] {
  color: var(--text);
  background: var(--surface);
  font-weight: 600;
}

body.admin-page .admin-section {
  scroll-margin-top: calc(var(--header-h) + 5rem);
}

.admin-h2 {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.admin-h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.admin-card {
  margin-bottom: 1.5rem;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.admin-form input,
.admin-form textarea,
.admin-form select {
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  outline: none;
  border-color: var(--accent);
}

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.admin-span-2 {
  grid-column: span 2;
}

.admin-event-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.admin-checkbox {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.75rem !important;
  cursor: pointer;
}

.admin-checkbox input {
  margin-top: 0.2rem;
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--accent);
}

@media (max-width: 560px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-span-2 {
    grid-column: span 1;
  }
}

.admin-error {
  color: #f87171;
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  min-height: 1.25rem;
}

.admin-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-event-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-event-item--empty {
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.admin-event-item__main {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.admin-event-item__main strong {
  font-size: 0.8125rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-event-item__main span {
  font-weight: 600;
  word-break: break-word;
}

.admin-event-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .admin-event-item {
    flex-direction: column;
    align-items: stretch;
  }
}

.admin-config-email {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  word-break: break-all;
}

.admin-config-email code,
.form-note code {
  font-size: 0.85em;
  background: var(--bg-elevated);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.admin-applications {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.admin-app-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.admin-app-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-app-status {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #93c5fd;
  flex-shrink: 0;
}

.admin-app-status--replied {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.admin-app-msg {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-app-reply-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

textarea.admin-reply-text {
  margin-top: 0.4rem;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  min-height: 100px;
}

.admin-app-card .admin-reply-send {
  margin-top: 0.75rem;
}
