.hn-factory > .nav-link {
  cursor: pointer;
  white-space: normal;
  max-width: 220px;
  line-height: 1.35;
  text-align: center;
}

.hn-factory > .dropdown-menu {
  min-width: 180px;
  text-align: start;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(7, 45, 42, 0.12);
}

.hn-factory:hover > .dropdown-menu,
.hn-factory:focus-within > .dropdown-menu,
.hn-factory > .dropdown-menu.show {
  display: block;
}

.hn-factory .dropdown-item {
  font-weight: 700;
  color: #072d2a;
}

.hn-factory .dropdown-item:hover,
.hn-factory .dropdown-item:focus {
  background: #d3b37d;
  color: #fff;
}

a.hn-admin-link {
  font-weight: 700;
  color: #d3b37d;
  text-decoration: none;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  transition: 0.5s ease-in-out;
}

a.hn-admin-link:hover,
a.hn-admin-link.active {
  color: #f5f5f5;
  background-color: #d3b37d;
}

body.hn-mode .loader,
body.hn-mode #loader {
  display: none !important;
  animation: none !important;
  visibility: hidden !important;
}

#hn-root {
  display: none;
  position: fixed;
  top: 92px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000001;
  overflow: auto;
  background: #f6f4ef;
  color: #072d2a;
}

body.hn-mode #hn-root {
  display: block;
}

.hn-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 20px 64px;
}

.hn-kicker {
  color: #d3b37d;
  font-weight: 700;
  margin-bottom: 6px;
}

.hn-page h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

.hn-lead {
  color: #5c675f;
  margin-bottom: 28px;
}

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

.hn-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(7, 45, 42, 0.06);
}

.hn-card h2 {
  font-size: 22px;
  margin: 0 0 12px;
}

.hn-card p {
  margin: 0 0 8px;
}

.hn-card a {
  color: #072d2a;
  font-weight: 700;
}

.hn-empty {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}

.hn-admin {
  display: flex;
  min-height: 100%;
}

.hn-admin-side {
  width: 260px;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.hn-admin-side a {
  font-weight: 700;
  color: #d3b37d;
  text-decoration: none;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 8px;
}

.hn-admin-side a:hover,
.hn-admin-side a.active {
  background: #d3b37d;
  color: #f5f5f5;
}

.hn-admin-main {
  flex: 1;
  padding: 28px 22px 48px;
}

.hn-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fff;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 22px;
}

.hn-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
}

.hn-form input {
  border: 1px solid #072d2a;
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.hn-form .hn-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
}

.hn-form button,
.hn-table button {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.hn-save {
  background: #072d2a;
  color: #fff;
}

.hn-cancel {
  background: #e7e2d6;
  color: #072d2a;
}

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

.hn-table th,
.hn-table td {
  padding: 12px;
  border-bottom: 1px solid #eee;
  text-align: start;
}

.hn-table th {
  background: #072d2a;
  color: #f5f5f5;
}

.hn-edit {
  background: #d3b37d;
  color: #fff;
  margin-inline-end: 6px;
}

.hn-delete {
  background: #8d2f2f;
  color: #fff;
}

.hn-note {
  color: #8d2f2f;
  margin-bottom: 12px;
}

@media (max-width: 800px) {
  .hn-admin {
    flex-direction: column;
  }

  .hn-admin-side {
    width: 100%;
  }

  .hn-form {
    grid-template-columns: 1fr;
  }

  .hn-factory > .nav-link {
    max-width: none;
    text-align: start;
  }
}
