.grameee-shell-mount {
  width: min(1180px, calc(100vw - 40px));
  margin: 18px auto 0;
  position: relative;
  z-index: 40;
}

.grameee-shell-mount *,
.download-modal *,
.auth-user-menu * {
  box-sizing: border-box;
}

a[hidden],
button[hidden],
[hidden] {
  display: none !important;
}

.grameee-shell-header {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 12px;
  background: rgba(247, 252, 247, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(36, 73, 45, 0.08);
}

.grameee-shell-brand {
  display: inline-flex;
  align-items: center;
  max-width: 320px;
  color: #193127;
  text-decoration: none;
}

.grameee-shell-brand strong,
.grameee-shell-nav .auth-user-name {
  font-family: "Libre Baskerville", Georgia, serif;
}

.grameee-shell-brand strong {
  display: block;
  font-size: 1rem;
}

.grameee-shell-brand small {
  display: block;
  color: #50675d;
  font-size: 0.82rem;
}

.grameee-shell-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.95rem;
  color: #50675d;
  align-items: center;
}

.grameee-shell-nav a {
  color: inherit;
  text-decoration: none;
}

.grameee-shell-nav a:hover,
.grameee-shell-nav a:focus-visible {
  color: #1f5b37;
}

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.download-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 31, 24, 0.58);
}

.download-modal-dialog {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  padding: 26px;
  z-index: 1;
  background: rgba(247, 252, 247, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(36, 73, 45, 0.12);
  color: #193127;
  backdrop-filter: blur(10px);
}

.download-form {
  display: grid;
  gap: 12px;
}

.download-form input,
.download-form textarea,
.download-form select {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(36, 73, 45, 0.12);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 14px;
  font: inherit;
  color: #193127;
}

.download-status {
  min-height: 24px;
  margin: 0;
  color: #1f5b37;
  font-weight: 600;
}

.download-status.error {
  color: #9b2c2c;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, #1f5b37, #3d8a53);
  color: #fff;
  box-shadow: 0 12px 22px rgba(36, 73, 45, 0.18);
}

.button.secondary {
  border: 1px solid rgba(36, 73, 45, 0.18);
  background: rgba(255, 255, 255, 0.56);
  color: #1f5b37;
}

.login-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.login-modal-actions .button {
  flex: 1 1 220px;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  color: #50675d;
  font-size: 0.95rem;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(36, 73, 45, 0.08);
  color: #1f5b37;
  font-size: 1.35rem;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b8f55;
  font-family: "Libre Baskerville", Georgia, serif;
}

.download-intro {
  margin: 0 0 16px;
  color: #50675d;
  line-height: 1.65;
}

.auth-user-menu {
  position: relative;
}

.auth-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  color: #1f5b37;
  font-weight: 600;
}

.auth-user-trigger::-webkit-details-marker {
  display: none;
}

.auth-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  padding: 10px;
  display: grid;
  gap: 6px;
  border-radius: 16px;
  background: rgba(247, 252, 247, 0.98);
  border: 1px solid rgba(36, 73, 45, 0.1);
  box-shadow: 0 14px 28px rgba(36, 73, 45, 0.12);
  z-index: 35;
}

.auth-user-action {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #193127;
  font: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.auth-user-action:hover,
.auth-user-action:focus-visible {
  background: rgba(223, 240, 229, 0.88);
  color: #1f5b37;
}

@media (max-width: 760px) {
  .grameee-shell-mount {
    width: min(100vw - 24px, 1180px);
    margin-top: 12px;
  }

  .grameee-shell-header {
    position: static;
  }

  .grameee-shell-nav {
    gap: 12px;
  }

  .grameee-shell-brand {
    max-width: 220px;
  }

  .auth-user-dropdown {
    right: auto;
    left: 0;
    min-width: 210px;
  }

  .download-modal {
    padding: 16px;
  }

  .download-modal-dialog {
    padding: 22px 18px;
  }
}
