.page-shell {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(90deg, rgba(16,18,24,0.95), rgba(20,24,31,0.84));
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

.page-shell-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 6px 0;
}

.page-shell-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.shell-brand {
  text-decoration: none;
  line-height: 1;
}

.shell-brand .brand {
    
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #ffffff;
}

.shell-brand .brand span {
  color: var(--accent);
}

.page-shell-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  min-height: 30px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: #f0f3f5;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
  transition: 0.2s ease;
}

.page-shell-home:hover,
.page-shell-home:focus {
  background: rgba(213,179,106,0.16);
  border-color: rgba(213,179,106,0.45);
  color: #fff7df;
}

.page-shell-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.page-shell-title {
  margin: 0;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
}

.page-shell-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.page-shell-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.page-shell-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  min-height: 30px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: #f0f3f5;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
  transition: 0.2s ease;
}

.page-shell-link:hover,
.page-shell-link:focus,
.page-shell-link.is-active {
  background: rgba(213,179,106,0.16);
  border-color: rgba(213,179,106,0.45);
  color: #fff7df;
}

.page-shell-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.page-shell-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: 999px;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: #f0f3f5;
  font-weight: 700;
  font-size: 0.8rem;
  line-height: 1;
  white-space: nowrap;
  transition: 0.2s ease;
}

.page-shell-back:hover,
.page-shell-back:focus {
  background: rgba(213,179,106,0.16);
  border-color: rgba(213,179,106,0.45);
  color: #fff7df;
}

@media (max-width: 1200px) {
  .page-shell-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
    min-height: auto;
  }

  .page-shell-left,
  .page-shell-center,
  .page-shell-right {
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .page-shell-left {
    order: 1;
  }

  .page-shell-center {
    order: 2;
  }

  .page-shell-right {
    order: 3;
  }

  .page-shell-nav {
    justify-content: center;
  }

  .page-shell-title {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .shell-brand .brand {
    font-size: 1.4rem;
  }

  .page-shell-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .page-shell-link,
  .page-shell-home {
    font-size: 0.74rem;
    padding: 4px 9px;
    min-height: 28px;
  }
}