.saved-modal[hidden] {
  display: none;
}

.saved-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
}

.saved-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(16, 27, 23, 0.48);
  cursor: default;
}

.saved-panel {
  position: relative;
  width: min(440px, 100%);
  height: 100%;
  padding: 32px;
  overflow-y: auto;
  background: #fff;
  box-shadow: -12px 0 36px rgba(18, 36, 29, 0.15);
}

.saved-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.saved-panel-header h2 {
  margin: 5px 0 0;
  font-size: 25px;
}

.saved-close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.saved-list {
  display: flex;
  flex-direction: column;
}

.saved-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  border-bottom: 1px solid #eef0ed;
}

.saved-item a {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.saved-item a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.saved-item .save {
  flex: 0 0 34px;
  height: 34px;
}

.saved-empty {
  padding: 70px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.modal-open {
  overflow: hidden;
}

.saved-modal ~ .toast {
  z-index: 70;
}

@media (max-width: 620px) {
  .saved-button {
    display: block;
    margin-left: auto;
    padding: 8px 10px;
  }

  .saved-button > span {
    display: none;
  }

  .menu-button {
    margin-left: 8px;
  }

  .saved-panel {
    padding: 24px 20px;
  }
}
