body {
  margin: 0;
  background: #0e0e10;
  color: #f5f5f5;
  font-family: Arial, sans-serif;
}

.site-header {
  border-bottom: 1px solid #2a2c33;
  background: #111216;
}

.header-bar {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  min-height: 52px;
}

.header-left {
  justify-self: start;
}

.header-logo-link {
  justify-self: center;
  display: inline-block;
}

.header-logo {
  max-width: 145px;
  width: 100%;
  height: auto;
  display: block;
  margin: -10px 0;
}

.header-menu-wrap {
  justify-self: end;
  position: relative;
  align-self: center;
}

.header-menu-wrap::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 170px;
  height: 12px;
}

.menu-toggle {
  min-height: 32px;
  min-width: 36px;
  padding: 4px 8px;
  position: relative;
  top: 1px;
  border: 1px solid #343844;
  border-radius: 8px;
  background: #d74b4b;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle[aria-expanded="true"] {
  background: #b63f3f;
  border-color: #ff8d8d;
  box-shadow: 0 0 0 2px rgba(255, 141, 141, 0.14), 0 0 18px rgba(215, 75, 75, 0.28);
}

.menu-toggle {
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.menu-toggle:hover {
  filter: brightness(1.08);
}

.menu-toggle[aria-expanded="true"] {
  background: #b63f3f;
  border-color: #ff8d8d;
  box-shadow: 0 0 0 2px rgba(255, 141, 141, 0.14), 0 0 18px rgba(215, 75, 75, 0.28);
  transform: translateY(0);
}

.icon-menu {
  font-size: 1.35rem;
  line-height: 1;
}

.header-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0;
  min-width: 170px;
  display: none;
  flex-direction: column;
  background: #17181c;
  border: 1px solid #2a2c33;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  z-index: 1000;
}

.header-dropdown.open {
  display: flex;
}

.header-menu-wrap:hover .header-dropdown {
  display: flex;
}

.menu-toggle:hover {
  filter: brightness(1.08);
}

.header-dropdown a {
  color: #ff8d8d;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #252831;
}

.header-dropdown a:last-child {
  border-bottom: 0;
}

.header-dropdown a:hover {
  background: #101116;
}

.page-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card {
  width: 100%;
  max-width: 1000px;
  background: #17181c;
  border: 1px solid #2a2c33;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 18px;
  text-align: center;
}

input, select, button {
  font: inherit;
}

input, select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 8px;
  border: 1px solid #343844;
  background: #101116;
  color: #fff;
  min-height: 38px;
}

button {
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #d74b4b;
  color: white;
  font-weight: 700;
  cursor: pointer;
  min-height: 38px;
}

a {
  color: #ff8d8d;
}

h1, h2, h3 {
  margin-top: 0;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.form-row > * {
  flex: 1 1 180px;
}

.message {
  color: #b9bcc6;
}

.inline-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.form-narrow {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
  text-align: left;
}

.form-narrow button {
  width: auto;
}

.user-list {
  list-style-position: inside;
  padding-left: 0;
  text-align: center;
}

@media (max-width: 700px) {
.header-bar {
  padding: 0 12px;
  min-height: 44px;
  grid-template-columns: 1fr auto 1fr;
}

.header-logo {
  max-width: 96px;
}

  .header-dropdown {
    min-width: 150px;
  }

  .page-wrap {
    padding: 20px 14px 28px;
  }

  .card {
    padding: 18px;
    border-radius: 14px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  input, select {
    min-height: 42px;
    font-size: 16px;
  }

  button {
    width: 100%;
    min-height: 42px;
  }

  .form-narrow {
    max-width: 100%;
  }

  .form-narrow button {
    width: 100%;
  }
}

.danger-btn {
  background: #8f2d2d;
}