/* Global account menu + profile modal (all signed-in pages). */
.gluto-acct-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.gluto-acct-btn {
  appearance: none;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #1c1917;
  border-radius: 0.5rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.gluto-acct-btn:hover {
  background: #f5f5f4;
  border-color: #a8a29e;
}
/* Home / marketing nav uses a light bar — use dark text (not white-on-white). */
.lp-nav-actions .gluto-acct-btn {
  border-color: #d6d3d1;
  background: #fff;
  color: #1c1917;
}
.lp-nav-actions .gluto-acct-btn:hover {
  background: #f5f5f4;
  border-color: #a8a29e;
}
.gluto-acct-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 11rem;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 9000;
  padding: 0.35rem 0;
}
.gluto-acct-menu[hidden] {
  display: none !important;
}
.gluto-acct-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  color: #1c1917;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}
.gluto-acct-menu-item:hover {
  background: #f5f5f4;
}
.gluto-acct-menu-logout {
  color: #b91c1c;
  border-top: 1px solid #f5f5f4;
  margin-top: 0.25rem;
  padding-top: 0.65rem;
}

/* Profile modal */
.gluto-profile-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.gluto-profile-modal[hidden] {
  display: none !important;
}
.gluto-profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.gluto-profile-box {
  position: relative;
  width: min(520px, 100%);
  max-height: min(85vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.gluto-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e7e5e4;
}
.gluto-profile-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}
.gluto-profile-close {
  appearance: none;
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #78716c;
  padding: 0.25rem;
}
.gluto-profile-close:hover {
  color: #1c1917;
}
.gluto-profile-body {
  padding: 1rem 1.25rem 1.25rem;
}
.gluto-profile-section {
  margin-bottom: 1.25rem;
}
.gluto-profile-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #78716c;
}
.gluto-profile-dl {
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.gluto-profile-dl > div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.gluto-profile-dl dt {
  margin: 0;
  color: #78716c;
}
.gluto-profile-dl dd {
  margin: 0;
  color: #1c1917;
  word-break: break-word;
}
.gluto-profile-text,
.gluto-profile-loading,
.gluto-profile-error {
  font-size: 0.875rem;
  color: #57534e;
  margin: 0;
}
.gluto-profile-error {
  color: #b91c1c;
}
.gluto-profile-pre {
  font-size: 0.75rem;
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 0.5rem;
  padding: 0.75rem;
  overflow: auto;
  max-height: 12rem;
}
.gluto-profile-questionnaire-link {
  font-size: 0.875rem;
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}
.gluto-profile-questionnaire-link:hover {
  text-decoration: underline;
}

.gluto-profile-edu-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.gluto-profile-edu-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.2);
  font-size: 0.8125rem;
  color: #57534e;
}

.gluto-profile-edu-stat b {
  color: #0f766e;
  font-size: 0.9375rem;
}

.gluto-profile-education-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
}

.gluto-profile-education-link:hover {
  text-decoration: underline;
}
