.page {
  width: 100%;
}

.intro {
  max-width: 640px;
  margin: 8px 0 24px;
  color: #968c83;
  font-size: 14px;
  line-height: 1.5;
}

.cardList {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

.card {
  background: #fff;
  border: 1px solid #e4dfd8;
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cardActive {
  border-color: #1d428a;
  box-shadow: 0 0 0 1px #1d428a;
}

.cardCopy h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 500;
  color: #171717;
}

.cardCopy p {
  margin: 0;
  font-size: 13px;
  color: #968c83;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  background: #e8eef7;
  color: #1d428a;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.headerBadge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #1d428a;
  background: #fff;
  color: #1d428a;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.headerBadge:hover {
  opacity: 0.85;
  background: #e8eef7;
}

.headerBadgeLabel {
  color: #968c83;
  font-weight: 400;
}

.headerChevron {
  flex-shrink: 0;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.headerChevronOpen {
  transform: rotate(180deg);
}

.headerDropdown {
  position: relative;
}

.headerMenu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--brand-border, rgba(29, 66, 138, 0.2));
  background: #fff;
  box-shadow: 0 12px 28px rgba(29, 66, 138, 0.16);
}

.headerMenuHint,
.headerMenuEmpty {
  margin: 0 0 8px;
  padding: 4px 8px 8px;
  color: #968c83;
  font-size: 12px;
  line-height: 1.45;
}

.headerMenuEmpty {
  margin: 0;
  padding: 8px;
}

.headerMenuItem {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.headerMenuItem:hover:not(:disabled) {
  background: #f4f2ef;
}

.headerMenuItem:disabled {
  cursor: default;
}

.headerMenuItemActive {
  background: #e8eef7;
}

.headerMenuCopy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.headerMenuTitle {
  font-size: 14px;
  font-weight: 500;
  color: #171717;
}

.headerMenuKey {
  font-size: 12px;
  color: #968c83;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow: hidden;
  text-overflow: ellipsis;
}

.headerMenuActive {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: #1d428a;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

@media screen and (max-width: 720px) {
  .card {
    flex-direction: column;
    align-items: flex-start;
  }

  .headerBadgeLabel {
    display: none;
  }
}
